Versions in this module Expand all Collapse all v0 v0.3.3 Mar 25, 2016 Changes in this version + var ErrPathRelative = errors.New("path not absolute") + type Path string + func (d *Path) UnmarshalJSON(data []byte) error + func (d *Path) UnmarshalYAML(unmarshal func(interface{}) error) error v0.3.2 Mar 18, 2016 Changes in this version + const Version + var ErrFileIllegalMode = errors.New("illegal file mode") + var ErrFilesystemInvalidFormat = errors.New("invalid filesystem format") + var ErrFilesystemRelativePath = errors.New("device path not absolute") + type Config struct + Networkd Networkd + Passwd Passwd + Storage Storage + Systemd Systemd + Version int + type DevicePath string + func (d *DevicePath) UnmarshalJSON(data []byte) error + func (d *DevicePath) UnmarshalYAML(unmarshal func(interface{}) error) error + type Disk struct + Device DevicePath + Partitions []Partition + WipeTable bool + func (n *Disk) UnmarshalJSON(data []byte) error + func (n *Disk) UnmarshalYAML(unmarshal func(interface{}) error) error + type File struct + Contents string + Gid int + Mode FileMode + Path string + Uid int + type FileMode os.FileMode + func (m *FileMode) UnmarshalJSON(data []byte) error + func (m *FileMode) UnmarshalYAML(unmarshal func(interface{}) error) error + type Filesystem struct + Create *FilesystemCreate + Device DevicePath + Files []File + Format FilesystemFormat + func (f *Filesystem) UnmarshalJSON(data []byte) error + func (f *Filesystem) UnmarshalYAML(unmarshal func(interface{}) error) error + type FilesystemCreate struct + Force bool + Options MkfsOptions + type FilesystemFormat string + func (f *FilesystemFormat) UnmarshalJSON(data []byte) error + func (f *FilesystemFormat) UnmarshalYAML(unmarshal func(interface{}) error) error + type Group struct + Gid *uint + Name string + PasswordHash string + System bool + type MkfsOptions []string + func (o *MkfsOptions) UnmarshalJSON(data []byte) error + func (o *MkfsOptions) UnmarshalYAML(unmarshal func(interface{}) error) error + type Networkd struct + Units []NetworkdUnit + type NetworkdUnit struct + Contents string + Name NetworkdUnitName + type NetworkdUnitName string + func (n *NetworkdUnitName) UnmarshalJSON(data []byte) error + func (n *NetworkdUnitName) UnmarshalYAML(unmarshal func(interface{}) error) error + type Partition struct + Label PartitionLabel + Number int + Size PartitionDimension + Start PartitionDimension + TypeGUID PartitionTypeGUID + type PartitionDimension uint64 + func (n *PartitionDimension) UnmarshalJSON(data []byte) error + func (n *PartitionDimension) UnmarshalYAML(unmarshal func(interface{}) error) error + type PartitionLabel string + func (n *PartitionLabel) UnmarshalJSON(data []byte) error + func (n *PartitionLabel) UnmarshalYAML(unmarshal func(interface{}) error) error + type PartitionTypeGUID string + func (d *PartitionTypeGUID) UnmarshalJSON(data []byte) error + func (d *PartitionTypeGUID) UnmarshalYAML(unmarshal func(interface{}) error) error + type Passwd struct + Groups []Group + Users []User + type Raid struct + Devices []DevicePath + Level string + Name string + Spares int + func (n *Raid) UnmarshalJSON(data []byte) error + func (n *Raid) UnmarshalYAML(unmarshal func(interface{}) error) error + type Storage struct + Arrays []Raid + Disks []Disk + Filesystems []Filesystem + type Systemd struct + Units []SystemdUnit + type SystemdUnit struct + Contents string + DropIns []SystemdUnitDropIn + Enable bool + Mask bool + Name SystemdUnitName + type SystemdUnitDropIn struct + Contents string + Name SystemdUnitDropInName + type SystemdUnitDropInName string + func (n *SystemdUnitDropInName) UnmarshalJSON(data []byte) error + func (n *SystemdUnitDropInName) UnmarshalYAML(unmarshal func(interface{}) error) error + type SystemdUnitName string + func (n *SystemdUnitName) UnmarshalJSON(data []byte) error + func (n *SystemdUnitName) UnmarshalYAML(unmarshal func(interface{}) error) error + type User struct + Create *UserCreate + Name string + PasswordHash string + SSHAuthorizedKeys []string + type UserCreate struct + GECOS string + Groups []string + Homedir string + NoCreateHome bool + NoLogInit bool + NoUserGroup bool + PrimaryGroup string + Shell string + System bool + Uid *uint