Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Body string `toml:"body"` Expect string `toml:"expect"` MatchPrefix string `toml:"match_prefix"` Match string `toml:"match"` Sleep Duration `toml:"sleep"` Result string }
Command specifies single command, expected (or not) comamnd's result and optional sleep time that should be performed after command execution.
type CustomSequence ¶
type CustomSequence struct {
Command []Command
}
type DBConfig ¶
type DBConfig struct { Driver string Params string Connection interface{} IDserver int `toml:"id_server"` Queries DBQueries }
DBConfig defines database connection settings.
type DBQueries ¶
type DBQueries struct { GetDevices string `toml:"get_devices"` UpdateDevice string `toml:"update_device"` }
DBQueries defines list of database queries.
type Duration ¶
Duration type.
func (*Duration) UnmarshalText ¶
UnmarshalText does unmarshal time duration format.
type GeneralConfig ¶
type GeneralConfig struct { Version string IgnoreErrors bool Verbose bool SkipSummary bool SkipVersionCheck bool Workers int `toml:"workers"` VerifySleep int `toml:"verify_check_sleep"` Certs Certs `toml:"certificates_store"` Service map[string]*Service ModeHandler ModeHandlerFunc DB DBConfig CustomSSHSequence *CustomSequence `toml:"custom-ssh"` CustomAPISequence *CustomSequence `toml:"custom-api"` }
GeneralConfig main application configuration.
type Host ¶
func HostParser ¶
type HostsCleanerFunc ¶
type HostsCleanerFunc func()
HostsCleanerFunc cleanups handlers, connections, open sockets, files etc. used by Loader/Saver/Parser.
type HostsLoaderFunc ¶
type HostsLoaderFunc func(HostParserFunc) ([]Host, error)
HostsLoaderFunc ...
type ModeHandlerFunc ¶
type ModeHandlerFunc func(context.Context, *GeneralConfig, Host) error
Click to show internal directories.
Click to hide internal directories.