bosh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoshDeployedInstance

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

func NewBoshManifestReleaseMapping added in v1.1.0

func NewBoshManifestReleaseMapping(manifest string) (instance.ReleaseMapping, error)

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 (i *BoshDeployedInstance) Cleanup() error

func (*BoshDeployedInstance) CleanupPrevious added in v1.0.0

func (i *BoshDeployedInstance) CleanupPrevious() error

type Client

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

func NewClient

func NewClient(boshDirector director.Director,
	sshOptsGenerator ssh.SSHOptsGenerator,
	remoteRunnerFactory ssh.RemoteRunnerFactory,
	logger Logger,
	jobFinder instance.JobFinder,
	releaseMappingFinder instance.ReleaseMappingFinder) 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{})
}

type ManifestReleaseMapping added in v1.1.0

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

func (ManifestReleaseMapping) FindReleaseName added in v1.1.0

func (rm ManifestReleaseMapping) FindReleaseName(instanceGroupName, jobName string) (string, error)

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