bosh_helpers

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LongBOSHTimeout = time.Minute * 30
)

Variables

This section is empty.

Functions

func DeleteBOSHConfig

func DeleteBOSHConfig(configType, configName string) error

func DeleteDeployment

func DeleteDeployment(deploymentName string)

func DeregisterAndDeleteBroker

func DeregisterAndDeleteBroker(deploymentName string)

func DeregisterAndDeleteBrokerSilently

func DeregisterAndDeleteBrokerSilently(deploymentName string)

func FindInstanceGroup

func FindInstanceGroup(manifest *bosh.BoshManifest, igName string) bosh.InstanceGroup

func FindInstanceGroupJobs

func FindInstanceGroupJobs(manifest *bosh.BoshManifest, igName string) []bosh.Job

func FindInstanceGroupProperties

func FindInstanceGroupProperties(manifest *bosh.BoshManifest, igName string) map[string]interface{}

func FindJob

func FindJob(brokerManifest *bosh.BoshManifest, igName, jobName string) bosh.Job

func FindJobProperties

func FindJobProperties(brokerManifest *bosh.BoshManifest, igName, jobName string) map[string]interface{}

func GetBOSHConfig

func GetBOSHConfig(configType, configName string) (string, error)

func Run

func Run(deploymentName string, commands ...string)

func RunErrand

func RunErrand(deploymentName, errandName string, optionalMatcher ...types.GomegaMatcher) *gexec.Session

func RunOnVM

func RunOnVM(deploymentName, VMName, command string)

func VMIDForDeployment

func VMIDForDeployment(deploymentName string) string

func WaitBrokerToStart

func WaitBrokerToStart(brokerURI string)

Types

type BoshHelperClient

type BoshHelperClient struct {
	*boshdirector.Client
}

func New

func New(boshURL, uaaURL, boshUsername, boshPassword, boshCACert string) *BoshHelperClient

func NewBasicAuth

func NewBasicAuth(boshURL, boshUsername, boshPassword, boshCACert string, disableTLSVerification bool) *BoshHelperClient

func (*BoshHelperClient) DeleteDeployment

func (b *BoshHelperClient) DeleteDeployment(deploymentName string)

func (*BoshHelperClient) DeployODB

func (b *BoshHelperClient) DeployODB(manifest bosh.BoshManifest)

func (*BoshHelperClient) DeploymentExists

func (b *BoshHelperClient) DeploymentExists(deploymentName string) bool

func (*BoshHelperClient) GetManifest

func (b *BoshHelperClient) GetManifest(deploymentName string) *bosh.BoshManifest

func (*BoshHelperClient) GetTasksForDeployment

func (b *BoshHelperClient) GetTasksForDeployment(deploymentName string) boshdirector.BoshTasks

func (*BoshHelperClient) RunErrand

func (b *BoshHelperClient) RunErrand(deploymentName string, errandName string, errandInstances []string, contextID string) boshdirector.BoshTaskOutput

func (*BoshHelperClient) RunErrandWithoutCheckingSuccess

func (b *BoshHelperClient) RunErrandWithoutCheckingSuccess(deploymentName string, errandName string, errandInstances []string, contextID string) boshdirector.BoshTaskOutput

type BoshTaskOutput

type BoshTaskOutput struct {
	Description string `json:"description"`
	State       string `json:"state"`
}

func TasksForDeployment

func TasksForDeployment(boshServiceInstanceName string) []BoshTaskOutput

type BrokerInfo

type BrokerInfo struct {
	URI             string
	DeploymentName  string
	ServiceOffering string
	TestSuffix      string
	BrokerPassword  string
	BrokerUsername  string
}

func DeployAndRegisterBroker

func DeployAndRegisterBroker(systemTestSuffix string, opsFiles []string, deploymentArguments ...string) BrokerInfo

func DeployBroker

func DeployBroker(systemTestSuffix string, opsFiles []string, deploymentArguments ...string) BrokerInfo

type EnvVars

type EnvVars struct {
	DevEnv                   string
	BrokerSystemDomain       string
	DisableBPM               bool
	ConsulRequired           string
	OdbVersion               string
	ServiceReleaseName       string
	ServiceReleaseVersion    string
	OdbReleaseTemplatesPath  string
	BrokerDeploymentVarsPath string
}

Jump to

Keyboard shortcuts

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