cloudinittypes

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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