bosh

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoshDeployedInstance

func NewBoshDeployedInstance(instanceGroupName,
	instanceIndex,
	instanceID string,
	connection ssh.SSHConnection,
	deployment director.Deployment,
	artifactDirectoryCreated bool,
	logger Logger,
	jobs instance.Jobs,
) orchestrator.Instance

Types

type BoshClient

type BoshClient interface {
	FindInstances(deploymentName string) ([]orchestrator.Instance, error)
	GetManifest(deploymentName string) (string, error)
}

func BuildClient

func BuildClient(targetUrl, username, password, caCertFileName string, logger boshlog.Logger) (BoshClient, error)

type BoshDeployedInstance

type BoshDeployedInstance struct {
	Deployment director.Deployment
	*instance.DeployedInstance
}

func (*BoshDeployedInstance) Cleanup

func (d *BoshDeployedInstance) Cleanup() error

type Client

type Client struct {
	director.Director
	ssh.SSHOptsGenerator
	ssh.SSHConnectionFactory
	Logger
	// contains filtered or unexported fields
}

func NewClient

func NewClient(boshDirector director.Director,
	sshOptsGenerator ssh.SSHOptsGenerator,
	connectionFactory ssh.SSHConnectionFactory,
	logger Logger,
	jobFinder instance.JobFinder) Client

func (Client) FindInstances

func (c Client) FindInstances(deploymentName string) ([]orchestrator.Instance, error)

func (Client) GetManifest

func (c Client) GetManifest(deploymentName string) (string, error)

type DeploymentManager

type DeploymentManager struct {
	BoshClient
	Logger
	// contains filtered or unexported fields
}

func NewDeploymentManager

func NewDeploymentManager(boshDirector BoshClient, logger Logger, downloadManifest bool) *DeploymentManager

func (*DeploymentManager) Find

func (b *DeploymentManager) Find(deploymentName string) (orchestrator.Deployment, error)

func (*DeploymentManager) SaveManifest

func (b *DeploymentManager) SaveManifest(deploymentName string, backup orchestrator.Backup) error

type Logger

type Logger interface {
	Debug(tag, msg string, args ...interface{})
	Info(tag, msg string, args ...interface{})
	Warn(tag, msg string, args ...interface{})
	Error(tag, msg string, args ...interface{})
}

Directories

Path Synopsis
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