installers.virt.cloudhypervisor #
cloudhypervisor
To get started
import freeflowuniverse.crystallib.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 switch #
fn switch(name string)
switch instance to be used for cloudhypervisor
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////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
}