cloudinittypes

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CACerts

type CACerts struct {
	RemoveDefaults bool     `yaml:"remove_defaults,omitempty"`
	Trusted        []string `yaml:"trusted,omitempty"`
}

type Growpart

type Growpart struct {
	Mode    string   `yaml:"mode"`
	Devices []string `yaml:"devices"`
}

type MetaData

type MetaData struct {
	InstanceID    string `yaml:"instance-id,omitempty"`
	LocalHostname string `yaml:"local-hostname,omitempty"`
}

type ResolvConf

type ResolvConf struct {
	Nameservers []string `yaml:"nameservers,omitempty"`
}

type User

type User struct {
	Name              string   `yaml:"name,omitempty"`
	Gecos             string   `yaml:"gecos,omitempty"`
	UID               string   `yaml:"uid,omitempty"` // TODO: check if int is allowed too
	Homedir           string   `yaml:"homedir,omitempty"`
	Shell             string   `yaml:"shell,omitempty"`
	Sudo              string   `yaml:"sudo,omitempty"` // TODO: allow []string as well
	LockPasswd        string   `yaml:"lock_passwd,omitempty"`
	SSHAuthorizedKeys []string `yaml:"ssh-authorized-keys,omitempty"`
}

type UserData

type UserData struct {
	Growpart *Growpart `yaml:"growpart,omitempty"`

	PackageUpdate           bool `yaml:"package_update,omitempty"`
	PackageUpgrade          bool `yaml:"package_upgrade,omitempty"`
	PackageRebootIfRequired bool `yaml:"package_reboot_if_required,omitempty"`

	Mounts [][]string `yaml:"mounts,omitempty"`

	Timezone string `yaml:"timezone,omitempty"`

	Users []User `yaml:"users,omitempty"`

	WriteFiles []WriteFile `yaml:"write_files,omitempty"`

	ManageResolvConf bool        `yaml:"manage_resolv_conf,omitempty"`
	ResolvConf       *ResolvConf `yaml:"resolv_conf,omitempty"`

	CACerts *CACerts `yaml:"ca_certs,omitempty"`

	BootCmd []string `yaml:"bootcmd,omitempty"`
}

type WriteFile

type WriteFile struct {
	Content     string `yaml:"content"`
	Owner       string `yaml:"owner,omitempty"`
	Path        string `yaml:"path"`
	Permissions string `yaml:"permissions,omitempty"` // TODO: check if int is allowed too
}

Jump to

Keyboard shortcuts

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