Documentation
¶
Index ¶
- func GetAcpRun(bin registry.RegistryPlatformBinary) string
- func GetInstaller(bin registry.RegistryPlatformBinary, sha256 string) (string, error)
- func InstallToDir(path_to, path_from, user, group string, dir_perm, file_perm int) []string
- func MarshalCloudConfig(cc CloudConfig) (string, error)
- type CloudConfig
- type CloudConfigOpts
- type CloudUser
- type WriteFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAcpRun ¶
func GetAcpRun(bin registry.RegistryPlatformBinary) string
func GetInstaller ¶
func GetInstaller(bin registry.RegistryPlatformBinary, sha256 string) (string, error)
func InstallToDir ¶
func MarshalCloudConfig ¶
func MarshalCloudConfig(cc CloudConfig) (string, error)
Types ¶
type CloudConfig ¶
type CloudConfig struct {
PackageUpdate bool `yaml:"package_update"`
Packages []string `yaml:"packages"`
Users []CloudUser `yaml:"users"`
WriteFiles []WriteFile `yaml:"write_files"`
RunCmd []string `yaml:"runcmd"`
Mounts [][]string `yaml:"mounts,omitempty"`
}
func BuildCloudConfig ¶
func BuildCloudConfig(opts CloudConfigOpts) (*CloudConfig, error)
type CloudConfigOpts ¶
type CloudUser ¶
type CloudUser struct {
Name string `yaml:"name"`
Shell string `yaml:"shell"`
HomeDir string `yaml:"homedir"`
NoCreateHome bool `yaml:"no_create_home"`
Groups []string `yaml:"groups"`
Sudo []string `yaml:"sudo"`
AuthorizedKeys []string `yaml:"ssh_authorized_keys,omitempty"`
LockPasswd bool `yaml:"lock_passwd"`
}
Click to show internal directories.
Click to hide internal directories.