Documentation ¶
Index ¶
- Constants
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type CIDRBlock
- type Client
- type ClientProvider
- type Cmd
- type CreateEnvError
- type CreateEnvInput
- type CreateEnvOutput
- type DeleteEnvError
- type DeleteEnvInput
- type Executor
- type IP
- type Info
- type InterpolateInput
- type InterpolateOutput
- type Manager
- type ManagerCreateError
- type ManagerDeleteError
Constants ¶
const (
DIRECTOR_USERNAME = "admin"
)
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type CIDRBlock ¶
type CIDRBlock struct { CIDRSize int // contains filtered or unexported fields }
func ParseCIDRBlock ¶
func (CIDRBlock) GetFirstIP ¶
type ClientProvider ¶
type ClientProvider struct{}
func NewClientProvider ¶
func NewClientProvider() ClientProvider
func (ClientProvider) Client ¶
func (ClientProvider) Client(directorAddress, directorUsername, directorPassword string) Client
type CreateEnvError ¶
type CreateEnvError struct {
// contains filtered or unexported fields
}
func NewCreateEnvError ¶
func NewCreateEnvError(boshState map[string]interface{}, err error) CreateEnvError
func (CreateEnvError) BOSHState ¶
func (b CreateEnvError) BOSHState() map[string]interface{}
func (CreateEnvError) Error ¶
func (b CreateEnvError) Error() string
type CreateEnvInput ¶
type CreateEnvOutput ¶
type CreateEnvOutput struct {
State map[string]interface{}
}
type DeleteEnvError ¶
type DeleteEnvError struct {
// contains filtered or unexported fields
}
func NewDeleteEnvError ¶
func NewDeleteEnvError(boshState map[string]interface{}, err error) DeleteEnvError
func (DeleteEnvError) BOSHState ¶
func (b DeleteEnvError) BOSHState() map[string]interface{}
func (DeleteEnvError) Error ¶
func (b DeleteEnvError) Error() string
type DeleteEnvInput ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(cmd command, tempDir func(string, string) (string, error), readFile func(string) ([]byte, error), unmarshalYAML func([]byte, interface{}) error, unmarshalJSON func([]byte, interface{}) error, marshalJSON func(interface{}) ([]byte, error), writeFile func(string, []byte, os.FileMode) error) Executor
func (Executor) CreateEnv ¶
func (e Executor) CreateEnv(createEnvInput CreateEnvInput) (CreateEnvOutput, error)
func (Executor) DeleteEnv ¶
func (e Executor) DeleteEnv(deleteEnvInput DeleteEnvInput) error
func (Executor) Interpolate ¶
func (e Executor) Interpolate(interpolateInput InterpolateInput) (InterpolateOutput, error)
type InterpolateInput ¶
type InterpolateOutput ¶
type InterpolateOutput struct { Variables map[interface{}]interface{} Manifest string }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(executor executor, terraformManager terraformManager, stackManager stackManager, logger logger) Manager
func (Manager) GetDeploymentVars ¶
type ManagerCreateError ¶
type ManagerCreateError struct {
// contains filtered or unexported fields
}
func NewManagerCreateError ¶
func NewManagerCreateError(state storage.State, err error) ManagerCreateError
func (ManagerCreateError) Error ¶
func (b ManagerCreateError) Error() string
func (ManagerCreateError) State ¶
func (b ManagerCreateError) State() storage.State
type ManagerDeleteError ¶
type ManagerDeleteError struct {
// contains filtered or unexported fields
}
func NewManagerDeleteError ¶
func NewManagerDeleteError(state storage.State, err error) ManagerDeleteError
func (ManagerDeleteError) Error ¶
func (b ManagerDeleteError) Error() string
func (ManagerDeleteError) State ¶
func (b ManagerDeleteError) State() storage.State