Versions in this module Expand all Collapse all v0 v0.33.0 Jun 28, 2019 v0.32.0 Apr 17, 2019 v0.31.0 Feb 20, 2019 v0.30.0 Dec 14, 2018 v0.29.1 Dec 6, 2018 v0.29.0 Dec 3, 2018 v0.28.0 Aug 22, 2018 v0.27.0 Aug 9, 2018 v0.26.0 Jun 12, 2018 v0.25.1 May 23, 2018 v0.25.0 May 17, 2018 v0.24.1 May 23, 2018 v0.24.0 Apr 6, 2018 Changes in this version type LinkEmbedded1 + func (s LinkEmbedded1) ValidateTarget() report.Report v0.23.0 Mar 13, 2018 v0.22.0 Feb 9, 2018 Changes in this version + var ErrAppendAndOverwrite = errors.New("cannot set both append and overwrite to true") + var ErrBothIDAndNameSet = errors.New("cannot set both id and name") + var ErrBtrfsLabelTooLong = errors.New("filesystem labels cannot be longer than 256 characters when using btrfs") + var ErrCompressionInvalid = errors.New("invalid compression method") + var ErrDoesntMatchGUIDRegex = errors.New("doesn't match the form \"01234567-89AB-CDEF-EDCB-A98765432101\"") + var ErrExt4LabelTooLong = errors.New("filesystem labels cannot be longer than 16 characters when using ext4") + var ErrFileIllegalMode = errors.New("illegal file mode") + var ErrFilesystemInvalidFormat = errors.New("invalid filesystem format") + var ErrFilesystemMountAndPath = errors.New("filesystem has both mount and path defined") + var ErrFilesystemNoMountPath = errors.New("filesystem is missing mount or path") + var ErrHashMalformed = errors.New("malformed hash specifier") + var ErrHashUnrecognized = errors.New("unrecognized hash function") + var ErrHashWrongSize = errors.New("incorrect size for hash sum") + var ErrInvalidNetworkdExt = errors.New("invalid networkd unit extension") + var ErrInvalidScheme = errors.New("invalid url scheme") + var ErrInvalidSystemdExt = errors.New("invalid systemd unit extension") + var ErrInvalidVersion = errors.New("invalid config version (couldn't parse)") + var ErrLabelContainsColon = errors.New("partition label will be truncated to text before the colon") + var ErrLabelTooLong = errors.New("partition labels may not exceed 36 characters") + var ErrNewVersion = errors.New("incorrect config version (too new)") + var ErrNoFilesystem = errors.New("no filesystem specified") + var ErrOldVersion = errors.New("incorrect config version (too old)") + var ErrPasswdCreateAndGecos = errors.New("cannot use both the create object and the user-level gecos field") + var ErrPasswdCreateAndGroups = errors.New("cannot use both the create object and the user-level groups field") + var ErrPasswdCreateAndHomeDir = errors.New("cannot use both the create object and the user-level homeDir field") + var ErrPasswdCreateAndNoCreateHome = errors.New("cannot use both the create object and the user-level noCreateHome field") + var ErrPasswdCreateAndNoLogInit = errors.New("cannot use both the create object and the user-level noLogInit field") + var ErrPasswdCreateAndNoUserGroup = errors.New("cannot use both the create object and the user-level noUserGroup field") + var ErrPasswdCreateAndPrimaryGroup = errors.New("cannot use both the create object and the user-level primaryGroup field") + var ErrPasswdCreateAndShell = errors.New("cannot use both the create object and the user-level shell field") + var ErrPasswdCreateAndSystem = errors.New("cannot use both the create object and the user-level system field") + var ErrPasswdCreateAndUID = errors.New("cannot use both the create object and the user-level uid field") + var ErrPasswdCreateDeprecated = errors.New("the create object has been deprecated in favor of user-level options") + var ErrPathRelative = errors.New("path not absolute") + var ErrSwapLabelTooLong = errors.New("filesystem labels cannot be longer than 15 characters when using swap") + var ErrUsedCreateAndMountOpts = errors.New("cannot use both create object and mount-level options field") + var ErrUsedCreateAndWipeFilesystem = errors.New("cannot use both create object and wipeFilesystem field") + var ErrVfatLabelTooLong = errors.New("filesystem labels cannot be longer than 11 characters when using vfat") + var ErrWarningCreateDeprecated = errors.New("the create object has been deprecated in favor of mount-level options") + var ErrXfsLabelTooLong = errors.New("filesystem labels cannot be longer than 12 characters when using xfs") + var MaxVersion = semver.Version + type CaReference struct + Source string + Verification Verification + func (c CaReference) ValidateSource() report.Report + type Config struct + Ignition Ignition + Networkd Networkd + Passwd Passwd + Storage Storage + Systemd Systemd + func (c Config) Validate() report.Report + type ConfigReference struct + Source string + Verification Verification + func (c ConfigReference) ValidateSource() report.Report + type Create struct + Force bool + Options []CreateOption + type CreateOption string + type Device string + type Directory struct + func (d Directory) ValidateMode() report.Report + type DirectoryEmbedded1 struct + Mode *int + type Disk struct + Device string + Partitions []Partition + WipeTable bool + func (n Disk) Validate() report.Report + func (n Disk) ValidateDevice() report.Report + func (n Disk) ValidatePartitions() report.Report + type File struct + func (f File) Validate() report.Report + func (f File) ValidateMode() report.Report + type FileContents struct + Compression string + Source string + Verification Verification + func (fc FileContents) ValidateCompression() report.Report + func (fc FileContents) ValidateSource() report.Report + type FileEmbedded1 struct + Append bool + Contents FileContents + Mode *int + type Filesystem struct + Mount *Mount + Name string + Path *string + func (f Filesystem) Validate() report.Report + func (f Filesystem) ValidatePath() report.Report + type Group string + type Ignition struct + Config IgnitionConfig + Security Security + Timeouts Timeouts + Version string + func (v Ignition) Semver() (*semver.Version, error) + func (v Ignition) Validate() report.Report + type IgnitionConfig struct + Append []ConfigReference + Replace *ConfigReference + type Link struct + func (s Link) Validate() report.Report + type LinkEmbedded1 struct + Hard bool + Target string + type Mount struct + Create *Create + Device string + Format string + Label *string + Options []MountOption + UUID *string + WipeFilesystem bool + func (m Mount) Validate() report.Report + func (m Mount) ValidateDevice() report.Report + func (m Mount) ValidateLabel() report.Report + type MountOption string + type Networkd struct + Units []Networkdunit + type NetworkdDropin struct + Contents string + Name string + func (d NetworkdDropin) Validate() report.Report + type Networkdunit struct + Contents string + Dropins []NetworkdDropin + Name string + func (u Networkdunit) Validate() report.Report + type Node struct + Filesystem string + Group *NodeGroup + Overwrite *bool + Path string + User *NodeUser + func (n Node) Depth() int + func (n Node) ValidateFilesystem() report.Report + func (n Node) ValidatePath() report.Report + type NodeGroup struct + ID *int + Name string + func (ng NodeGroup) Validate() report.Report + type NodeUser struct + ID *int + Name string + func (nu NodeUser) Validate() report.Report + type Partition struct + GUID string + Label string + Number int + Size int + Start int + TypeGUID string + func (p Partition) ValidateGUID() report.Report + func (p Partition) ValidateLabel() report.Report + func (p Partition) ValidateTypeGUID() report.Report + type Passwd struct + Groups []PasswdGroup + Users []PasswdUser + type PasswdGroup struct + Gid *int + Name string + PasswordHash string + System bool + type PasswdUser struct + Create *Usercreate + Gecos string + Groups []Group + HomeDir string + Name string + NoCreateHome bool + NoLogInit bool + NoUserGroup bool + PasswordHash *string + PrimaryGroup string + SSHAuthorizedKeys []SSHAuthorizedKey + Shell string + System bool + UID *int + func (p PasswdUser) Validate() report.Report + type Raid struct + Devices []Device + Level string + Name string + Options []RaidOption + Spares int + func (n Raid) ValidateDevices() report.Report + func (n Raid) ValidateLevel() report.Report + type RaidOption string + type SSHAuthorizedKey string + type Security struct + TLS TLS + type Storage struct + Directories []Directory + Disks []Disk + Files []File + Filesystems []Filesystem + Links []Link + Raid []Raid + type Systemd struct + Units []Unit + type SystemdDropin struct + Contents string + Name string + func (d SystemdDropin) Validate() report.Report + type TLS struct + CertificateAuthorities []CaReference + type Timeouts struct + HTTPResponseHeaders *int + HTTPTotal *int + type Unit struct + Contents string + Dropins []SystemdDropin + Enable bool + Enabled *bool + Mask bool + Name string + func (u Unit) ValidateContents() report.Report + func (u Unit) ValidateName() report.Report + type Usercreate struct + Gecos string + Groups []UsercreateGroup + HomeDir string + NoCreateHome bool + NoLogInit bool + NoUserGroup bool + PrimaryGroup string + Shell string + System bool + UID *int + type UsercreateGroup string + type Verification struct + Hash *string + func (v Verification) HashParts() (string, string, error) + func (v Verification) Validate() report.Report