Skip to content

installers.virt.buildah #

buildah

To get started



import freeflowuniverse.crystallib.installers.something. buildah

mut installer:= buildah.get()!

installer.start()!

example heroscript

!!buildah.install
    homedir: '/home/user/buildah'
    username: 'admin'
    password: 'secretpassword'
    title: 'Some Title'
    host: 'localhost'
    port: 8888

Constants #

const version = '1.38.0'

fn get #

fn get(args_ ArgsGet) !&BuildahInstaller

fn switch #

fn switch(name string)

switch instance to be used for buildah

struct ArgsGet #

@[params]
struct ArgsGet {
pub mut:
	name string
}

///////FACTORY

struct BuildahInstaller #

struct BuildahInstaller {
pub mut:
	name string = 'default'
}

fn (BuildahInstaller) build #

fn (mut self BuildahInstaller) build() !

fn (BuildahInstaller) destroy #

fn (mut self BuildahInstaller) destroy() !

fn (BuildahInstaller) install #

fn (mut self BuildahInstaller) install(args InstallArgs) !

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset bool
}