Documentation ¶
Index ¶
- Variables
- type Clevis
- type ClevisCustom
- type Config
- type Device
- type Directory
- type DirectoryEmbedded1
- type Disk
- type Dropin
- type File
- type FileEmbedded1
- type Filesystem
- type FilesystemOption
- type Group
- type HTTPHeader
- type HTTPHeaders
- type Ignition
- type IgnitionConfig
- type KernelArgument
- type KernelArguments
- type Link
- type LinkEmbedded1
- type Luks
- type LuksOption
- type MountOption
- type NoProxyItem
- type Node
- type NodeGroup
- type NodeUser
- type OpenOption
- 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 Unit
- type Verification
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxVersion = semver.Version{
Major: 3,
Minor: 4,
}
)
Functions ¶
This section is empty.
Types ¶
type Clevis ¶
type Clevis struct { Custom ClevisCustom `json:"custom,omitempty"` Tang []Tang `json:"tang,omitempty"` Threshold *int `json:"threshold,omitempty"` Tpm2 *bool `json:"tpm2,omitempty"` }
type ClevisCustom ¶
type ClevisCustom struct { Config *string `json:"config,omitempty"` NeedsNetwork *bool `json:"needsNetwork,omitempty"` Pin *string `json:"pin,omitempty"` }
func (ClevisCustom) Validate ¶
func (cu ClevisCustom) Validate(c path.ContextPath) (r report.Report)
type Config ¶
type Config struct { Ignition Ignition `json:"ignition"` KernelArguments KernelArguments `json:"kernelArguments,omitempty"` Passwd Passwd `json:"passwd,omitempty"` Storage Storage `json:"storage,omitempty"` Systemd Systemd `json:"systemd,omitempty"` }
type Directory ¶
type Directory struct { Node DirectoryEmbedded1 }
type DirectoryEmbedded1 ¶
type DirectoryEmbedded1 struct {
Mode *int `json:"mode,omitempty"`
}
type Disk ¶
type File ¶
type File struct { Node FileEmbedded1 }
type FileEmbedded1 ¶
type FileEmbedded1 struct { Append []Resource `json:"append,omitempty"` Contents Resource `json:"contents,omitempty"` Mode *int `json:"mode,omitempty"` }
func (FileEmbedded1) IgnoreDuplicates ¶
func (f FileEmbedded1) IgnoreDuplicates() map[string]struct{}
type Filesystem ¶
type Filesystem struct { Device string `json:"device"` Format *string `json:"format,omitempty"` Label *string `json:"label,omitempty"` MountOptions []MountOption `json:"mountOptions,omitempty"` Options []FilesystemOption `json:"options,omitempty"` Path *string `json:"path,omitempty"` UUID *string `json:"uuid,omitempty"` WipeFilesystem *bool `json:"wipeFilesystem,omitempty"` }
func (Filesystem) IgnoreDuplicates ¶
func (f Filesystem) IgnoreDuplicates() map[string]struct{}
func (Filesystem) Key ¶
func (f Filesystem) Key() string
func (Filesystem) Validate ¶
func (f Filesystem) Validate(c path.ContextPath) (r report.Report)
type FilesystemOption ¶
type FilesystemOption string
type HTTPHeader ¶
func (HTTPHeader) Key ¶
func (h HTTPHeader) Key() string
func (HTTPHeader) Validate ¶
func (h HTTPHeader) Validate(c path.ContextPath) (r report.Report)
type HTTPHeaders ¶
type HTTPHeaders []HTTPHeader
type Ignition ¶
type Ignition struct { Config IgnitionConfig `json:"config,omitempty"` Proxy Proxy `json:"proxy,omitempty"` Security Security `json:"security,omitempty"` Timeouts Timeouts `json:"timeouts,omitempty"` Version string `json:"version"` }
type IgnitionConfig ¶
type IgnitionConfig struct { Merge []Resource `json:"merge,omitempty"` Replace Resource `json:"replace,omitempty"` }
func (IgnitionConfig) Validate ¶
func (ic IgnitionConfig) Validate(c path.ContextPath) (r report.Report)
type KernelArgument ¶
type KernelArgument string
type KernelArguments ¶
type KernelArguments struct { ShouldExist []KernelArgument `json:"shouldExist,omitempty"` ShouldNotExist []KernelArgument `json:"shouldNotExist,omitempty"` }
func (KernelArguments) MergedKeys ¶
func (k KernelArguments) MergedKeys() map[string]string
type Link ¶
type Link struct { Node LinkEmbedded1 }
type LinkEmbedded1 ¶
type Luks ¶
type Luks struct { Clevis Clevis `json:"clevis,omitempty"` Device *string `json:"device,omitempty"` Discard *bool `json:"discard,omitempty"` KeyFile Resource `json:"keyFile,omitempty"` Label *string `json:"label,omitempty"` Name string `json:"name"` OpenOptions []OpenOption `json:"openOptions,omitempty"` Options []LuksOption `json:"options,omitempty"` UUID *string `json:"uuid,omitempty"` WipeVolume *bool `json:"wipeVolume,omitempty"` }
func (Luks) IgnoreDuplicates ¶
type LuksOption ¶
type LuksOption string
type MountOption ¶
type MountOption string
type NoProxyItem ¶
type NoProxyItem string
type Node ¶
type OpenOption ¶
type OpenOption string
type Partition ¶
type Partition struct { GUID *string `json:"guid,omitempty"` Label *string `json:"label,omitempty"` Number int `json:"number,omitempty"` Resize *bool `json:"resize,omitempty"` ShouldExist *bool `json:"shouldExist,omitempty"` SizeMiB *int `json:"sizeMiB,omitempty"` StartMiB *int `json:"startMiB,omitempty"` TypeGUID *string `json:"typeGuid,omitempty"` WipePartitionEntry *bool `json:"wipePartitionEntry,omitempty"` }
type Passwd ¶
type Passwd struct { Groups []PasswdGroup `json:"groups,omitempty"` Users []PasswdUser `json:"users,omitempty"` }
type PasswdGroup ¶
type PasswdGroup struct { Gid *int `json:"gid,omitempty"` Name string `json:"name"` PasswordHash *string `json:"passwordHash,omitempty"` ShouldExist *bool `json:"shouldExist,omitempty"` System *bool `json:"system,omitempty"` }
func (PasswdGroup) Key ¶
func (g PasswdGroup) Key() string
type PasswdUser ¶
type PasswdUser struct { Gecos *string `json:"gecos,omitempty"` Groups []Group `json:"groups,omitempty"` HomeDir *string `json:"homeDir,omitempty"` Name string `json:"name"` NoCreateHome *bool `json:"noCreateHome,omitempty"` NoLogInit *bool `json:"noLogInit,omitempty"` NoUserGroup *bool `json:"noUserGroup,omitempty"` PasswordHash *string `json:"passwordHash,omitempty"` PrimaryGroup *string `json:"primaryGroup,omitempty"` SSHAuthorizedKeys []SSHAuthorizedKey `json:"sshAuthorizedKeys,omitempty"` Shell *string `json:"shell,omitempty"` ShouldExist *bool `json:"shouldExist,omitempty"` System *bool `json:"system,omitempty"` UID *int `json:"uid,omitempty"` }
func (PasswdUser) Key ¶
func (p PasswdUser) Key() string
type Proxy ¶
type Proxy struct { HTTPProxy *string `json:"httpProxy,omitempty"` HTTPSProxy *string `json:"httpsProxy,omitempty"` NoProxy []NoProxyItem `json:"noProxy,omitempty"` }
type Raid ¶
type Raid struct { Devices []Device `json:"devices,omitempty"` Level *string `json:"level,omitempty"` Name string `json:"name"` Options []RaidOption `json:"options,omitempty"` Spares *int `json:"spares,omitempty"` }
func (Raid) IgnoreDuplicates ¶
type RaidOption ¶
type RaidOption string
type Resource ¶
type Resource struct { Compression *string `json:"compression,omitempty"` HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"` Source *string `json:"source,omitempty"` Verification Verification `json:"verification,omitempty"` }
type SSHAuthorizedKey ¶
type SSHAuthorizedKey string
type Storage ¶
type Storage struct { Directories []Directory `json:"directories,omitempty"` Disks []Disk `json:"disks,omitempty"` Files []File `json:"files,omitempty"` Filesystems []Filesystem `json:"filesystems,omitempty"` Links []Link `json:"links,omitempty"` Luks []Luks `json:"luks,omitempty"` Raid []Raid `json:"raid,omitempty"` }
func (Storage) MergedKeys ¶
type TLS ¶
type TLS struct {
CertificateAuthorities []Resource `json:"certificateAuthorities,omitempty"`
}
type Tang ¶
type Unit ¶
type Verification ¶
type Verification struct {
Hash *string `json:"hash,omitempty"`
}
func (Verification) HashParts ¶
func (v Verification) HashParts() (string, string, error)
HashParts will return the sum and function (in that order) of the hash stored in this Verification, or an error if there is an issue during parsing.
func (Verification) Validate ¶
func (v Verification) Validate(c path.ContextPath) (r report.Report)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.