Documentation ¶
Index ¶
- type Clevis
- type ClevisCustom
- type Config
- type Device
- type Directory
- type Disk
- type Dropin
- type File
- type Filesystem
- type Group
- type HTTPHeader
- type HTTPHeaders
- type Ignition
- type IgnitionConfig
- type KernelArgument
- type KernelArguments
- type Link
- type Luks
- type NodeGroup
- type NodeUser
- type Partition
- type Passwd
- type PasswdGroup
- type PasswdUser
- type Proxy
- type Raid
- 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 Clevis ¶
type Clevis struct { Custom ClevisCustom `yaml:"custom"` Tang []Tang `yaml:"tang"` Threshold *int `yaml:"threshold"` Tpm2 *bool `yaml:"tpm2"` }
type ClevisCustom ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Variant string `yaml:"variant"` Ignition Ignition `yaml:"ignition"` KernelArguments KernelArguments `yaml:"kernel_arguments"` Passwd Passwd `yaml:"passwd"` Storage Storage `yaml:"storage"` Systemd Systemd `yaml:"systemd"` }
func (Config) ToIgn3_4Unvalidated ¶
func (c Config) ToIgn3_4Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)
ToIgn3_4Unvalidated 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 Dropin ¶
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 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 KernelArgument ¶
type KernelArgument string
type KernelArguments ¶
type KernelArguments struct { ShouldExist []KernelArgument `yaml:"should_exist"` ShouldNotExist []KernelArgument `yaml:"should_not_exist"` }
type Luks ¶
type Luks struct { Clevis Clevis `yaml:"clevis"` Device *string `yaml:"device"` Discard *bool `yaml:"discard"` KeyFile Resource `yaml:"key_file"` Label *string `yaml:"label"` Name string `yaml:"name"` OpenOptions []string `yaml:"open_options"` Options []string `yaml:"options"` UUID *string `yaml:"uuid"` WipeVolume *bool `yaml:"wipe_volume"` }
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"` SSHAuthorizedKeysLocal []string `yaml:"ssh_authorized_keys_local"` Shell *string `yaml:"shell"` System *bool `yaml:"system"` UID *int `yaml:"uid"` }
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 Unit ¶
type Verification ¶
type Verification struct {
Hash *string `yaml:"hash"`
}
Click to show internal directories.
Click to hide internal directories.