Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Disk
- type File
- type FileMode
- type Filesystem
- type FilesystemCreate
- type FilesystemFormat
- type Group
- type MkfsOptions
- type Networkd
- type NetworkdUnit
- type NetworkdUnitName
- type Partition
- type PartitionDimension
- type PartitionLabel
- type PartitionTypeGUID
- type Passwd
- type Path
- type Raid
- type Storage
- type Systemd
- type SystemdUnit
- type SystemdUnitDropIn
- type SystemdUnitDropInName
- type SystemdUnitName
- type User
- type UserCreate
Constants ¶
View Source
const (
Version = 1
)
Variables ¶
View Source
var (
ErrFileIllegalMode = errors.New("illegal file mode")
)
View Source
var (
ErrFilesystemInvalidFormat = errors.New("invalid filesystem format")
)
View Source
var (
ErrPathRelative = errors.New("path not absolute")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version int `json:"ignitionVersion"` Storage Storage `json:"storage,omitempty"` Systemd Systemd `json:"systemd,omitempty"` Networkd Networkd `json:"networkd,omitempty"` Passwd Passwd `json:"passwd,omitempty"` }
func (Config) AssertValid ¶ added in v0.7.0
type Disk ¶
type Disk struct { Device Path `json:"device,omitempty"` WipeTable bool `json:"wipeTable,omitempty"` Partitions []Partition `json:"partitions,omitempty"` }
func (Disk) AssertValid ¶ added in v0.7.0
func (*Disk) UnmarshalJSON ¶
type Filesystem ¶
type Filesystem struct { Device Path `json:"device,omitempty"` Format FilesystemFormat `json:"format,omitempty"` Create *FilesystemCreate `json:"create,omitempty"` Files []File `json:"files,omitempty"` }
func (Filesystem) AssertValid ¶ added in v0.7.0
func (f Filesystem) AssertValid() error
func (*Filesystem) UnmarshalJSON ¶
func (f *Filesystem) UnmarshalJSON(data []byte) error
type FilesystemCreate ¶
type FilesystemCreate struct { Force bool `json:"force,omitempty"` Options MkfsOptions `json:"options,omitempty"` }
type FilesystemFormat ¶
type FilesystemFormat string
func (FilesystemFormat) AssertValid ¶ added in v0.7.0
func (f FilesystemFormat) AssertValid() error
func (*FilesystemFormat) UnmarshalJSON ¶
func (f *FilesystemFormat) UnmarshalJSON(data []byte) error
type MkfsOptions ¶
type MkfsOptions []string
func (MkfsOptions) AssertValid ¶ added in v0.7.0
func (o MkfsOptions) AssertValid() error
func (*MkfsOptions) UnmarshalJSON ¶
func (o *MkfsOptions) UnmarshalJSON(data []byte) error
type Networkd ¶
type Networkd struct {
Units []NetworkdUnit `json:"units,omitempty"`
}
type NetworkdUnit ¶
type NetworkdUnit struct { Name NetworkdUnitName `json:"name,omitempty"` Contents string `json:"contents,omitempty"` }
type NetworkdUnitName ¶
type NetworkdUnitName string
func (NetworkdUnitName) AssertValid ¶ added in v0.7.0
func (n NetworkdUnitName) AssertValid() error
func (*NetworkdUnitName) UnmarshalJSON ¶
func (n *NetworkdUnitName) UnmarshalJSON(data []byte) error
type Partition ¶
type Partition struct { Label PartitionLabel `json:"label,omitempty"` Number int `json:"number"` Size PartitionDimension `json:"size"` Start PartitionDimension `json:"start"` TypeGUID PartitionTypeGUID `json:"typeGuid,omitempty"` }
type PartitionDimension ¶
type PartitionDimension uint64
func (*PartitionDimension) UnmarshalJSON ¶
func (n *PartitionDimension) UnmarshalJSON(data []byte) error
type PartitionLabel ¶
type PartitionLabel string
func (PartitionLabel) AssertValid ¶ added in v0.7.0
func (n PartitionLabel) AssertValid() error
func (*PartitionLabel) UnmarshalJSON ¶
func (n *PartitionLabel) UnmarshalJSON(data []byte) error
type PartitionTypeGUID ¶
type PartitionTypeGUID string
func (PartitionTypeGUID) AssertValid ¶ added in v0.7.0
func (d PartitionTypeGUID) AssertValid() error
func (*PartitionTypeGUID) UnmarshalJSON ¶
func (d *PartitionTypeGUID) UnmarshalJSON(data []byte) error
type Raid ¶
type Raid struct { Name string `json:"name"` Level string `json:"level"` Devices []Path `json:"devices,omitempty"` Spares int `json:"spares,omitempty"` }
func (Raid) AssertValid ¶ added in v0.7.0
func (*Raid) UnmarshalJSON ¶
type Storage ¶
type Storage struct { Disks []Disk `json:"disks,omitempty"` Arrays []Raid `json:"raid,omitempty"` Filesystems []Filesystem `json:"filesystems,omitempty"` }
type Systemd ¶
type Systemd struct {
Units []SystemdUnit `json:"units,omitempty"`
}
type SystemdUnit ¶
type SystemdUnit struct { Name SystemdUnitName `json:"name,omitempty"` Enable bool `json:"enable,omitempty"` Mask bool `json:"mask,omitempty"` Contents string `json:"contents,omitempty"` DropIns []SystemdUnitDropIn `json:"dropins,omitempty"` }
type SystemdUnitDropIn ¶
type SystemdUnitDropIn struct { Name SystemdUnitDropInName `json:"name,omitempty"` Contents string `json:"contents,omitempty"` }
type SystemdUnitDropInName ¶
type SystemdUnitDropInName string
func (SystemdUnitDropInName) AssertValid ¶ added in v0.7.0
func (n SystemdUnitDropInName) AssertValid() error
func (*SystemdUnitDropInName) UnmarshalJSON ¶
func (n *SystemdUnitDropInName) UnmarshalJSON(data []byte) error
type SystemdUnitName ¶
type SystemdUnitName string
func (SystemdUnitName) AssertValid ¶ added in v0.7.0
func (n SystemdUnitName) AssertValid() error
func (*SystemdUnitName) UnmarshalJSON ¶
func (n *SystemdUnitName) UnmarshalJSON(data []byte) error
type User ¶
type User struct { Name string `json:"name,omitempty"` PasswordHash string `json:"passwordHash,omitempty"` SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"` Create *UserCreate `json:"create,omitempty"` }
type UserCreate ¶
type UserCreate struct { Uid *uint `json:"uid,omitempty"` GECOS string `json:"gecos,omitempty"` Homedir string `json:"homeDir,omitempty"` NoCreateHome bool `json:"noCreateHome,omitempty"` PrimaryGroup string `json:"primaryGroup,omitempty"` Groups []string `json:"groups,omitempty"` NoUserGroup bool `json:"noUserGroup,omitempty"` System bool `json:"system,omitempty"` NoLogInit bool `json:"noLogInit,omitempty"` Shell string `json:"shell,omitempty"` }
Click to show internal directories.
Click to hide internal directories.