Documentation ¶
Index ¶
- type Clevis
- type Config
- type Custom
- type Device
- type Directory
- type Disk
- type Dropin
- type File
- type Filesystem
- type FilesystemOption
- type Group
- type HTTPHeader
- type HTTPHeaders
- type Ignition
- type IgnitionConfig
- type Link
- type Luks
- type LuksOption
- type NodeGroup
- type NodeUser
- type Partition
- type Passwd
- type PasswdGroup
- type PasswdUser
- type Proxy
- type Raid
- type RaidOption
- type Resource
- type SSHAuthorizedKey
- type Security
- type Storage
- type Systemd
- type TLS
- type Tang
- type Timeouts
- type Tree
- type Unit
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Variant string `yaml:"variant"` Ignition Ignition `yaml:"ignition"` Passwd Passwd `yaml:"passwd"` Storage Storage `yaml:"storage"` Systemd Systemd `yaml:"systemd"` }
func (Config) ToIgn3_2Unvalidated ¶
func (c Config) ToIgn3_2Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)
ToIgn3_2Unvalidated translates the config to an Ignition config. It also returns the set of translations it did so paths in the resultant config can be tracked back to their source in the source config. No config validation is performed on input or output.
type Directory ¶
type File ¶
type Filesystem ¶
type Filesystem struct { Device string `yaml:"device"` Format *string `yaml:"format"` Label *string `yaml:"label"` MountOptions []string `yaml:"mount_options"` Options []string `yaml:"options"` Path *string `yaml:"path"` UUID *string `yaml:"uuid"` WipeFilesystem *bool `yaml:"wipe_filesystem"` WithMountUnit *bool `yaml:"with_mount_unit" butane:"auto_skip"` // Added, not in Ignition spec }
func (Filesystem) Validate ¶
func (fs Filesystem) Validate(c path.ContextPath) (r report.Report)
type FilesystemOption ¶
type FilesystemOption string
type HTTPHeader ¶
type HTTPHeaders ¶
type HTTPHeaders []HTTPHeader
type Ignition ¶
type Ignition struct { Config IgnitionConfig `yaml:"config"` Proxy Proxy `yaml:"proxy"` Security Security `yaml:"security"` Timeouts Timeouts `yaml:"timeouts"` }
type IgnitionConfig ¶
type LuksOption ¶
type LuksOption string
type Partition ¶
type Partition struct { GUID *string `yaml:"guid"` Label *string `yaml:"label"` Number int `yaml:"number"` Resize *bool `yaml:"resize"` ShouldExist *bool `yaml:"should_exist"` SizeMiB *int `yaml:"size_mib"` StartMiB *int `yaml:"start_mib"` TypeGUID *string `yaml:"type_guid"` WipePartitionEntry *bool `yaml:"wipe_partition_entry"` }
type Passwd ¶
type Passwd struct { Groups []PasswdGroup `yaml:"groups"` Users []PasswdUser `yaml:"users"` }
type PasswdGroup ¶
type PasswdUser ¶
type PasswdUser struct { Gecos *string `yaml:"gecos"` Groups []Group `yaml:"groups"` HomeDir *string `yaml:"home_dir"` Name string `yaml:"name"` NoCreateHome *bool `yaml:"no_create_home"` NoLogInit *bool `yaml:"no_log_init"` NoUserGroup *bool `yaml:"no_user_group"` PasswordHash *string `yaml:"password_hash"` PrimaryGroup *string `yaml:"primary_group"` ShouldExist *bool `yaml:"should_exist"` SSHAuthorizedKeys []SSHAuthorizedKey `yaml:"ssh_authorized_keys"` Shell *string `yaml:"shell"` System *bool `yaml:"system"` UID *int `yaml:"uid"` }
type Raid ¶
type Raid struct { Devices []Device `yaml:"devices"` Level string `yaml:"level"` Name string `yaml:"name"` Options []RaidOption `yaml:"options"` Spares *int `yaml:"spares"` }
type RaidOption ¶
type RaidOption string
type Resource ¶
type Resource struct { Compression *string `yaml:"compression"` HTTPHeaders HTTPHeaders `yaml:"http_headers"` Source *string `yaml:"source"` Inline *string `yaml:"inline"` // Added, not in ignition spec Local *string `yaml:"local"` // Added, not in ignition spec Verification Verification `yaml:"verification"` }
type SSHAuthorizedKey ¶
type SSHAuthorizedKey string
type Storage ¶
type Storage struct { Directories []Directory `yaml:"directories"` Disks []Disk `yaml:"disks"` Files []File `yaml:"files"` Filesystems []Filesystem `yaml:"filesystems"` Links []Link `yaml:"links"` Luks []Luks `yaml:"luks"` Raid []Raid `yaml:"raid"` Trees []Tree `yaml:"trees" butane:"auto_skip"` // Added, not in ignition spec }
type Verification ¶
type Verification struct {
Hash *string `yaml:"hash"`
}
Click to show internal directories.
Click to hide internal directories.