initialize

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2019 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSSHKeyName = "coreos-cloudinit"

Variables

View Source
var (
	ErrIgnitionConfig = errors.New("not a config (found Ignition)")
)

Functions

func ParseUserData

func ParseUserData(contents string) (interface{}, error)

func PersistScriptInWorkspace

func PersistScriptInWorkspace(script config.Script, workspace string) (string, error)

func PersistUnitNameInWorkspace

func PersistUnitNameInWorkspace(name string, workspace string) error

func PrepWorkspace

func PrepWorkspace(workspace string) error

func SSHImportGithubUser

func SSHImportGithubUser(systemUser string, githubUser string) error

func SSHImportKeysFromURL

func SSHImportKeysFromURL(systemUser string, url string) error

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

type UserKey

type UserKey struct {
	ID  int    `json:"id,omitempty"`
	Key string `json:"key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL