Documentation ¶
Index ¶
- Constants
- Variables
- 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 AWSYAML
- type AzureYAML
- type BOSHVersionError
- type CIDRBlock
- type Client
- type ClientProvider
- type Cmd
- type CreateEnvError
- type CreateEnvInput
- type DeleteEnvError
- type DeleteEnvInput
- type Executor
- func (e Executor) CreateEnv(createEnvInput CreateEnvInput) (string, error)
- func (e Executor) DeleteEnv(deleteEnvInput DeleteEnvInput) error
- func (e Executor) DirectorCreateEnvArgs(input InterpolateInput) error
- func (e Executor) JumpboxCreateEnvArgs(input InterpolateInput) error
- func (e Executor) Version() (string, error)
- func (e Executor) WriteDeploymentVars(createEnvInput CreateEnvInput) error
- type GCPYAML
- type IP
- type Info
- type InterpolateInput
- type Manager
- func (m *Manager) CreateDirector(state storage.State, terraformOutputs terraform.Outputs) (storage.State, error)
- func (m *Manager) CreateJumpbox(state storage.State, terraformOutputs terraform.Outputs) (storage.State, error)
- func (m *Manager) DeleteDirector(state storage.State, terraformOutputs terraform.Outputs) error
- func (m *Manager) DeleteJumpbox(state storage.State, terraformOutputs terraform.Outputs) error
- func (m *Manager) GetDirectorDeploymentVars(state storage.State, terraformOutputs terraform.Outputs) string
- func (m *Manager) GetJumpboxDeploymentVars(state storage.State, terraformOutputs terraform.Outputs) string
- func (m *Manager) InitializeDirector(state storage.State) error
- func (m *Manager) InitializeJumpbox(state storage.State) error
- func (m *Manager) Version() (string, error)
- type ManagerCreateError
- type ManagerDeleteError
- type SSHKeyDeleter
- type SSHKeyGetter
- type VSphereYAML
Constants ¶
const AWSBoshDirectorEphemeralIPOps = `
- type: replace
path: /resource_pools/name=vms/cloud_properties/auto_assign_public_ip?
value: true
`
const AWSEncryptDiskOps = `` /* 145-byte string literal not displayed */
const GCPBoshDirectorEphemeralIPOps = `
- type: replace
path: /networks/name=default/subnets/0/cloud_properties/ephemeral_external_ip?
value: true
`
const VERSION_DEV_BUILD = "[DEV BUILD]"
const VSphereJumpboxNetworkOps = `---
- type: remove
path: /instance_groups/name=jumpbox/networks/name=public
`
Variables ¶
var ( MAX_RETRIES = 5 RETRY_DELAY = 10 * time.Second )
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 AWSYAML ¶
type AWSYAML struct { AZ string `yaml:"az,omitempty"` SubnetID string `yaml:"subnet_id,omitempty"` AccessKeyID string `yaml:"access_key_id,omitempty"` SecretAccessKey string `yaml:"secret_access_key,omitempty"` IAMInstanceProfile string `yaml:"iam_instance_profile,omitempty"` DefaultKeyName string `yaml:"default_key_name,omitempty"` DefaultSecurityGroups []string `yaml:"default_security_groups,omitempty"` Region string `yaml:"region,omitempty"` KMSKeyARN string `yaml:"kms_key_arn,omitempty"` }
type AzureYAML ¶
type AzureYAML struct { VNetName string `yaml:"vnet_name,omitempty"` SubnetName string `yaml:"subnet_name,omitempty"` SubscriptionID string `yaml:"subscription_id,omitempty"` TenantID string `yaml:"tenant_id,omitempty"` ClientID string `yaml:"client_id,omitempty"` ClientSecret string `yaml:"client_secret,omitempty"` ResourceGroupName string `yaml:"resource_group_name,omitempty"` StorageAccountName string `yaml:"storage_account_name,omitempty"` DefaultSecurityGroup string `yaml:"default_security_group,omitempty"` PublicKey string `yaml:"public_key,flow,omitempty"` }
type BOSHVersionError ¶
type BOSHVersionError struct {
// contains filtered or unexported fields
}
func NewBOSHVersionError ¶
func NewBOSHVersionError(err error) BOSHVersionError
func (BOSHVersionError) Error ¶
func (b BOSHVersionError) Error() string
type CIDRBlock ¶
type CIDRBlock struct { CIDRSize int // contains filtered or unexported fields }
func ParseCIDRBlock ¶
func (CIDRBlock) GetFirstIP ¶
type ClientProvider ¶
type ClientProvider struct {
// contains filtered or unexported fields
}
func NewClientProvider ¶
func NewClientProvider(socks5Proxy socks5Proxy, sshKeyGetter sshKeyGetter) ClientProvider
func (ClientProvider) HTTPClient ¶
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 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 (Executor) CreateEnv ¶
func (e Executor) CreateEnv(createEnvInput CreateEnvInput) (string, error)
func (Executor) DeleteEnv ¶
func (e Executor) DeleteEnv(deleteEnvInput DeleteEnvInput) error
func (Executor) DirectorCreateEnvArgs ¶
func (e Executor) DirectorCreateEnvArgs(input InterpolateInput) error
func (Executor) JumpboxCreateEnvArgs ¶
func (e Executor) JumpboxCreateEnvArgs(input InterpolateInput) error
func (Executor) WriteDeploymentVars ¶
func (e Executor) WriteDeploymentVars(createEnvInput CreateEnvInput) error
type GCPYAML ¶
type GCPYAML struct { Zone string `yaml:"zone,omitempty"` Network string `yaml:"network,omitempty"` Subnetwork string `yaml:"subnetwork,omitempty"` Tags []string `json:"tags" yaml:"tags,omitempty"` ProjectID string `yaml:"project_id,omitempty"` CredentialJSON string `yaml:"gcp_credentials_json,omitempty"` }
type InterpolateInput ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(executor executor, logger logger, socks5Proxy socks5Proxy, stateStore stateStore, sshKeyGetter sshKeyGetter) *Manager
func (*Manager) CreateDirector ¶
func (*Manager) CreateJumpbox ¶
func (*Manager) DeleteDirector ¶
func (*Manager) DeleteJumpbox ¶
func (*Manager) GetDirectorDeploymentVars ¶
func (*Manager) GetJumpboxDeploymentVars ¶
func (*Manager) InitializeDirector ¶
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
type SSHKeyDeleter ¶
type SSHKeyDeleter struct {
// contains filtered or unexported fields
}
func NewSSHKeyDeleter ¶
func NewSSHKeyDeleter(stateStore stateStore) SSHKeyDeleter
func (SSHKeyDeleter) Delete ¶
func (s SSHKeyDeleter) Delete() error
type SSHKeyGetter ¶
type SSHKeyGetter struct {
// contains filtered or unexported fields
}
func NewSSHKeyGetter ¶
func NewSSHKeyGetter(stateStore stateStore) SSHKeyGetter
type VSphereYAML ¶
type VSphereYAML struct { NetworkName string `yaml:"network_name,omitempty"` VCenterRP string `yaml:"vcenter_rp,omitempty"` VCenterCluster string `yaml:"vcenter_cluster,omitempty"` VCenterDC string `yaml:"vcenter_dc,omitempty"` VCenterDisks string `yaml:"vcenter_disks,omitempty"` VCenterDS string `yaml:"vcenter_ds,omitempty"` VCenterIP string `yaml:"vcenter_ip,omitempty"` VCenterVMs string `yaml:"vcenter_vms,omitempty"` VCenterTemplates string `yaml:"vcenter_templates,omitempty"` VCenterUser string `yaml:"vcenter_user,omitempty"` VCenterPassword string `yaml:"vcenter_password,omitempty"` }