v1_5

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToIgn3_4Bytes

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

ToIgn3_4Bytes translates from a v1.5 Butane config to a v3.4.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 BootDevice

type BootDevice struct {
	Layout *string          `yaml:"layout"`
	Luks   BootDeviceLuks   `yaml:"luks"`
	Mirror BootDeviceMirror `yaml:"mirror"`
}

func (BootDevice) Validate

func (d BootDevice) Validate(c path.ContextPath) (r report.Report)

type BootDeviceLuks

type BootDeviceLuks struct {
	Discard   *bool       `yaml:"discard"`
	Tang      []base.Tang `yaml:"tang"`
	Threshold *int        `yaml:"threshold"`
	Tpm2      *bool       `yaml:"tpm2"`
}

type BootDeviceMirror

type BootDeviceMirror struct {
	Devices []string `yaml:"devices"`
}

func (BootDeviceMirror) Validate

func (m BootDeviceMirror) Validate(c path.ContextPath) (r report.Report)

type Config

type Config struct {
	base.Config `yaml:",inline"`
	BootDevice  BootDevice `yaml:"boot_device"`
	Grub        Grub       `yaml:"grub"`
}

func (Config) FieldFilters added in v0.19.0

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

Return FieldFilters for this spec.

func (Config) ToIgn3_4

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

ToIgn3_4 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_4Unvalidated

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

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

type Grub

type Grub struct {
	Users []GrubUser `yaml:"users"`
}

type GrubUser

type GrubUser struct {
	Name         string  `yaml:"name"`
	PasswordHash *string `yaml:"password_hash"`
}

func (GrubUser) Validate

func (user GrubUser) Validate(c path.ContextPath) (r report.Report)

Jump to

Keyboard shortcuts

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