Documentation ¶
Index ¶
- Constants
- Variables
- func ParseUserData(contents string) (interface{}, error)
- func PersistScriptInWorkspace(script config.Script, workspace string) (string, error)
- func PersistUnitNameInWorkspace(name string, workspace string) error
- func PrepWorkspace(workspace string) error
- func SSHImportGithubUser(systemUser string, githubUser string) error
- func SSHImportKeysFromURL(systemUser string, url string) error
- type Environment
- func (e *Environment) Apply(data string) string
- func (e *Environment) ConfigRoot() string
- func (e *Environment) DefaultEnvironmentFile() *system.EnvFile
- func (e *Environment) Root() string
- func (e *Environment) SSHKeyName() string
- func (e *Environment) SetSSHKeyName(name string)
- func (e *Environment) Workspace() string
- type UserKey
Constants ¶
View Source
const DefaultSSHKeyName = "coreos-cloudinit"
Variables ¶
Functions ¶
func PersistScriptInWorkspace ¶
func PersistUnitNameInWorkspace ¶
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment(root, configRoot, workspace, sshKeyName string, metadata datasource.Metadata) *Environment
NewEnvironment TODO(jonboulle): this is getting unwieldy, should be able to simplify the interface somehow
func (*Environment) Apply ¶
func (e *Environment) Apply(data string) string
Apply goes through the map of substitutions and replaces all instances of the keys with their respective values. It supports escaping substitutions with a leading '\'.
func (*Environment) ConfigRoot ¶
func (e *Environment) ConfigRoot() string
func (*Environment) DefaultEnvironmentFile ¶
func (e *Environment) DefaultEnvironmentFile() *system.EnvFile
func (*Environment) Root ¶
func (e *Environment) Root() string
func (*Environment) SSHKeyName ¶
func (e *Environment) SSHKeyName() string
func (*Environment) SetSSHKeyName ¶
func (e *Environment) SetSSHKeyName(name string)
func (*Environment) Workspace ¶
func (e *Environment) Workspace() string
Click to show internal directories.
Click to hide internal directories.