config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 4 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"`
	Timeout       int    `yaml:"timeout"`
	Command       string `yaml:"command"`
	CommandExpect string `yaml:"command_expect"`
}

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
	Timeout       int
	Command       string
	CommandExpect string
}

Jump to

Keyboard shortcuts

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