bosh

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner is a bosh command runner

func NewRunner

func NewRunner(env []string) *Runner

NewRunner creates a new bosh runner instance, env should contain the environment variables necessary to connect to the bosh instance.

func (Runner) Deploy

func (r Runner) Deploy(deploymentName string, manifestFilename string) error

Deploy executes the specified bosh deployment with the specified manifest on disk.

func (Runner) DeployWithFlags

func (r Runner) DeployWithFlags(deploymentName string, manifestFilename string, flags ...string) error

func (Runner) GetDeploymentManifest

func (r Runner) GetDeploymentManifest(deploymentName string) ([]byte, error)

GetDeploymentManifest returns the bosh deployment manifest yaml for the specified deployment.

func (Runner) GetDeploymentVMs

func (r Runner) GetDeploymentVMs(deploymentName string) (vms []VM, err error)

GetDeploymentVMs gets all the VMs from the specified deployment.

func (Runner) GetDeployments

func (r Runner) GetDeployments() (deployments []string, err error)

GetDeployments gets a bosh deployment names.

func (Runner) GetDiegoDeployments

func (r Runner) GetDiegoDeployments() ([]string, error)

GetDiegoDeployments returns only the bosh deployment names of deployments with diego cells: TAS, TASW, ISO segments.

func (Runner) ScpFile

func (r Runner) ScpFile(deploymentName, source, target string) error

ScpFile copies a file using bosh scp

type VM

type VM struct {
	DeploymentName string
	Name           string
}

VM is a bosh instance

Jump to

Keyboard shortcuts

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