Documentation ¶
Index ¶
- Constants
- Variables
- func Init(r *geneos.Host, ct *geneos.Component)
- type Sans
- func (s *Sans) Add(template string, port uint16) (err error)
- func (s *Sans) Command() (args, env []string, home string)
- func (s *Sans) Config() *config.Config
- func (s *Sans) Home() string
- func (s *Sans) Host() *geneos.Host
- func (s *Sans) Load() (err error)
- func (s *Sans) Loaded() time.Time
- func (s *Sans) Name() string
- func (s *Sans) Rebuild(initial bool) (err error)
- func (s *Sans) Reload() (err error)
- func (s *Sans) SetLoaded(t time.Time)
- func (s *Sans) String() string
- func (s *Sans) Type() *geneos.Component
- func (s *Sans) Unload() (err error)
Constants ¶
View Source
const Name = "san"
Variables ¶
View Source
var San = geneos.Component{ Initialise: Init, Name: "san", Aliases: []string{"sans"}, LegacyPrefix: "san", ParentType: &netprobe.Netprobe, PackageTypes: []*geneos.Component{&netprobe.Netprobe, &minimal.Minimal, &fa2.FA2}, DownloadBase: geneos.DownloadBases{Default: "Netprobe", Nexus: "geneos-netprobe"}, UsesKeyfiles: true, Templates: []geneos.Templates{{Filename: templateName, Content: template}}, 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{ "binsuffix": "binary", "sanhome": "home", "sanbins": "install", "sanbase": "version", "sanexec": "program", "sanlogd": "logdir", "sanlogf": "logfile", "sanport": "port", "sanlibs": "libpaths", "sancert": "certificate", "sankey": "privatekey", "sanuser": "user", "sanopts": "options", "santype": "pkgtype", }, Defaults: []string{ `binary={{if eq .pkgtype "fa2"}}fix-analyser2-{{end}}netprobe.linux_64`, `home={{join .root "netprobe" "sans" .name}}`, `install={{join .root "packages" .pkgtype}}`, `version=active_prod`, `program={{join "${config:install}" "${config:version}" "${config:binary}"}}`, `logfile=san.log`, `port=7036`, `libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`, `sanname={{"${config:name}"}}`, `setup={{join "${config:home}" "netprobe.setup.xml"}}`, `autostart=true`, }, Directories: []string{ "packages/netprobe", "netprobe/netprobes_shared", "netprobe/sans", "netprobe/templates", }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.