Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSON format = "json" YAML format = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func IsValueInList ¶ added in v0.3.6
IsValueInList checks if a value is in the string slice
func ValidateSections ¶ added in v0.3.3
func ValidateSections(unmarshal func(interface{}) error, i interface{}, whitelist map[string]bool) error
ValidateSections validates the sections of the config file
func WhitelistAttrs ¶ added in v0.3.3
Types ¶
type Command ¶
type Command struct { Cmd *exec.Cmd Stdout, Stderr bytes.Buffer Err error Status int // contains filtered or unexported fields }
Command represents a command which can be executed
type Config ¶ added in v0.0.18
type Config struct { IgnoreList []string Timeout int AllowInsecure bool NoFollowRedirects bool Server string Username string Password string Header map[string][]string RequestHeaders map[string][]string Certificate tls.Certificate }
Config type is a helper type which holds the configuration of the given resource
type OutputConfig ¶ added in v0.3.6
type OutputConfig struct {
FormatOptions []string
}
Click to show internal directories.
Click to hide internal directories.