ac2

package
v1.15.5 Latest Latest
Warning

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

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

README

An ac2 instance is a Linux Active Console.

Documentation

Overview

Package ac2 supports installation and control of the Active Console

Index

Constants

View Source
const Name = "ac2"

Variables

View Source
var AC2 = geneos.Component{
	Name:         Name,
	Aliases:      []string{"active-console", "activeconsole"},
	LegacyPrefix: "",

	DownloadBase:  geneos.DownloadBases{Default: "Active+Console", Nexus: "geneos-desktop-activeconsole"},
	DownloadInfix: "desktop-activeconsole",

	GlobalSettings: map[string]string{
		config.Join(Name, "ports"): "7040-",
		config.Join(Name, "clean"): strings.Join([]string{
			"*.old",
		}, ":"),
		config.Join(Name, "purge"): strings.Join([]string{
			"*.log",
		}, ":"),
	},
	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{},
	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"}}`,
		`options="-wsp {{.home}}"`,
		`autostart=false`,
	},
	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