gateway

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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":   "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={{.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

func Init

func Init(r *host.Host, ct *geneos.Component)

func New

func New(name string) geneos.Instance

Types

type Gateways

type Gateways instance.Instance

func (*Gateways) Add

func (g *Gateways) Add(username string, template string, port uint16) (err error)

func (*Gateways) Command

func (g *Gateways) Command() (args, env []string)

func (*Gateways) Config

func (g *Gateways) Config() *config.Config

func (*Gateways) Home

func (g *Gateways) Home() string

func (*Gateways) Host

func (g *Gateways) Host() *host.Host

func (*Gateways) Load

func (g *Gateways) Load() (err error)

func (*Gateways) Loaded

func (g *Gateways) Loaded() bool

func (*Gateways) Name

func (g *Gateways) Name() string

func (*Gateways) Prefix

func (g *Gateways) Prefix() string

func (*Gateways) Rebuild

func (g *Gateways) Rebuild(initial bool) (err error)

func (*Gateways) Reload

func (g *Gateways) Reload(params []string) (err error)

func (*Gateways) SetConf

func (g *Gateways) SetConf(v *config.Config)

func (*Gateways) String

func (g *Gateways) String() string

func (*Gateways) Type

func (g *Gateways) Type() *geneos.Component

Return the Component for an Instance

func (*Gateways) Unload

func (g *Gateways) Unload() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL