ignition

package
v0.0.0-...-10b7995 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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"`
}

func (*Config) Render

func (c *Config) Render(w io.Writer) error

type Disk

type Disk struct {
	Device    string       `json:"device"`
	WipeTable bool         `json:"wipeTable,omitempty"`
	Paritions []*Partition `json:"partitions,omitempty"`
}

type File

type File struct {
	Path     string `json:"path"`
	Contents string `json:"contents,omitempty"`
	Mode     int    `json:"mode,omitempty"`
	UID      int    `json:"uid,omitempty"`
	GID      int    `json:"gid,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 FilesystemOptions struct {
	Force   bool     `json:"force,omitempty"`
	Options []string `json:"options,omitempty"`
}

type Group

type Group struct {
	Name         string `json:"group"`
	GID          int    `json:"gid,omitempty"`
	PasswordHash string `json:"passwordHash,omitempty"`
}

type NetworkUnits

type NetworkUnits []*unit.Unit

func (*NetworkUnits) Add

func (us *NetworkUnits) Add(name string) *unit.Unit

func (*NetworkUnits) Append

func (us *NetworkUnits) Append(u *unit.Unit)

func (NetworkUnits) MarshalJSON

func (us NetworkUnits) MarshalJSON() ([]byte, error)

type Partition

type Partition struct {
	Label    string `json:"label,omitempty"`
	Number   int    `json:"number,omitempty"`
	Size     int    `json:"size,omitempty"`
	Start    int    `json:"start,omitempty"`
	TypeGUID string `json:"typeGuid,omitempty"`
}

type Passwd

type Passwd struct {
	Users  []*User  `json:"users,omitempty"`
	Groups []*Group `json:"groups,omitempty"`
}

type RAID

type RAID struct {
	Name    string   `json:"name"`
	Level   string   `json:"level"`
	Devices []string `json:"devices"`
	Spares  int      `json:"spares,omitempty"`
}

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) AddDropin

func (u *SystemdUnit) AddDropin(name string) *unit.Unit

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL