fa2

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

An fa2 is a Fix-Analyser2 Netprobe

Documentation

Index

Constants

View Source
const Name = "fa2"

Variables

View Source
var FA2 = geneos.Component{
	Name:               "fa2",
	Aliases:            []string{"fixanalyser", "fixanalyzer"},
	LegacyPrefix:       "fa2",
	ParentType:         &netprobe.Netprobe,
	DownloadBase:       geneos.DownloadBases{Default: "Fix+Analyser+2+Netprobe", Nexus: "geneos-fixanalyser2-netprobe"},
	DownloadInfix:      "fixanalyser2-netprobe",
	StripArchivePrefix: &prefix,

	GlobalSettings: map[string]string{
		config.Join(Name, "ports"): "7030,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",
		"fa2home":   "home",
		"fa2bins":   "install",
		"fa2base":   "version",
		"fa2exec":   "program",
		"fa2logd":   "logdir",
		"fa2logf":   "logfile",
		"fa2port":   "port",
		"fa2libs":   "libpaths",
		"fa2cert":   "certificate",
		"fa2key":    "privatekey",
		"fa2user":   "user",
		"fa2opts":   "options",
	},
	Defaults: []string{
		`binary=fix-analyser2-netprobe.linux_64`,
		`home={{join .root "netprobe" "fa2s" .name}}`,
		`install={{join .root "packages" "fa2"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=fa2.log`,
		`port=7030`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`,
		`autostart=true`,
	},

	Directories: []string{
		"packages/fa2",
		"netprobe/fa2s",
	},
}

Functions

This section is empty.

Types

type FA2s

type FA2s instance.Instance

func (*FA2s) Add

func (n *FA2s) Add(tmpl string, port uint16) (err error)

func (*FA2s) Command

func (n *FA2s) Command() (args, env []string, home string)

func (*FA2s) Config

func (n *FA2s) Config() *config.Config

func (*FA2s) Home

func (n *FA2s) Home() string

func (*FA2s) Host

func (n *FA2s) Host() *geneos.Host

func (*FA2s) Load

func (n *FA2s) Load() (err error)

func (*FA2s) Loaded

func (n *FA2s) Loaded() time.Time

func (*FA2s) Name

func (n *FA2s) Name() string

func (*FA2s) Rebuild

func (n *FA2s) Rebuild(initial bool) error

func (*FA2s) Reload

func (n *FA2s) Reload() (err error)

func (*FA2s) SetLoaded added in v1.8.0

func (n *FA2s) SetLoaded(t time.Time)

func (*FA2s) String

func (n *FA2s) String() string

func (*FA2s) Type

func (n *FA2s) Type() *geneos.Component

Return the Component for an Instance

func (*FA2s) Unload

func (n *FA2s) Unload() (err error)

Jump to

Keyboard shortcuts

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