Skip to content

installers.sysadmintools.fungistor #

fungistor

To get started



import freeflowuniverse.herolib.installers.something.fungistor as fungistor_installer

heroscript:='
!!fungistor.configure name:'test'
    password: '1234'
    port: 7701

!!fungistor.start name:'test' reset:1 
'

fungistor_installer.play(heroscript=heroscript)!

//or we can call the default and do a start with reset
//mut installer:= fungistor_installer.get()!
//installer.start(reset:true)!

example heroscript

!!fungistor.configure
    homedir: '/home/user/fungistor'
    username: 'admin'
    password: 'secretpassword'
    title: 'Some Title'
    host: 'localhost'
    port: 8888

Constants #

const version = '0.0.0'

fn get #

fn get(args_ ArgsGet) !&FungiStor

fn installl #

fn installl(args_ InstallArgs) !

fn play #

fn play(args_ PlayArgs) !

fn switch #

fn switch(name string)

switch instance to be used for fungistor

struct ArgsGet #

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

///////FACTORY

struct DefaultConfigArgs #

@[params]
struct DefaultConfigArgs {
	instance string = 'default'
}

helpers

struct FungiStor #

@[heap]
struct FungiStor {
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 (FungiStor) build #

fn (mut self FungiStor) build() !

fn (FungiStor) destroy #

fn (mut self FungiStor) destroy() !

fn (FungiStor) install #

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

fn (FungiStor) install_start #

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

fn (FungiStor) restart #

fn (mut self FungiStor) restart() !

fn (FungiStor) running #

fn (mut self FungiStor) running() !bool

fn (FungiStor) start #

fn (mut self FungiStor) start() !

fn (FungiStor) stop #

fn (mut self FungiStor) stop() !

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
}