san

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SanDefaultTemplate = "netprobe.setup.xml.gotmpl"

Variables

View Source
var San = geneos.Component{
	Initialise:       Init,
	Name:             "san",
	RelatedTypes:     []*geneos.Component{&netprobe.Netprobe, &fa2.FA2},
	ComponentMatches: []string{"san", "sans"},
	RealComponent:    true,
	DownloadBase:     geneos.DownloadBases{Resources: "Netprobe", Nexus: "geneos-netprobe"},
	PortRange:        "SanPortRange",
	CleanList:        "SanCleanList",
	PurgeList:        "SanPurgeList",
	Aliases: 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",
	},
	Defaults: []string{
		`binary={{if eq .santype "fa2"}}fix-analyser2-{{end}}netprobe.linux_64`,
		`home={{join .root "san" "sans" .name}}`,
		`install={{join .root "packages" .santype}}`,
		`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={{.name}}`,
	},
	GlobalSettings: map[string]string{
		"SanPortRange": "7036,7100-",
		"SanCleanList": "*.old",
		"SanPurgeList": "san.log:san.txt:*.snooze:*.user_assignment",
	},
	Directories: []string{
		"packages/netprobe",
		"san/sans",
		"san/templates",
	},
}
View Source
var SanTemplate []byte

Functions

func Init

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

func New

func New(name string) geneos.Instance

Types

type Sans

type Sans instance.Instance

func (*Sans) Add

func (s *Sans) Add(username string, template string, port uint16) (err error)

func (*Sans) Command

func (s *Sans) Command() (args, env []string)

func (*Sans) Config

func (s *Sans) Config() *config.Config

func (*Sans) Home

func (s *Sans) Home() string

func (*Sans) Host

func (s *Sans) Host() *host.Host

func (*Sans) Load

func (s *Sans) Load() (err error)

func (*Sans) Loaded

func (s *Sans) Loaded() bool

func (*Sans) Name

func (s *Sans) Name() string

func (*Sans) Prefix

func (s *Sans) Prefix() string

func (*Sans) Rebuild

func (s *Sans) Rebuild(initial bool) (err error)

rebuild the netprobe.setup.xml file

we do a dance if there is a change in TLS setup and we use default ports

func (*Sans) Reload

func (s *Sans) Reload(params []string) (err error)

func (*Sans) SetConf

func (s *Sans) SetConf(v *config.Config)

func (*Sans) String

func (s *Sans) String() string

func (*Sans) Type

func (s *Sans) Type() *geneos.Component

Return the Component for an Instance

func (*Sans) Unload

func (s *Sans) Unload() (err error)

Jump to

Keyboard shortcuts

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