Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Systemd SystemdUnits `json:"systemd,omitempty"` Network NetworkUnits `json:"networkd,omitempty"` Storage *Storage `json:"storage,omitempty"` Passwd *Passwd `json:"passwd,omitempty"` }
type Filesystem ¶
type Filesystem struct { Device string `json:"device"` Format string `json:"format"` Files []*File `json:"files,omitempty"` Create *FilesystemOptions `json:"create,omitempty"` }
type FilesystemOptions ¶
type NetworkUnits ¶
func (*NetworkUnits) Append ¶
func (us *NetworkUnits) Append(u *unit.Unit)
func (NetworkUnits) MarshalJSON ¶
func (us NetworkUnits) MarshalJSON() ([]byte, error)
type Storage ¶
type Storage struct { Disks []*Disk `json:"disks,omitempty"` RAID []*RAID `json:"raid,omitempty"` Filesystems []*Filesystem `json:"filesystems,omitempty"` }
type SystemdUnit ¶
type SystemdUnit struct { unit.Unit Enabled bool `json:"enable,omitempty"` Masked bool `json:"mask,omitempty"` Dropins []*unit.Unit `json:"dropins,omitempty"` }
func NewSystemdUnit ¶
func NewSystemdUnit(name string) *SystemdUnit
func (*SystemdUnit) Enable ¶
func (u *SystemdUnit) Enable() *SystemdUnit
func (*SystemdUnit) Mask ¶
func (u *SystemdUnit) Mask() *SystemdUnit
type SystemdUnits ¶
type SystemdUnits []*SystemdUnit
func (*SystemdUnits) Add ¶
func (us *SystemdUnits) Add(name string) *SystemdUnit
func (SystemdUnits) MarshalJSON ¶
func (us SystemdUnits) MarshalJSON() ([]byte, error)
type User ¶
type User struct { Name string `json:"name"` PasswordHash string `json:"passwordHash,omitempty"` AuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"` Create *UserOptions `json:"create,omitempty"` }
type UserOptions ¶
type UserOptions struct { UID int `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"` NoLogInit bool `json:"noLogInit,omitempty"` Shell string `json:"shell,omitempty"` }
Click to show internal directories.
Click to hide internal directories.