Skip to content

installers.threefold.griddriver #

griddriver

To get started




import freeflowuniverse.crystallib.installers.something. griddriver

mut installer:= griddriver.get()!

installer.start()!

example heroscript

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

Constants #

const version = '1.14.3'

fn get #

fn get(args_ ArgsGet) !&GridDriverInstaller

fn switch #

fn switch(name string)

switch instance to be used for griddriver

struct ArgsGet #

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

///////FACTORY

struct GridDriverInstaller #

struct GridDriverInstaller {
pub mut:
	name string = 'default'
}

fn (GridDriverInstaller) build #

fn (mut self GridDriverInstaller) build() !

fn (GridDriverInstaller) destroy #

fn (mut self GridDriverInstaller) destroy() !

fn (GridDriverInstaller) install #

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

struct InstallArgs #

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

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