Skip to content

installers.infra.zinit #

zinit

To get started



import freeflowuniverse.crystallib.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.2.14'

fn get #

fn get(args_ ArgsGet) !&Zinit

fn switch #

fn switch(name string)

switch instance to be used for zinit

struct ArgsGet #

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

///////FACTORY

struct InstallArgs #

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

struct Zinit #

struct Zinit {
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 (Zinit) build #

fn (mut self Zinit) build() !

fn (Zinit) destroy #

fn (mut self Zinit) destroy() !

fn (Zinit) install #

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

fn (Zinit) install_start #

fn (mut self Zinit) install_start(args InstallArgs) !

fn (Zinit) restart #

fn (mut self Zinit) restart() !

fn (Zinit) running #

fn (mut self Zinit) running() !bool

fn (Zinit) start #

fn (mut self Zinit) start() !

fn (Zinit) stop #

fn (mut self Zinit) stop() !