Documentation ¶
Index ¶
- Constants
- func ToConfigBytes(input []byte, options common.TranslateBytesOptions) ([]byte, report.Report, error)
- type Config
- func (c Config) FieldFilters() *cutil.FieldFilters
- func (c Config) ToIgn3_2(options common.TranslateOptions) (types.Config, report.Report, error)
- func (c Config) ToIgn3_2Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)
- func (c Config) ToMachineConfig4_13(options common.TranslateOptions) (result.MachineConfig, report.Report, error)
- func (c Config) ToMachineConfig4_13Unvalidated(options common.TranslateOptions) (result.MachineConfig, translate.TranslationSet, report.Report)
- type Metadata
- type OpenShift
Constants ¶
const ROLE_LABEL_KEY = "machineconfiguration.openshift.io/role"
Variables ¶
This section is empty.
Functions ¶
func ToConfigBytes ¶
func ToConfigBytes(input []byte, options common.TranslateBytesOptions) ([]byte, report.Report, error)
ToConfigBytes translates from a v4.13 Butane config to a v4.13 MachineConfig or a v3.2.0 Ignition config. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.
Types ¶
type Config ¶
type Config struct { fcos.Config `yaml:",inline"` Metadata Metadata `yaml:"metadata"` OpenShift OpenShift `yaml:"openshift"` }
func (Config) FieldFilters ¶ added in v0.19.0
func (c Config) FieldFilters() *cutil.FieldFilters
Return FieldFilters for this spec.
func (Config) ToIgn3_2 ¶
ToIgn3_2 translates the config to an Ignition config. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.
func (Config) ToIgn3_2Unvalidated ¶
func (c Config) ToIgn3_2Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)
ToIgn3_2Unvalidated translates the config to an Ignition config. It also returns the set of translations it did so paths in the resultant config can be tracked back to their source in the source config. No config validation is performed on input or output.
func (Config) ToMachineConfig4_13 ¶
func (c Config) ToMachineConfig4_13(options common.TranslateOptions) (result.MachineConfig, report.Report, error)
ToMachineConfig4_13 translates the config to a MachineConfig. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.
func (Config) ToMachineConfig4_13Unvalidated ¶
func (c Config) ToMachineConfig4_13Unvalidated(options common.TranslateOptions) (result.MachineConfig, translate.TranslationSet, report.Report)
ToMachineConfig4_13Unvalidated translates the config to a MachineConfig. It also returns the set of translations it did so paths in the resultant config can be tracked back to their source in the source config. No config validation is performed on input or output.