Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogConfig ¶
RegisterLogConfig is used by commands to register the log config flags.
func RegisterNomadConfig ¶
RegisterNomadConfig is used by commands to register the Nomad config flags.
func RegisterSlackConfig ¶
RegisterSlackConfig is used by commands to register the Slack config flags.
Types ¶
type LogConfig ¶
LogConfig is the nomad-toast logging config struct.
func GetLogConfig ¶
func GetLogConfig() LogConfig
GetLogConfig uses viper to populate a LogConfig struct with values.
type NomadConfig ¶
NomadConfig is the nomad-toast Nomad client config struct.
func GetNomadConfig ¶
func GetNomadConfig() NomadConfig
GetNomadConfig uses viper to populate a NomadConfig struct with values.
type SlackConfig ¶
SlackConfig is the nomad-toast Slack config struct.
func GetSlackConfig ¶
func GetSlackConfig() SlackConfig
GetSlackConfig uses viper to populate a SlackConfig struct with values.
type ToastConfig ¶
type ToastConfig struct { Nomad *NomadConfig Slack *SlackConfig }
ToastConfig is the overall config struct used for running nomad-toast.