installers.web.traefik #
traefik
To get started
import incubaid.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 list #
fn list(args ArgsList) ![]&TraefikServer
if fromdb set: load from filesystem, and not from mem, will also reset what is in mem
fn new #
fn new(args ArgsGet) !&TraefikServer
fn play #
fn play(mut plbook PlayBook) !
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 = 'default'
fromdb bool // will load from filesystem
create bool // default will not create if not exist
}
///////FACTORY
struct ArgsList #
@[params]
struct ArgsList {
pub mut:
fromdb bool // will load from filesystem
}
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
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() !