ac2

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 15 Imported by: 0

README

geneos Acctive Consoles

AC2 is the Active Console and it not a normal component.

The configuration for this component is work in progress and intended to provide a simple installer for the AC2 on Linux desktops alongside other Geneos components, especially for test and demo systems in containers.

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",
	LegacyPrefix:     "",
	RelatedTypes:     nil,
	ComponentMatches: []string{"ac2", "active-console", "activeconsole", "desktop-activeconsole"},
	RealComponent:    true,
	DownloadBase:     geneos.DownloadBases{Resources: "Active+Console", Nexus: "geneos-desktop-activeconsole"},
	DownloadInfix:    "desktop-activeconsole",
	PortRange:        "AC2PortRange",
	CleanList:        "AC2CleanList",
	PurgeList:        "AC2PurgeList",
	Aliases:          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: getPID,
}

Functions

func New

func New(name string) geneos.Instance

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() bool

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(params []string) (err error)

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