Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter interface {
// Clone clones the config by returning a new copy of the current one.
Clone() (Converter, error)
// SetDefaults assigns default values to empty config fields.
SetDefaults() error
// GetVersion returns the config version.
GetVersion() Version
// ConvertNext converts the config to the next version.
ConvertNext() (Converter, error)
// Decode decodes the config file from YAML and updates its values.
Decode(io.Reader) error
}
Converter defines the interface required to migrate configurations to newer versions.
Click to show internal directories.
Click to hide internal directories.