Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplate ¶
ApplyTemplate creates and renders a template from the given config template
func RenderConfig ¶
RenderConfig renders the templated config in configFlag to renderFlag.
Types ¶
type Config ¶
type Config struct {
Discovery discovery.Backend
LogConfig *LogConfig
StopTimeout int
Jobs []*jobs.Config
Watches []*watches.Config
Telemetry *telemetry.Config
Control *control.Config
}
Config contains the parsed config elements
func LoadConfig ¶
LoadConfig loads, parses, and validates the configuration
func (*Config) InitLogging ¶
InitLogging configure logrus with the new log config if available
type DefaultLogFormatter ¶
type DefaultLogFormatter struct {
}
DefaultLogFormatter delegates formatting to standard go log package
type Environment ¶
Environment is a map of environment variables to their values
type LogConfig ¶
type LogConfig struct {
Level string `json:"level"`
Format string `json:"format"`
Output string `json:"output"`
}
LogConfig configures the log levels
type RFC3339logWriter ¶
type RFC3339logWriter struct {
}
RFC3339logWriter io.Writer that outputs RFC3339 dates
type Template ¶
type Template struct {
Template *template.Template
Env Environment
}
Template encapsulates a golang template and its associated environment variables.
func NewTemplate ¶
NewTemplate creates a Template parsed from the configuration and the current environment variables