licd

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 9 Imported by: 0

README

geneos License Daemon Component

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Licd = geneos.Component{
	Name:             "licd",
	LegacyPrefix:     "licd",
	RelatedTypes:     nil,
	ComponentMatches: []string{"licd", "licds"},
	RealComponent:    true,
	DownloadBase:     geneos.DownloadBases{Resources: "Licence+Daemon", Nexus: "geneos-licd"},
	PortRange:        "LicdPortRange",
	CleanList:        "LicdCleanList",
	PurgeList:        "LicdPurgeList",
	Aliases: map[string]string{
		"binsuffix": "binary",
		"licdhome":  "home",
		"licdbins":  "install",
		"licdbase":  "version",
		"licdexec":  "program",
		"licdlogd":  "logdir",
		"licdlogf":  "logfile",
		"licdport":  "port",
		"licdlibs":  "libpaths",
		"licdcert":  "certificate",
		"licdkey":   "privatekey",
		"licduser":  "user",
		"licdopts":  "options",
	},
	Defaults: []string{
		`binary=licd.linux_64`,
		`home={{join .root "licd" "licds" .name}}`,
		`install={{join .root "packages" "licd"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=licd.log`,
		`port=7041`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}`,
		`autostart=true`,
	},
	GlobalSettings: map[string]string{
		"LicdPortRange": "7041,7100-",
		"LicdCleanList": "*.old",
		"LicdPurgeList": "licd.log:licd.txt",
	},
	Directories: []string{
		"packages/licd",
		"licd/licds",
	},
}

Functions

func New

func New(name string) geneos.Instance

Types

type Licds

type Licds instance.Instance

func (*Licds) Add

func (l *Licds) Add(tmpl string, port uint16) (err error)

func (*Licds) Command

func (l *Licds) Command() (args, env []string, home string)

func (*Licds) Config

func (l *Licds) Config() *config.Config

func (*Licds) Home

func (l *Licds) Home() string

func (*Licds) Host

func (l *Licds) Host() *geneos.Host

func (*Licds) Load

func (l *Licds) Load() (err error)

func (*Licds) Loaded

func (l *Licds) Loaded() bool

func (*Licds) Name

func (l *Licds) Name() string

func (*Licds) Rebuild

func (l *Licds) Rebuild(initial bool) error

func (*Licds) Reload

func (l *Licds) Reload(params []string) (err error)

func (*Licds) String

func (l *Licds) String() string

func (*Licds) Type

func (l *Licds) Type() *geneos.Component

Return the Component for an Instance

func (*Licds) Unload

func (l *Licds) Unload() (err error)

Jump to

Keyboard shortcuts

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