installers.virt.cloudhypervisor #
cloudhypervisor
To get started
import incubaid.herolib.installers.something. cloudhypervisor
mut installer:= cloudhypervisor.get()!
installer.start()!
example heroscript
!!cloudhypervisor.install
homedir: '/home/user/cloudhypervisor'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version0 = '41.0'
const version ='${version0}.0'
fn get #
fn get(args ArgsGet) !&CloudHypervisor
fn heroscript_dumps #
fn heroscript_dumps(obj CloudHypervisor) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !CloudHypervisor
fn new #
fn new(args ArgsGet) !&CloudHypervisor
fn play #
fn play(mut plbook PlayBook) !
fn switch #
fn switch(name string)
switch instance to be used for cloudhypervisor
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string = 'default'
}
///////FACTORY
struct CloudHypervisor #
struct CloudHypervisor {
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 (CloudHypervisor) build #
fn (mut self CloudHypervisor) build() !
fn (CloudHypervisor) destroy #
fn (mut self CloudHypervisor) destroy() !
fn (CloudHypervisor) install #
fn (mut self CloudHypervisor) install(args InstallArgs) !
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////# LIVE CYCLE MANAGEMENT FOR INSTALLERS /////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////