Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnmarshal is returned when config can't be unmarshaled. ErrUnmarshal = errors.New("max: can't unmarshal config value") // ErrCreateCache is returned when cache can't be created. ErrCreateCache = errors.New("max: can't create cache") )
Functions ¶
func CreateCache ¶ added in v1.1.0
CreateCache creates a new cache.
Types ¶
type Config ¶
type Config struct { Args map[string]interface{} Tasks map[string]*task.Task Variables map[string]string Version string // contains filtered or unexported fields }
Config represents a config file.
func ReadContent ¶
ReadContent creates a new config struct from a string.
func (*Config) Default ¶ added in v1.1.0
func (c *Config) Default()
Default set default values to config struct.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml packages interface to unmarshal custom values.
Click to show internal directories.
Click to hide internal directories.