- Add heroscript_dumps and heroscript_loads functions - Replace paramsparser with encoderhero import - Add ulist_get and upload functions to docker installer - Add ulist_get and upload functions to zola installer
37 lines
879 B
V
37 lines
879 B
V
module cloudhypervisor
|
|
|
|
import incubaid.herolib.data.encoderhero
|
|
|
|
pub const version0 = '41.0'
|
|
pub const version = '${version0}.0'
|
|
const singleton = true
|
|
const default = true
|
|
|
|
// THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
|
|
pub struct CloudHypervisor {
|
|
pub mut:
|
|
name string = 'default'
|
|
}
|
|
|
|
fn obj_init(obj_ CloudHypervisor) !CloudHypervisor {
|
|
// never call get here, only thing we can do here is work on object itself
|
|
mut obj := obj_
|
|
return obj
|
|
}
|
|
|
|
// called before start if done
|
|
fn configure() ! {
|
|
// mut installer := get()!
|
|
}
|
|
|
|
/////////////NORMALLY NO NEED TO TOUCH
|
|
|
|
pub fn heroscript_dumps(obj CloudHypervisor) !string {
|
|
return encoderhero.encode[CloudHypervisor](obj)!
|
|
}
|
|
|
|
pub fn heroscript_loads(heroscript string) !CloudHypervisor {
|
|
mut obj := encoderhero.decode[CloudHypervisor](heroscript)!
|
|
return obj
|
|
}
|