Documentation ¶
Index ¶
- Constants
- Variables
- func Init(r *geneos.Host, ct *geneos.Component)
- type Floatings
- func (s *Floatings) Add(template string, port uint16) (err error)
- func (s *Floatings) Command() (args, env []string, home string)
- func (s *Floatings) Config() *config.Config
- func (s *Floatings) Home() string
- func (s *Floatings) Host() *geneos.Host
- func (s *Floatings) Load() (err error)
- func (s *Floatings) Loaded() time.Time
- func (s *Floatings) Name() string
- func (s *Floatings) Rebuild(initial bool) (err error)
- func (s *Floatings) Reload() (err error)
- func (s *Floatings) SetLoaded(t time.Time)
- func (s *Floatings) String() string
- func (s *Floatings) Type() *geneos.Component
- func (s *Floatings) Unload() (err error)
Constants ¶
View Source
const Name = "floating"
Variables ¶
View Source
var Floating = geneos.Component{ Initialise: Init, Name: "floating", Aliases: []string{"float"}, LegacyPrefix: "flt", ParentType: &netprobe.Netprobe, PackageTypes: []*geneos.Component{&netprobe.Netprobe, &fa2.FA2}, UsesKeyfiles: true, Templates: []geneos.Templates{ {Filename: templateName, Content: template}, }, DownloadBase: geneos.DownloadBases{Default: "Netprobe", Nexus: "geneos-netprobe"}, GlobalSettings: map[string]string{ config.Join(Name, "ports"): "7036,7100-", config.Join(Name, "clean"): strings.Join([]string{ "*.old", }, ":"), config.Join(Name, "purge"): strings.Join([]string{ "*.log", "*.txt", "*.snooze", "*.user_assignment", }, ":"), }, PortRange: config.Join(Name, "ports"), CleanList: config.Join(Name, "clean"), PurgeList: config.Join(Name, "purge"), ConfigAliases: map[string]string{ config.Join(Name, "ports"): Name + "portrange", config.Join(Name, "clean"): Name + "cleanlist", config.Join(Name, "purge"): Name + "purgelist", }, LegacyParameters: map[string]string{ "floatingtype": "pkgtype", }, Defaults: []string{ `binary={{if eq .pkgtype "fa2"}}fix-analyser2-{{end}}netprobe.linux_64`, `home={{join .root "netprobe" "floatings" .name}}`, `install={{join .root "packages" .pkgtype}}`, `version=active_prod`, `program={{join "${config:install}" "${config:version}" "${config:binary}"}}`, `logfile=floating.log`, `port=7036`, `libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`, `floatingname={{.name}}`, `setup={{join "${config:home}" "netprobe.setup.xml"}}`, `autostart=true`, }, Directories: []string{ "packages/netprobe", "netprobe/netprobes_shared", "netprobe/floatings", "netprobe/templates", }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.