ignition

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ignition implements an enricher for Ignition configs.

Index

Constants

View Source
const (
	// FormatIgnition is the format for Ignition.
	FormatIgnition = "ignition"
)

Variables

This section is empty.

Functions

func RenderNetworkConfigData

func RenderNetworkConfigData(data cloudinit.BaseCloudInitData) (map[string][]byte, error)

RenderNetworkConfigData renders network-config data into systemd-networkd unit files.

Types

type Enricher

type Enricher struct {
	BootstrapData []byte
	Hostname      string
	InstanceID    string
	ProviderID    string
	Network       []cloudinit.NetworkConfigData
}

Enricher is responsible for enriching the Ignition config with additional data.

func (*Enricher) Enrich

func (e *Enricher) Enrich() ([]byte, string, error)

Enrich enriches the Ignition config with additional data.

Jump to

Keyboard shortcuts

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