Documentation
¶
Index ¶
- Variables
- func InstallRunnerScript(installParams InstallRunnerParams, osType params.OSType) ([]byte, error)
- type CACerts
- type CloudInit
- func (c *CloudInit) AddCACert(cert []byte) error
- func (c *CloudInit) AddFile(contents []byte, path, owner, permissions string)
- func (c *CloudInit) AddPackage(pkgs ...string)
- func (c *CloudInit) AddRunCmd(cmd string)
- func (c *CloudInit) AddSSHKey(keys ...string)
- func (c *CloudInit) Serialize() (string, error)
- type DefaultUser
- type File
- type InstallRunnerParams
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var CloudConfigTemplate = `` /* 4895-byte string literal not displayed */
View Source
var WindowsSetupScriptTemplate = `` /* 6191-byte string literal not displayed */
Functions ¶
func InstallRunnerScript ¶
func InstallRunnerScript(installParams InstallRunnerParams, osType params.OSType) ([]byte, error)
Types ¶
type CloudInit ¶
type CloudInit struct {
PackageUpgrade bool `yaml:"package_upgrade"`
Packages []string `yaml:"packages,omitempty"`
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys,omitempty"`
SystemInfo *SystemInfo `yaml:"system_info,omitempty"`
RunCmd []string `yaml:"runcmd,omitempty"`
WriteFiles []File `yaml:"write_files,omitempty"`
CACerts CACerts `yaml:"ca-certs,omitempty"`
// contains filtered or unexported fields
}
func NewDefaultCloudInitConfig ¶
func NewDefaultCloudInitConfig() *CloudInit
func (*CloudInit) AddPackage ¶
type DefaultUser ¶
type InstallRunnerParams ¶
type SystemInfo ¶
type SystemInfo struct {
DefaultUser DefaultUser `yaml:"default_user"`
}
Click to show internal directories.
Click to hide internal directories.