Files
herolib/lib/installers/virt/crun_installer/crun_installer_model.v
2025-11-23 13:06:50 +02:00

33 lines
702 B
V

module crun_installer
import incubaid.herolib.data.encoderhero
pub const version = '0.0.0'
const singleton = false
const default = true
// CrunInstaller manages the installation of the crun container runtime
@[heap]
pub struct CrunInstaller {
pub mut:
name string = 'default'
}
// Initialize the installer object
fn obj_init(mycfg_ CrunInstaller) !CrunInstaller {
mut mycfg := mycfg_
return mycfg
}
// Configure is called before installation if needed
fn configure() ! {
// No configuration needed for crun installer
}
/////////////NORMALLY NO NEED TO TOUCH
pub fn heroscript_loads(heroscript string) !CrunInstaller {
mut obj := encoderhero.decode[CrunInstaller](heroscript)!
return obj
}