v1_0

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToIgn3_0Bytes

func ToIgn3_0Bytes(input []byte, options common.TranslateBytesOptions) ([]byte, report.Report, error)

ToIgn3_0Bytes translates from a v1.0 Butane config to a v3.0.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 {
	base.Config `yaml:",inline"`
}

func (Config) FieldFilters added in v0.19.0

func (c Config) FieldFilters() *cutil.FieldFilters

Return FieldFilters for this spec.

func (Config) ToIgn3_0

func (c Config) ToIgn3_0(options common.TranslateOptions) (types.Config, report.Report, error)

ToIgn3_0 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_0Unvalidated added in v0.14.0

func (c Config) ToIgn3_0Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)

ToIgn3_0Unvalidated 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL