Documentation ¶
Index ¶
- Variables
- type MixConfig
- func (config *MixConfig) Convert(filename string) error
- func (config *MixConfig) CreateDefaultConfig(localrpms bool) error
- func (config *MixConfig) GetConfigFileName() string
- func (config *MixConfig) LoadConfig(filename string) error
- func (config *MixConfig) LoadDefaults(localrpms bool) error
- func (config *MixConfig) LoadDefaultsForPath(localrpms bool, path string)
- func (config *MixConfig) Parse() error
- func (config *MixConfig) Print() error
- func (config *MixConfig) SaveConfig() error
- func (config *MixConfig) SetProperty(propertyStr string, value string) error
Constants ¶
This section is empty.
Variables ¶
var UseNewConfig = false
UseNewConfig controls whether to use the new TOML config format. This is an experimental feature.
Functions ¶
This section is empty.
Types ¶
type MixConfig ¶
type MixConfig struct { Builder builderConf Swupd swupdConf Server serverConf Mixer mixerConf // contains filtered or unexported fields }
MixConfig represents the config parameters found in the builder config file.
func (*MixConfig) CreateDefaultConfig ¶
CreateDefaultConfig creates a default builder.conf using the active directory as base path for the variables values.
func (*MixConfig) GetConfigFileName ¶
GetConfigFileName returns the file name of current config
func (*MixConfig) LoadConfig ¶
LoadConfig loads a configuration file from a provided path or from local directory is none is provided
func (*MixConfig) LoadDefaults ¶
LoadDefaults sets sane values for the config properties
func (*MixConfig) LoadDefaultsForPath ¶
LoadDefaultsForPath sets sane values for config properties using `path` as base directory
func (*MixConfig) Parse ¶
Parse reads the values from a config file without performing validation or env expansion
func (*MixConfig) SaveConfig ¶
SaveConfig saves the properties in MixConfig to a TOML config file