Skip to content

installers.virt.pacman #

pacman

To get started



import incubaid.herolib.installers.virt.pacman

mut installer:= pacman.get()!

installer.install()!

important we don't check signatures on install this is dangerous !!!

Constants #

const version = 'v1.0'

fn get #

fn get(args ArgsGet) !&PacmanInstaller

fn heroscript_dumps #

fn heroscript_dumps(obj PacmanInstaller) !string

///////////NORMALLY NO NEED TO TOUCH

fn heroscript_loads #

fn heroscript_loads(heroscript string) !PacmanInstaller

fn new #

fn new(args ArgsGet) !&PacmanInstaller

fn play #

fn play(mut plbook PlayBook) !

fn switch #

fn switch(name string)

switch instance to be used for pacman

struct ArgsGet #

@[params]
struct ArgsGet {
pub mut:
	name string = 'default'
}

///////FACTORY

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset bool
}

////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////# LIVE CYCLE MANAGEMENT FOR INSTALLERS /////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////

struct PacmanInstaller #

@[heap]
struct PacmanInstaller {
pub mut:
	name string = 'default'
}

THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED

fn (PacmanInstaller) destroy #

fn (mut self PacmanInstaller) destroy() !

fn (PacmanInstaller) install #

fn (mut self PacmanInstaller) install(args InstallArgs) !