Documentation ¶
Index ¶
- Constants
- Variables
- func Init(r *host.Host, ct *geneos.Component)
- func New(name string) geneos.Instance
- type Gateways
- func (g *Gateways) Add(username string, template string, port uint16) (err error)
- func (g *Gateways) Command() (args, env []string)
- func (g *Gateways) Home() string
- func (g *Gateways) Host() *host.Host
- func (g *Gateways) Load() (err error)
- func (g *Gateways) Loaded() bool
- func (g *Gateways) Name() string
- func (g *Gateways) Prefix() string
- func (g *Gateways) Rebuild(initial bool) (err error)
- func (g *Gateways) Reload(params []string) (err error)
- func (g *Gateways) SetConf(v *viper.Viper)
- func (g *Gateways) String() string
- func (g *Gateways) Type() *geneos.Component
- func (g *Gateways) Unload() (err error)
- func (g *Gateways) V() *viper.Viper
Constants ¶
View Source
const GatewayDefaultTemplate = "gateway.setup.xml.gotmpl"
View Source
const GatewayInstanceTemplate = "gateway-instance.setup.xml.gotmpl"
Variables ¶
View Source
var Gateway = geneos.Component{ Initialise: Init, Name: "gateway", RelatedTypes: nil, ComponentMatches: []string{"gateway", "gateways"}, RealComponent: true, DownloadBase: geneos.DownloadBases{Resources: "Gateway+2", Nexus: "geneos-gateway"}, PortRange: "GatewayPortRange", CleanList: "GatewayCleanList", PurgeList: "GatewayPurgeList", Aliases: 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": "aesfile", "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 .install .version .binary}}", "logfile=gateway.log", "port=7039", "libpaths={{join .install .version \"lib64\"}}:/usr/lib64", "gatewayname={{.name}}", }, 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", }, }
View Source
var GatewayTemplate []byte
View Source
var InstanceTemplate []byte
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.