butane

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateBytes

func TranslateBytes(s *sys.System, butane any) ([]byte, error)

TranslateBytes translates the given butane configuration to ignition bytes

func WriteIgnitionFile

func WriteIgnitionFile(s *sys.System, butane any, ignitionFile string) error

WriteIgnitionFile writes an ignition file for the current butane configuration to the given path

Types

type Config

type Config struct {
	Version  string        `yaml:"version"`
	Variant  string        `yaml:"variant"`
	Ignition base.Ignition `yaml:"ignition"`
	Passwd   base.Passwd   `yaml:"passwd"`
	Storage  base.Storage  `yaml:"storage"`
	Systemd  base.Systemd  `yaml:"systemd"`
}

Config represents a basic butane configuration

func (*Config) AddSystemdUnit

func (c *Config) AddSystemdUnit(name, contents string, enabled bool)

AddSystemdUnit adds an inline unit object in butane configuration

func (*Config) MergeInlineIgnition

func (c *Config) MergeInlineIgnition(ignitionConf string)

MergeInlineIgnition adds the given inline ignition configuration as a new merge in butane

Jump to

Keyboard shortcuts

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