installers.web.traefik #
traefik
To get started
import freeflowuniverse.herolib.installers.web.traefik as traefik_installer
mut installer:= traefik_installer.get()!
installer.start()!
Constants #
const version = '3.3.3'
fn delete #
fn delete(args_ ArgsGet) !
fn exists #
fn exists(args_ ArgsGet) !bool
does the config exists?
fn get #
fn get(args_ ArgsGet) !&TraefikServer
fn heroscript_dumps #
fn heroscript_dumps(obj TraefikServer) !string
///////////NORMALLY NO NEED TO TOUCH
fn heroscript_loads #
fn heroscript_loads(heroscript string) !TraefikServer
fn play #
fn play(args_ PlayArgs) !
fn set #
fn set(o TraefikServer) !
register the config for the future
fn switch #
fn switch(name string)
switch instance to be used for traefik
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct DefaultConfigArgs #
@[params]
struct DefaultConfigArgs {
instance string = 'default'
}
helpers
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
}
struct TraefikServer #
@[heap]
struct TraefikServer {
pub mut:
name string = 'default'
// homedir string
// configpath string
// username string
password string @[secret]
// title string
// host string
// port int
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (TraefikServer) destroy #
fn (mut self TraefikServer) destroy() !
fn (TraefikServer) install #
fn (mut self TraefikServer) install(args InstallArgs) !
fn (TraefikServer) install_start #
fn (mut self TraefikServer) install_start(args InstallArgs) !
fn (TraefikServer) reload #
fn (mut self TraefikServer) reload() !
load from disk and make sure is properly intialized
fn (TraefikServer) restart #
fn (mut self TraefikServer) restart() !
fn (TraefikServer) running #
fn (mut self TraefikServer) running() !bool
fn (TraefikServer) start #
fn (mut self TraefikServer) start() !
fn (TraefikServer) stop #
fn (mut self TraefikServer) stop() !