linuxconf

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: 15 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 Linux

type Linux struct {
	Server    string    `toml:"server"`
	LocalExec bool      `toml:"local_exec"`
	Servers   []*Server `toml:"servers"`
	Metrics   []*Metric `toml:"metrics"`

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

func (*Linux) Config

func (e *Linux) Config() string

func (*Linux) Label

func (e *Linux) Label() string

func (*Linux) Run

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

func (*Linux) RunLocalCommand

func (e *Linux) RunLocalCommand(ctx context.Context, metric *Metric) error

func (*Linux) RunLocalServer

func (e *Linux) RunLocalServer(ctx context.Context, env *cfg.RunEnv, server string) error

func (*Linux) RunRemoteServer

func (e *Linux) RunRemoteServer(ctx context.Context, env *cfg.RunEnv, sv *Server) error

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 Server

type Server 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"`
}

Jump to

Keyboard shortcuts

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