vmwareconf

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: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Insecure = true // 自己証明書の許可 `true`
)
View Source
const Version = "0.1.4"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Id string `toml:"id"`
}

type Metric

type Metric struct {
	Id    string `toml:"id"`
	Level int    `toml:"level"`
	Text  string `toml:"text"`
}

func NewMetric

func NewMetric(level int, id string, text string) *Metric

type VMWare

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

	Servers []string  `toml:"servers"`
	Metrics []*Metric `toml:"metrics"`
	// contains filtered or unexported fields
}

func (*VMWare) Config

func (e *VMWare) Config() string

func (*VMWare) Label

func (e *VMWare) Label() string

func (*VMWare) Run

func (e *VMWare) Run(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