Documentation ¶
Index ¶
- Constants
- func Apply(cfg CloudConfig, env *Environment) error
- func ParseUserData(contents string) (interface{}, error)
- func PersistScriptInWorkspace(script system.Script, workspace string) (string, error)
- func PersistUnitNameInWorkspace(name string, workspace string) error
- func PrepWorkspace(workspace string) error
- func SSHImportGithubUser(system_user string, github_user string) error
- func SSHImportKeysFromURL(system_user string, url string) error
- func WriteEtcHosts(option string, root string) error
- func WriteEtcdEnvironment(env EtcdEnvironment, root string) error
- func WriteOEMRelease(oem *OEMRelease, root string) error
- type CloudConfig
- type Environment
- type EtcdEnvironment
- type OEMRelease
- type UserKey
Constants ¶
View Source
const DefaultIpv4Address = "127.0.0.1"
View Source
const DefaultSSHKeyName = "coreos-cloudinit"
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(cfg CloudConfig, env *Environment) error
func ParseUserData ¶
func PrepWorkspace ¶
func SSHImportGithubUser ¶
func SSHImportKeysFromURL ¶
func WriteEtcdEnvironment ¶
func WriteEtcdEnvironment(env EtcdEnvironment, root string) error
Write an EtcdEnvironment to the appropriate path on disk for etcd.service
func WriteOEMRelease ¶
func WriteOEMRelease(oem *OEMRelease, root string) error
Types ¶
type CloudConfig ¶
type CloudConfig struct { SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys"` Coreos struct { Etcd EtcdEnvironment Units []system.Unit OEM OEMRelease } WriteFiles []system.File `yaml:"write_files"` Hostname string Users []system.User ManageEtcHosts string `yaml:"manage_etc_hosts"` }
func NewCloudConfig ¶
func NewCloudConfig(contents string) (*CloudConfig, error)
func (CloudConfig) String ¶
func (cc CloudConfig) String() string
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment(root, workspace string) *Environment
func (*Environment) Apply ¶
func (self *Environment) Apply(data string) string
func (*Environment) Root ¶
func (self *Environment) Root() string
func (*Environment) SSHKeyName ¶
func (self *Environment) SSHKeyName() string
func (*Environment) SetSSHKeyName ¶
func (self *Environment) SetSSHKeyName(name string)
func (*Environment) Workspace ¶
func (self *Environment) Workspace() string
type EtcdEnvironment ¶
func (EtcdEnvironment) String ¶
func (ec EtcdEnvironment) String() (out string)
Click to show internal directories.
Click to hide internal directories.