Documentation ¶
Overview ¶
Package config implements the ConfigContainer structure and accompanying methods. It holds the configuration data for all utilities. Configuration file format is the same for all.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigContainer ¶
type ConfigContainer struct { Prefix string // if this is set, then we prepend this path to all commands Binpaths map[string]string // else, we specify one by one Tick uint JobHist ConfigJobHistContainer TemplateDirs []string }
func NewConfigContainer ¶
func NewConfigContainer() *ConfigContainer
func (*ConfigContainer) DumpConfig ¶
func (cc *ConfigContainer) DumpConfig() string
func (*ConfigContainer) GetConfig ¶
func (cc *ConfigContainer) GetConfig() error
Read & unmarshall configuration from 'name' file into configContainer structure
func (*ConfigContainer) GetTick ¶
func (cc *ConfigContainer) GetTick() time.Duration
type ConfigJobHistContainer ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.