installers.lang.rust #
rust
To get started
import freeflowuniverse.herolib.installers.something.rust as rust_installer
heroscript:='
!!rust.configure name:'test'
password: '1234'
port: 7701
!!rust.start name:'test' reset:1
'
rust_installer.play(heroscript=heroscript)!
//or we can call the default and do a start with reset
//mut installer:= rust_installer.get()!
//installer.start(reset:true)!
example heroscript
!!rust.configure
homedir: '/home/user/rust'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '1.83.0'
fn get #
fn get(args_ ArgsGet) !&RustInstaller
fn heroscript_dumps #
fn heroscript_dumps(obj RustInstaller) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !RustInstaller
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for rust
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 PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct RustInstaller #
@[heap]
struct RustInstaller {
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 (RustInstaller) destroy #
fn (mut self RustInstaller) destroy() !
fn (RustInstaller) install #
fn (mut self RustInstaller) install(args InstallArgs) !