bosh

package
v0.0.0-...-f17ef4b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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 Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a concrete implementation of the IClient interface

func (*Client) Cleanup

func (client *Client) Cleanup() error

Cleanup cleans up temporary files associated with bosh init

func (*Client) Delete

func (client *Client) Delete(stateFileBytes []byte) ([]byte, error)

Delete deletes a bosh director

func (*Client) Deploy

func (client *Client) Deploy(stateFileBytes []byte) ([]byte, error)

Deploy deploys a new Bosh director or converges an existing deployment Returns new contents of bosh state file

func (*Client) Instances

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

Instances returns the list of Concourse VMs

type ClientFactory

type ClientFactory func(config *config.Config, metadata *terraform.Metadata, director director.IClient, dbRunner db.Runner, stdout, stderr io.Writer) IClient

ClientFactory creates a new IClient

type IClient

type IClient interface {
	Deploy([]byte) ([]byte, error)
	Delete([]byte) ([]byte, error)
	Cleanup() error
	Instances() ([]Instance, error)
}

IClient is a client for performing bosh-init commands

func NewClient

func NewClient(config *config.Config, metadata *terraform.Metadata, director director.IClient, dbRunner db.Runner, stdout, stderr io.Writer) IClient

NewClient creates a new Client

type Instance

type Instance struct {
	Name  string
	IP    string
	State string
}

Instance represents a vm deployed by BOSH

Jump to

Keyboard shortcuts

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