Documentation
¶
Index ¶
- Variables
- type CaReference
- type Config
- type ConfigReference
- type Device
- type Directory
- type DirectoryEmbedded1
- type Disk
- type Dropin
- type File
- type FileContents
- type FileEmbedded1
- type Filesystem
- type FilesystemOption
- type Group
- type Ignition
- type IgnitionConfig
- type Link
- type LinkEmbedded1
- type Node
- type NodeGroup
- type NodeUser
- type Partition
- type Passwd
- type PasswdGroup
- type PasswdUser
- type Raid
- type RaidOption
- type SSHAuthorizedKey
- type Security
- type Storage
- type Systemd
- type TLS
- type Timeouts
- type Unit
- type Verification
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxVersion = semver.Version{
Major: 3,
Minor: 0,
}
)
Functions ¶
This section is empty.
Types ¶
type CaReference ¶
type CaReference struct { Source string `json:"source"` Verification Verification `json:"verification,omitempty"` }
func (CaReference) Key ¶
func (c CaReference) Key() string
func (CaReference) Validate ¶
func (ca CaReference) Validate(c path.ContextPath) (r report.Report)
type ConfigReference ¶
type ConfigReference struct { Source *string `json:"source"` Verification Verification `json:"verification,omitempty"` }
func (ConfigReference) Key ¶
func (c ConfigReference) Key() string
func (ConfigReference) Validate ¶
func (cr ConfigReference) Validate(c path.ContextPath) (r report.Report)
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 FileContents ¶
type FileContents struct { Compression *string `json:"compression,omitempty"` Source *string `json:"source,omitempty"` Verification Verification `json:"verification,omitempty"` }
func (FileContents) Validate ¶
func (fc FileContents) Validate(c path.ContextPath) (r report.Report)
type FileEmbedded1 ¶
type FileEmbedded1 struct { Append []FileContents `json:"append,omitempty"` Contents FileContents `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"` 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 Ignition ¶
type Ignition struct { Config IgnitionConfig `json:"config,omitempty"` Security Security `json:"security,omitempty"` Timeouts Timeouts `json:"timeouts,omitempty"` Version string `json:"version,omitempty"` }
type IgnitionConfig ¶
type IgnitionConfig struct { Merge []ConfigReference `json:"merge,omitempty"` Replace ConfigReference `json:"replace,omitempty"` }
type Link ¶
type Link struct { Node LinkEmbedded1 }
type LinkEmbedded1 ¶
type Node ¶
type Partition ¶
type Partition struct { GUID *string `json:"guid,omitempty"` Label *string `json:"label,omitempty"` Number int `json:"number,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"` 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"` System *bool `json:"system,omitempty"` UID *int `json:"uid,omitempty"` }
func (PasswdUser) Key ¶
func (p PasswdUser) Key() string
type Raid ¶
type Raid struct { Devices []Device `json:"devices"` Level string `json:"level"` Name string `json:"name"` Options []RaidOption `json:"options,omitempty"` Spares *int `json:"spares,omitempty"` }
func (Raid) IgnoreDuplicates ¶
type RaidOption ¶
type RaidOption string
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"` Raid []Raid `json:"raid,omitempty"` }
func (Storage) MergedKeys ¶
type TLS ¶
type TLS struct {
CertificateAuthorities []CaReference `json:"certificateAuthorities,omitempty"`
}
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)
Click to show internal directories.
Click to hide internal directories.