installers.net.mycelium_installer #
see https://github.com/threefoldtech/mycelium/tree/master/docs
mycelium --peers tcp://188.40.132.242:9651 quic://185.69.166.7:9651 tcp://65.21.231.58:9651 --tun-name utun9
Constants #
const version = '0.5.7'
fn delete #
fn delete(args_ ArgsGet) !
fn exists #
fn exists(args_ ArgsGet) !bool
does the config exists?
fn get #
fn get(args_ ArgsGet) !&MyceliumInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj MyceliumInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !MyceliumInstaller
fn play #
fn play(args_ PlayArgs) !
fn set #
fn set(o MyceliumInstaller) !
register the config for the future
fn switch #
fn switch(name string)
switch instance to be used for mycelium_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 MyceliumInstaller #
@[heap]
struct MyceliumInstaller {
pub mut:
name string = 'default'
peers []string = [
'tcp://188.40.132.242:9651',
'quic://[2a01:4f8:212:fa6::2]:9651',
'tcp://185.69.166.7:9651',
'quic://[2a02:1802:5e:0:ec4:7aff:fe51:e36b]:9651',
'tcp://65.21.231.58:9651',
'quic://[2a01:4f9:5a:1042::2]:9651',
'tcp://[2604:a00:50:17b:9e6b:ff:fe1f:e054]:9651',
'quic://5.78.122.16:9651',
'tcp://[2a01:4ff:2f0:3621::1]:9651',
'quic://142.93.217.194:9651',
]
tun_nr int
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (MyceliumInstaller) build #
fn (mut self MyceliumInstaller) build() !
fn (MyceliumInstaller) destroy #
fn (mut self MyceliumInstaller) destroy() !
fn (MyceliumInstaller) install #
fn (mut self MyceliumInstaller) install(args InstallArgs) !
fn (MyceliumInstaller) install_start #
fn (mut self MyceliumInstaller) install_start(args InstallArgs) !
fn (MyceliumInstaller) reload #
fn (mut self MyceliumInstaller) reload() !
load from disk and make sure is properly intialized
fn (MyceliumInstaller) restart #
fn (mut self MyceliumInstaller) restart() !
fn (MyceliumInstaller) running #
fn (mut self MyceliumInstaller) running() !bool
fn (MyceliumInstaller) start #
fn (mut self MyceliumInstaller) start() !
fn (MyceliumInstaller) stop #
fn (mut self MyceliumInstaller) stop() !
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
}