Documentation ¶
Index ¶
- Variables
- type Gateways
- func (g *Gateways) Add(template string, port uint16) (err error)
- func (g *Gateways) Command() (args, env []string, home string)
- func (g *Gateways) Config() *config.Config
- func (g *Gateways) Home() string
- func (g *Gateways) Host() *geneos.Host
- func (g *Gateways) Load() (err error)
- func (g *Gateways) Loaded() time.Time
- func (g *Gateways) Name() string
- func (g *Gateways) Rebuild(initial bool) (err error)
- func (g *Gateways) Reload() (err error)
- func (g *Gateways) SetLoaded(t time.Time)
- func (g *Gateways) String() string
- func (g *Gateways) Type() *geneos.Component
- func (g *Gateways) Unload() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Gateway = geneos.Component{ Initialise: initialise, Name: "gateway", Aliases: []string{"gateways"}, LegacyPrefix: "gate", UsesKeyfiles: true, Templates: []geneos.Templates{ {Filename: templateName, Content: template}, {Filename: instanceTemplateName, Content: instanceTemplate}, }, DownloadBase: geneos.DownloadBases{Resources: "Gateway+2", Nexus: "geneos-gateway"}, PortRange: "GatewayPortRange", CleanList: "GatewayCleanList", PurgeList: "GatewayPurgeList", LegacyParameters: map[string]string{ "binsuffix": "binary", "gatehome": "home", "gatebins": "install", "gatebase": "version", "gateexec": "program", "gatelogd": "logdir", "gatelogf": "logfile", "gateport": "port", "gatelibs": "libpaths", "gatecert": "certificate", "gatekey": "privatekey", "gateaes": "keyfile", "aesfile": "keyfile", "gatename": "gatewayname", "gatelich": "licdhost", "gatelicp": "licdport", "gatelics": "licdsecure", "gateuser": "user", "gateopts": "options", }, Defaults: []string{ `binary=gateway2.linux_64`, `home={{join .root "gateway" "gateways" .name}}`, `install={{join .root "packages" "gateway"}}`, `version=active_prod`, `program={{join "${config:install}" "${config:version}" "${config:binary}"}}`, `logfile=gateway.log`, `port=7039`, `libpaths={{join "${config:install}" "${config:version}" "lib64"}}:/usr/lib64`, `gatewayname={{"${config:name}"}}`, `setup={{join "${config:home}" "gateway.setup.xml"}}`, `autostart=true`, `usekeyfile=false`, }, GlobalSettings: map[string]string{ "GatewayPortRange": "7039,7100-", "GatewayCleanList": "*.old:*.history", "GatewayPurgeList": "gateway.log:gateway.txt:gateway.snooze:gateway.user_assignment:licences.cache:cache/:database/", }, Directories: []string{ "packages/gateway", "gateway/gateways", "gateway/gateway_shared", "gateway/gateway_config", "gateway/templates", }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.