bosh

package
v0.0.0-...-4f22f6d Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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) Cleanup

func (client *AWSClient) Cleanup() error

Cleanup is AWS specific implementation of Cleanup

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

func (*AWSClient) Instances

func (client *AWSClient) Instances() ([]Instance, error)

Instances returns the list of Concourse VMs

func (*AWSClient) Locks

func (client *AWSClient) Locks() ([]byte, error)

Locks implements locks for AWS client

func (*AWSClient) Recreate

func (client *AWSClient) Recreate() error

Recreate exposes BOSH recreate

type ClientFactory

type ClientFactory func(config config.ConfigView, 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) Cleanup

func (client *GCPClient) Cleanup() error

Cleanup is GCP specific implementation of Cleanup

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

func (*GCPClient) Instances

func (client *GCPClient) Instances() ([]Instance, error)

Instances returns the list of Concourse VMs

func (*GCPClient) Locks

func (client *GCPClient) Locks() ([]byte, error)

Locks implements locks for GCP client

func (*GCPClient) Recreate

func (client *GCPClient) Recreate() error

Recreate exposes BOSH recreate

type IClient

type IClient interface {
	Deploy([]byte, []byte, bool) ([]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.ConfigView, outputs terraform.Outputs, stdout, stderr io.Writer, provider iaas.Provider, versionFile []byte) (IClient, error)

New returns an IAAS specific implementation of BOSH client

func NewAWSClient

func NewAWSClient(config config.ConfigView, outputs terraform.Outputs, workingdir workingdir.IClient, stdout, stderr io.Writer, provider iaas.Provider, boshCLI boshcli.ICLI, versionFile []byte) (IClient, error)

NewAWSClient returns a AWS specific implementation of IClient

func NewGCPClient

func NewGCPClient(config config.ConfigView, outputs terraform.Outputs, workingdir workingdir.IClient, stdout, stderr io.Writer, provider iaas.Provider, boshCLI boshcli.ICLI, versionFile []byte) (IClient, error)

NewGCPClient returns a GCP specific implementation of IClient

type Instance

type Instance struct {
	Name  string
	IP    string
	State string
}

Instance represents a vm deployed by BOSH

type Opener

type Opener interface {
	Open(name string) (*sql.DB, error)
	Close() error
}

Opener will open new connections to a given database name.

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.

Jump to

Keyboard shortcuts

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