installers.threefold.griddriver #
griddriver
To use the installer:
import incubaid.herolib.installers.threefold.griddriver
fn main() {
mut installer := griddriver.get()!
installer.install()!
}
example heroscript
!!griddriver.install
homedir: '/home/user/griddriver'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '0.1.2'
fn get #
fn get(args ArgsGet) !&GridDriverInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj GridDriverInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !GridDriverInstaller
fn new #
fn new(args ArgsGet) !&GridDriverInstaller
fn play #
fn play(mut plbook PlayBook) !
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 #
@[heap]
struct GridDriverInstaller {
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 (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 /////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////