ac2

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 16 Imported by: 0

README

geneos Active Consoles

An ac2 instance is a Linux Active Console.

Documentation

Overview

Package ac2 supports installation and control of the Active Console

Index

Constants

This section is empty.

Variables

View Source
var AC2 = geneos.Component{
	Name:             "ac2",
	Aliases:          []string{"active-console", "activeconsole", "desktop-activeconsole"},
	LegacyPrefix:     "",
	DownloadBase:     geneos.DownloadBases{Resources: "Active+Console", Nexus: "geneos-desktop-activeconsole"},
	DownloadInfix:    "desktop-activeconsole",
	PortRange:        "AC2PortRange",
	CleanList:        "AC2CleanList",
	PurgeList:        "AC2PurgeList",
	LegacyParameters: map[string]string{},
	Defaults: []string{
		`binary=ActiveConsole`,
		`home={{join .root "ac2" "ac2s" .name}}`,
		`install={{join .root "packages" "ac2"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=ActiveConsole.log`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}`,
		`config={{join .home "ActiveConsol.gci"}}`,
		`autostart=false`,
	},
	GlobalSettings: map[string]string{
		"AC2PortRange": "7040-",
		"AC2CleanList": "*.old",
		"AC2PurgeList": "*.log",
	},
	Directories: []string{
		"packages/ac2",
		"ac2/ac2s",
	},
	GetPID: pidCheckFn,
}

Functions

This section is empty.

Types

type AC2s

type AC2s instance.Instance

func (*AC2s) Add

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

Add created a new instance of AC2

func (*AC2s) Command

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

Command returns the command, args and environment for the instance

func (*AC2s) Config

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

func (*AC2s) Home

func (n *AC2s) Home() string

func (*AC2s) Host

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

func (*AC2s) Load

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

func (*AC2s) Loaded

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

func (*AC2s) Name

func (n *AC2s) Name() string

func (*AC2s) Rebuild

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

func (*AC2s) Reload

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

func (*AC2s) SetLoaded added in v1.8.0

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

func (*AC2s) String

func (n *AC2s) String() string

func (*AC2s) Type

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

Return the Component for an Instance

func (*AC2s) Unload

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

Jump to

Keyboard shortcuts

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