cloudinit

package
v0.0.0-...-8fd779a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APT

type APT struct {
	Sources map[string]*APTSource `yaml:"sources,omitempty"`
}

type APTSource

type APTSource struct {
	Source string `yaml:"source,omitempty"`
	Key    string `yaml:"key,omitempty"`
	KeyID  string `yaml:"keyid,omitempty"`
}

type UserData

type UserData struct {
	APT                    *APT         `yaml:"apt,omitempty"`
	PackageUpdate          bool         `yaml:"package_update,omitempty"`
	PackageUpgrade         bool         `yaml:"package_upgrade,omitempty"`
	Packages               []string     `yaml:"packages,omitempty"`
	FQDN                   string       `yaml:"fqdn,omitempty"`
	PreferFQDNOverHostname bool         `yaml:"prefer_fqdn_over_hostname,omitempty"`
	SSHAuthorizedKeys      []string     `yaml:"ssh_authorized_keys,omitempty"`
	WriteFiles             []*WriteFile `yaml:"write_files,omitempty"`
	RunCmd                 []any        `yaml:"runcmd,omitempty"`
}

func Unmarshal

func Unmarshal(b []byte) (ud *UserData, err error)

func (*UserData) Gzip

func (userData *UserData) Gzip() ([]byte, error)

func (*UserData) Marshal

func (userData *UserData) Marshal() ([]byte, error)

type WriteFile

type WriteFile struct {
	Path        string `yaml:"path,omitempty"`
	Content     string `yaml:"content,omitempty"`
	Permissions string `yaml:"permissions,omitempty"`
	Append      bool   `yaml:"append,omitempty"`
}

Jump to

Keyboard shortcuts

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