installers.infra.zinit_installer #
zinit
To get started
import freeflowuniverse.herolib.installers.something. zinit
mut installer:= zinit.get()!
installer.start()!
example heroscript
!!zinit.install
homedir: '/home/user/zinit'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '0.0.0'
fn get #
fn get(args_ ArgsGet) !&ZinitInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj ZinitInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !ZinitInstaller
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for zinit_installer
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct ZinitInstaller #
@[heap]
struct ZinitInstaller {
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 (ZinitInstaller) build #
fn (mut self ZinitInstaller) build() !
fn (ZinitInstaller) destroy #
fn (mut self ZinitInstaller) destroy() !
fn (ZinitInstaller) install #
fn (mut self ZinitInstaller) install(args InstallArgs) !
fn (ZinitInstaller) install_start #
fn (mut self ZinitInstaller) install_start(args InstallArgs) !
fn (ZinitInstaller) restart #
fn (mut self ZinitInstaller) restart() !
fn (ZinitInstaller) running #
fn (mut self ZinitInstaller) running() !bool
fn (ZinitInstaller) start #
fn (mut self ZinitInstaller) start() !
fn (ZinitInstaller) stop #
fn (mut self ZinitInstaller) stop() !