Versions in this module Expand all Collapse all v0 v0.17.2 Jul 29, 2017 v0.17.1 Jul 5, 2017 v0.17.0 Jun 30, 2017 Changes in this version + 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 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 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 Dropin struct + Contents string + Name string + func (d Dropin) Validate() report.Report + type File struct + 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 + 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 Ignition struct + Config IgnitionConfig + 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 Networkdunit struct + Contents string + Name string + func (u Networkdunit) Validate() report.Report + type Node struct + Filesystem string + Group NodeGroup + 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 []PasswdUserGroup + 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 PasswdUserGroup string + type Raid struct + Devices []Device + Level string + Name string + Spares int + func (n Raid) ValidateDevices() report.Report + func (n Raid) ValidateLevel() report.Report + type SSHAuthorizedKey string + type Storage struct + Directories []Directory + Disks []Disk + Files []File + Filesystems []Filesystem + Links []Link + Raid []Raid + type Systemd struct + Units []Unit + type Timeouts struct + HTTPResponseHeaders *int + HTTPTotal *int + type Unit struct + Contents string + Dropins []Dropin + 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