installers.virt.docker #
docker
To get started
import freeflowuniverse.herolib.installers.something.docker as docker_installer
heroscript:='
!!docker.configure name:'test'
password: '1234'
port: 7701
!!docker.start name:'test' reset:1
'
docker_installer.play(heroscript=heroscript)!
//or we can call the default and do a start with reset
//mut installer:= docker_installer.get()!
//installer.start(reset:true)!
example heroscript
!!docker.configure
homedir: '/home/user/docker'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '1.14.3'
fn get #
fn get(args_ ArgsGet) !&DockerInstaller
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for docker
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
struct DockerInstaller #
@[heap]
struct DockerInstaller {
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 (DockerInstaller) destroy #
fn (mut self DockerInstaller) destroy() !
fn (DockerInstaller) install #
fn (mut self DockerInstaller) install(args InstallArgs) !
fn (DockerInstaller) install_start #
fn (mut self DockerInstaller) install_start(args InstallArgs) !
fn (DockerInstaller) restart #
fn (mut self DockerInstaller) restart() !
fn (DockerInstaller) running #
fn (mut self DockerInstaller) running() !bool
fn (DockerInstaller) start #
fn (mut self DockerInstaller) start() !
fn (DockerInstaller) stop #
fn (mut self DockerInstaller) stop() !
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}