Documentation ¶
Index ¶
- Constants
- type AWSClient
- func (client *AWSClient) Cleanup() error
- func (client *AWSClient) CreateEnv(state, creds []byte, customOps string) (newState, newCreds []byte, err error)
- func (client *AWSClient) Delete(stateFileBytes []byte) ([]byte, error)
- func (client *AWSClient) Deploy(state, creds []byte, detach bool) (newState, newCreds []byte, err error)
- func (client *AWSClient) Instances() ([]Instance, error)
- func (client *AWSClient) Locks() ([]byte, error)
- func (client *AWSClient) Recreate() error
- type ClientFactory
- type GCPClient
- func (client *GCPClient) Cleanup() error
- func (client *GCPClient) CreateEnv(state, creds []byte, customOps string) (newState, newCreds []byte, err error)
- func (client *GCPClient) Delete(stateFileBytes []byte) ([]byte, error)
- func (client *GCPClient) Deploy(state, creds []byte, detach bool) (newState, newCreds []byte, err error)
- func (client *GCPClient) Instances() ([]Instance, error)
- func (client *GCPClient) Locks() ([]byte, error)
- func (client *GCPClient) Recreate() error
- type IClient
- func New(config config.Config, outputs terraform.Outputs, stdout, stderr io.Writer, ...) (IClient, error)
- func NewAWSClient(config config.Config, outputs terraform.Outputs, workingdir workingdir.IClient, ...) (IClient, error)
- func NewGCPClient(config config.Config, outputs terraform.Outputs, workingdir workingdir.IClient, ...) (IClient, error)
- type Instance
- type Opener
Constants ¶
View Source
const CredsFilename = "director-creds.yml"
CredsFilename is default name for bosh-init creds file
View Source
const StateFilename = "director-state.json"
StateFilename is default name for bosh-init state file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
AWSClient is an AWS specific implementation of IClient
func (*AWSClient) CreateEnv ¶
func (client *AWSClient) CreateEnv(state, creds []byte, customOps string) (newState, newCreds []byte, err error)
CreateEnv exposes bosh create-env functionality
func (*AWSClient) Deploy ¶
func (client *AWSClient) Deploy(state, creds []byte, detach bool) (newState, newCreds []byte, err error)
Deploy implements deploy for AWS client
type ClientFactory ¶
type ClientFactory func(config config.Config, outputs terraform.Outputs, stdout, stderr io.Writer, provider iaas.Provider, versionFile []byte) (IClient, error)
ClientFactory creates a new IClient
type GCPClient ¶
type GCPClient struct {
// contains filtered or unexported fields
}
GCPClient is an GCP specific implementation of IClient
func (*GCPClient) CreateEnv ¶
func (client *GCPClient) CreateEnv(state, creds []byte, customOps string) (newState, newCreds []byte, err error)
CreateEnv exposes bosh create-env functionality
func (*GCPClient) Deploy ¶
func (client *GCPClient) Deploy(state, creds []byte, detach bool) (newState, newCreds []byte, err error)
Deploy deploys a new Bosh director or converges an existing deployment Returns new contents of bosh state file
type IClient ¶
type IClient interface { Deploy([]byte, []byte, bool) ([]byte, []byte, error) Delete([]byte) ([]byte, error) Cleanup() error Instances() ([]Instance, error) CreateEnv([]byte, []byte, string) ([]byte, []byte, error) Recreate() error Locks() ([]byte, error) }
IClient is a client for performing bosh-init commands
func New ¶
func New(config config.Config, outputs terraform.Outputs, stdout, stderr io.Writer, provider iaas.Provider, versionFile []byte) (IClient, error)
New returns an IAAS specific implementation of BOSH client
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
internal
|
|
boshcli/boshclifakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
workingdir/workingdirfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.