solarisconf

package
v0.0.0-...-f7150f6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.4"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Level int           `toml:"level"`
	Type  sshx.ExecType `toml:"type"`
	Id    string        `toml:"id"`
	Text  string        `toml:"text"`
	// contains filtered or unexported fields
}

func NewMetric

func NewMetric(level int, execType sshx.ExecType, id string, text string) *Metric

type Metrics

type Metrics struct {
	Metrics []*Metric
}

type Solaris

type Solaris struct {
	Server     string `toml:"server"`
	Url        string `toml:"url"`
	User       string `toml:"user"`
	Password   string `toml:"password"`
	SshKeyPath string `toml:"ssh_key"`
	Insecure   bool   `toml:"insecure"`

	Metrics []*Metric `toml:"metrics"`

	Env *cfg.RunEnv
	// contains filtered or unexported fields
}

func (*Solaris) Config

func (e *Solaris) Config() string

func (*Solaris) Label

func (e *Solaris) Label() string

func (*Solaris) Run

func (e *Solaris) Run(ctx context.Context, env *cfg.RunEnv) error

func (*Solaris) RunRemoteServer

func (e *Solaris) RunRemoteServer(ctx context.Context, env *cfg.RunEnv) error

func (*Solaris) RunRemoteServerTelnet

func (e *Solaris) RunRemoteServerTelnet(ctx context.Context, env *cfg.RunEnv) error

Jump to

Keyboard shortcuts

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