config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Modules map[string]*Module `yaml:"modules"`
}

type Module

type Module struct {
	ModuleName        string
	User              string   `yaml:"user"`
	Password          string   `yaml:"password"`
	PrivateKey        string   `yaml:"private_key"`
	KnownHosts        string   `yaml:"known_hosts"`
	HostKeyAlgorithms []string `yaml:"host_key_algorithms"`
	Timeout           int      `yaml:"timeout"`
	Command           string   `yaml:"command"`
	CommandExpect     string   `yaml:"command_expect"`
	OutputMetric      bool     `yaml:"output_metric"`
	OutputTruncate    int      `yaml:"output_truncate"`
}

type SafeConfig

type SafeConfig struct {
	sync.RWMutex
	C *Config
}

func (*SafeConfig) ReloadConfig

func (sc *SafeConfig) ReloadConfig(configFile string) error

type Target

type Target struct {
	Host              string
	User              string
	Password          string
	PrivateKey        string
	KnownHosts        string
	HostKeyAlgorithms []string
	Timeout           int
	Command           string
	CommandExpect     string
	OutputMetric      bool
	OutputTruncate    int
}

Jump to

Keyboard shortcuts

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