Documentation
¶
Index ¶
- func DotNotationModifier(s []byte) ([]byte, error)
- func FromFile(s string, fs vfs.FS, m Modifier) ([]byte, error)
- func FromUrl(s string, _ vfs.FS, m Modifier) ([]byte, error)
- type Auth
- type DNS
- type DataSource
- type Dependency
- type Device
- type Directory
- type Download
- type Expand
- type File
- type Git
- type IfCheckType
- type Layout
- type Loader
- type Modifier
- type Packages
- type Partition
- type Stage
- type Systemctl
- type SystemctlOverride
- type UnpackImageConf
- type User
- type YipConfig
- type YipEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DotNotationModifier ¶
DotNotationModifier read a byte sequence in dot notation and returns a byte sequence in yaml e.g. foo.bar=boo
Types ¶
type DataSource ¶
type Dependency ¶ added in v1.0.0
type Dependency struct {
Name string `yaml:"name,omitempty"`
}
type IfCheckType ¶ added in v1.18.0
type IfCheckType string
const IfCheckAll IfCheckType = "all"
const IfCheckAny IfCheckType = "any"
const IfCheckNone IfCheckType = "none"
type Stage ¶
type Stage struct {
Commands []string `yaml:"commands,omitempty"`
Files []File `yaml:"files,omitempty"`
Downloads []Download `yaml:"downloads,omitempty"`
Directories []Directory `yaml:"directories,omitempty"`
If string `yaml:"if,omitempty"`
EnsureEntities []YipEntity `yaml:"ensure_entities,omitempty"`
DeleteEntities []YipEntity `yaml:"delete_entities,omitempty"`
Dns DNS `yaml:"dns,omitempty"`
Hostname string `yaml:"hostname,omitempty"`
Name string `yaml:"name,omitempty"`
Sysctl map[string]string `yaml:"sysctl,omitempty"`
SSHKeys map[string][]string `yaml:"authorized_keys,omitempty"`
Node string `yaml:"node,omitempty"`
Users map[string]User `yaml:"users,omitempty"`
Modules []string `yaml:"modules,omitempty"`
Systemctl Systemctl `yaml:"systemctl,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
EnvironmentFile string `yaml:"environment_file,omitempty"`
Packages Packages `yaml:"packages,omitempty"`
UnpackImages []UnpackImageConf `yaml:"unpack_images,omitempty"`
After []Dependency `yaml:"after,omitempty"`
DataSources DataSource `yaml:"datasource,omitempty"`
Layout Layout `yaml:"layout,omitempty"`
SystemdFirstBoot map[string]string `yaml:"systemd_firstboot,omitempty"`
TimeSyncd map[string]string `yaml:"timesyncd,omitempty"`
Git Git `yaml:"git,omitempty"`
OnlyIfOs string `yaml:"only_os,omitempty"`
OnlyIfOsVersion string `yaml:"only_os_version,omitempty"`
OnlyIfArch string `yaml:"only_arch,omitempty"`
OnlyIfServiceManager string `yaml:"only_service_manager,omitempty"`
IfFiles map[IfCheckType][]string `yaml:"if_files,omitempty"`
}
type Systemctl ¶
type Systemctl struct {
Enable []string `yaml:"enable,omitempty"`
Disable []string `yaml:"disable,omitempty"`
Start []string `yaml:"start,omitempty"`
Mask []string `yaml:"mask,omitempty"`
Overrides []SystemctlOverride `yaml:"overrides,omitempty"`
}
type SystemctlOverride ¶ added in v1.13.0
type UnpackImageConf ¶ added in v1.14.0
type User ¶
type User struct {
Name string `yaml:"name,omitempty"`
PasswordHash string `yaml:"passwd,omitempty"`
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys,omitempty"`
GECOS string `yaml:"gecos,omitempty"`
Homedir string `yaml:"homedir,omitempty"`
NoCreateHome bool `yaml:"no_create_home,omitempty"`
PrimaryGroup string `yaml:"primary_group,omitempty"`
Groups []string `yaml:"groups,omitempty"`
NoUserGroup bool `yaml:"no_user_group,omitempty"`
System bool `yaml:"system,omitempty"`
NoLogInit bool `yaml:"no_log_init,omitempty"`
Shell string `yaml:"shell,omitempty"`
LockPasswd bool `yaml:"lock_passwd,omitempty"`
UID string `yaml:"uid,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.