Documentation ¶
Index ¶
- Variables
- func Append(oldConfig, newConfig types.Config) types.Config
- func Parse(rawConfig []byte) (types.Config, report.Report, error)
- func ParseFromLatest(rawConfig []byte) (types.Config, report.Report, error)
- func ParseFromV1(rawConfig []byte) (types.Config, report.Report, error)
- func ParseFromV2_0(rawConfig []byte) (types.Config, report.Report, error)
- func ParseFromV2_1(rawConfig []byte) (types.Config, report.Report, error)
- func ParseFromV2_2(rawConfig []byte) (types.Config, report.Report, error)
- func TranslateFromV1(old v1.Config) types.Config
- func TranslateFromV2_0(old v2_0.Config) types.Config
- func TranslateFromV2_1(old v2_1.Config) types.Config
- func TranslateFromV2_2(old v2_2.Config) types.Config
- func Version(rawConfig []byte) (semver.Version, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCloudConfig = errors.New("not a config (found coreos-cloudconfig)") ErrEmpty = errors.New("not a config (empty)") ErrScript = errors.New("not a config (found coreos-cloudinit script)") ErrDeprecated = errors.New("config format deprecated") ErrInvalid = errors.New("config is not valid") ErrUnknownVersion = errors.New("unsupported config version") ErrVersionIndeterminable = errors.New("unable to determine version") )
Functions ¶
func Append ¶
Append appends newConfig to oldConfig and returns the result. Appending one config to another is accomplished by iterating over every field in the config structure, appending slices, recursively appending structs, and overwriting old values with new values for all other types.
func Parse ¶
Parse parses the raw config into a types.Config struct and generates a report of any errors, warnings, info, and deprecations it encountered
func ParseFromV2_0 ¶ added in v0.13.0
func ParseFromV2_1 ¶ added in v0.17.0
func ParseFromV2_2 ¶ added in v0.22.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.