cloudinit

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenImage

func GenImage(data *Data, outfile string) error

Types

type Data

type Data struct {
	Metadata *MetadataConfig
	Network  *NetworkConfig
}

type EthernetConfig

type EthernetConfig struct {
	Match struct {
		MacAddress string `json:"mac_address" yaml:"mac_address"`
	} `json:"match" yaml:"match"`
	Addresses []string `json:"addresses" yaml:"addresses"`
	Gateway4  string   `json:"gateway4,omitempty" yaml:"gateway4,omitempty"`
	Gateway6  string   `json:"gateway6,omitempty" yaml:"gateway6,omitempty"`
}

type MetadataConfig

type MetadataConfig struct {
	DSMode     string `json:"dsmode" yaml:"dsmode"`
	InstanceID string `json:"instance-id" yaml:"instance-id"`
}

type NetworkConfig

type NetworkConfig struct {
	Version   int                       `json:"version" yaml:"version"`
	Ethernets map[string]EthernetConfig `json:"ethernets" yaml:"ethernets"`
}

Jump to

Keyboard shortcuts

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