Documentation ¶
Index ¶
- Constants
- type AllProxyGetter
- type AuthenticatedCLI
- type AuthenticatedCLIRunner
- type BOSHVersionError
- type CIDRBlock
- type CLI
- type CLIProvider
- type ConfigUpdater
- func (c ConfigUpdater) InitializeAuthenticatedCLI(state storage.State) (AuthenticatedCLIRunner, error)
- func (c ConfigUpdater) UpdateCloudConfig(boshCLI AuthenticatedCLIRunner, filepath string, opsFilepaths []string, ...) error
- func (c ConfigUpdater) UpdateRuntimeConfig(boshCLI AuthenticatedCLIRunner, filepath string, opsFilepaths []string, ...) error
- type CredhubGetter
- type DirInput
- type Executor
- func (e Executor) CreateEnv(input DirInput, state storage.State) (string, error)
- func (e Executor) DeleteEnv(input DirInput, state storage.State) error
- func (e Executor) Path() string
- func (e Executor) PlanDirector(input DirInput, deploymentDir, iaas string) error
- func (e Executor) PlanJumpbox(input DirInput, deploymentDir, iaas string) error
- func (e Executor) Version() (string, error)
- func (e Executor) WriteDeploymentVars(input DirInput, deploymentVars string) error
- type IP
- type Manager
- func (m *Manager) CleanUpDirector(state storage.State) error
- 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) Path() string
- func (m *Manager) Version() (string, error)
- type ManagerCreateError
- type ManagerDeleteError
- type SSHKeyDeleter
- type SSHKeyGetter
Constants ¶
View Source
const AWSBoshDirectorEphemeralIPOps = `
- type: replace
path: /resource_pools/name=vms/cloud_properties/auto_assign_public_ip?
value: true
`
View Source
const GCPBoshDirectorEphemeralIPOps = `
- type: replace
path: /networks/name=default/subnets/0/cloud_properties/ephemeral_external_ip?
value: true
`
View Source
const VSphereJumpboxNetworkOps = `---
- type: remove
path: /instance_groups/name=jumpbox/networks/name=public
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllProxyGetter ¶
type AllProxyGetter struct {
// contains filtered or unexported fields
}
func NewAllProxyGetter ¶
func NewAllProxyGetter(sshKeyGetter sshKeyGetter, fs allProxyFs) AllProxyGetter
func (AllProxyGetter) BoshAllProxy ¶
func (a AllProxyGetter) BoshAllProxy(jumpboxURL, privateKeyPath string) string
func (AllProxyGetter) GeneratePrivateKey ¶
func (a AllProxyGetter) GeneratePrivateKey() (string, error)
type AuthenticatedCLI ¶
type AuthenticatedCLI struct { GlobalArgs []string BOSHAllProxy string Stderr io.Writer BOSHExecutablePath string }
func NewAuthenticatedCLI ¶
func NewAuthenticatedCLI(stderr io.Writer, boshPath, directorAddress, username, password, caCert, boshAllProxy string) AuthenticatedCLI
type AuthenticatedCLIRunner ¶
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 CLIProvider ¶
type CLIProvider struct {
// contains filtered or unexported fields
}
func NewCLIProvider ¶
func NewCLIProvider(allProxyGetter allProxyGetter, boshCLIPath string) CLIProvider
func (CLIProvider) AuthenticatedCLI ¶
func (c CLIProvider) AuthenticatedCLI(jumpbox storage.Jumpbox, stderr io.Writer, directorAddress, directorUsername, directorPassword, directorCACert string) (AuthenticatedCLIRunner, error)
type ConfigUpdater ¶
type ConfigUpdater struct {
// contains filtered or unexported fields
}
func NewConfigUpdater ¶
func NewConfigUpdater(boshCLIProvider boshCLIProvider) ConfigUpdater
func (ConfigUpdater) InitializeAuthenticatedCLI ¶
func (c ConfigUpdater) InitializeAuthenticatedCLI(state storage.State) (AuthenticatedCLIRunner, error)
func (ConfigUpdater) UpdateCloudConfig ¶
func (c ConfigUpdater) UpdateCloudConfig(boshCLI AuthenticatedCLIRunner, filepath string, opsFilepaths []string, varsFilepath string) error
func (ConfigUpdater) UpdateRuntimeConfig ¶
func (c ConfigUpdater) UpdateRuntimeConfig(boshCLI AuthenticatedCLIRunner, filepath string, opsFilepaths []string, name string) error
type CredhubGetter ¶
type CredhubGetter struct {
// contains filtered or unexported fields
}
func NewCredhubGetter ¶
func NewCredhubGetter(stateStore stateStore, fileIO fileio.FileReader) CredhubGetter
func (CredhubGetter) GetCerts ¶
func (c CredhubGetter) GetCerts() (string, error)
func (CredhubGetter) GetPassword ¶
func (c CredhubGetter) GetPassword() (string, error)
func (CredhubGetter) GetServer ¶
func (c CredhubGetter) GetServer() (string, error)
type Executor ¶
type Executor struct { CLI cli FS executorFs Box *packr.Box }
func NewExecutor ¶
func NewExecutor(cmd cli, fs executorFs) Executor
func (Executor) PlanDirector ¶
func (Executor) PlanJumpbox ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(executor executor, logger logger, stateStore stateStore, sshKeyGetter sshKeyGetter, fs deleterFs, boshCLIProvider boshCLIProvider) *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, fs deleterFs) 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, fReader fileio.FileReader) SSHKeyGetter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.