Documentation ¶
Index ¶
- Constants
- Variables
- type Webservers
- func (w *Webservers) Add(tmpl string, port uint16) (err error)
- func (w *Webservers) Command() (args, env []string, home string)
- func (w *Webservers) Config() *config.Config
- func (w *Webservers) Home() string
- func (w *Webservers) Host() *geneos.Host
- func (w *Webservers) Load() (err error)
- func (w *Webservers) Loaded() time.Time
- func (w *Webservers) Name() string
- func (w *Webservers) Rebuild(initial bool) (err error)
- func (w *Webservers) Reload() (err error)
- func (w *Webservers) SetLoaded(t time.Time)
- func (w *Webservers) String() string
- func (w *Webservers) Type() *geneos.Component
- func (w *Webservers) Unload() (err error)
Constants ¶
View Source
const Name = "webserver"
Variables ¶
View Source
var Webserver = geneos.Component{ Name: "webserver", Aliases: []string{"web-server", "webservers", "webdashboard", "dashboards"}, LegacyPrefix: "webs", DownloadBase: geneos.DownloadBases{Default: "Web+Dashboard", Nexus: "geneos-web-server"}, DownloadInfix: "web-server", StripArchivePrefix: &prefix, GlobalSettings: map[string]string{ config.Join(Name, "ports"): "8080,8100-", config.Join(Name, "clean"): strings.Join([]string{ "*.old", }, ":"), config.Join(Name, "purge"): strings.Join([]string{ "*.log", "*.txt", "logs/*.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{ "binsuffix": "binary", "webshome": "home", "websbins": "install", "websbase": "version", "websexec": "program", "webslogd": "logdir", "webslogf": "logfile", "websport": "port", "webslibs": "libpaths", "webscert": "certificate", "webskey": "privatekey", "websuser": "user", "websopts": "options", "websxmx": "maxmem", }, Defaults: []string{ `binary=java`, `home={{join .root "webserver" "webservers" .name}}`, `install={{join .root "packages" "webserver"}}`, `version=active_prod`, `program={{join "${config:install}" "${config:version}" "JRE/bin/java"}}`, `logdir=logs`, `logfile=WebDashboard.log`, `port=8080`, `libpaths={{join "${config:install}" "${config:version}" "JRE/lib"}}:{{join "${config:install}" "${config:version}" "lib64"}}`, `maxmem=1024m`, `autostart=true`, `truststore={{join .home "cacerts"}}`, }, Directories: []string{ "packages/webserver", "webserver/webservers", }, GetPID: pidCheckFn, }
Functions ¶
This section is empty.
Types ¶
type Webservers ¶
func (*Webservers) Command ¶
func (w *Webservers) Command() (args, env []string, home string)
func (*Webservers) Config ¶
func (w *Webservers) Config() *config.Config
func (*Webservers) Home ¶
func (w *Webservers) Home() string
func (*Webservers) Host ¶
func (w *Webservers) Host() *geneos.Host
func (*Webservers) Load ¶
func (w *Webservers) Load() (err error)
func (*Webservers) Loaded ¶
func (w *Webservers) Loaded() time.Time
func (*Webservers) Name ¶
func (w *Webservers) Name() string
func (*Webservers) Rebuild ¶
func (w *Webservers) Rebuild(initial bool) (err error)
func (*Webservers) Reload ¶
func (w *Webservers) Reload() (err error)
func (*Webservers) SetLoaded ¶ added in v1.8.0
func (w *Webservers) SetLoaded(t time.Time)
func (*Webservers) String ¶
func (w *Webservers) String() string
func (*Webservers) Type ¶
func (w *Webservers) Type() *geneos.Component
Return the Component for an Instance
func (*Webservers) Unload ¶
func (w *Webservers) Unload() (err error)
Click to show internal directories.
Click to hide internal directories.