bosh_helpers

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BOSHSupportsLinksAPIForDNS added in v0.27.0

func BOSHSupportsLinksAPIForDNS() bool

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 GetManifest added in v0.27.0

func GetManifest(deploymentName string) string

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 BrokerDeploymentOptions added in v0.27.0

type BrokerDeploymentOptions struct {
	ServiceMetrics bool
	BrokerTLS      bool
}

type BrokerInfo

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

func DeployAndRegisterBroker

func DeployAndRegisterBroker(systemTestSuffix string, deploymentOptions BrokerDeploymentOptions, serviceType service_helpers.ServiceType, opsFiles []string, deploymentArguments ...string) BrokerInfo

func DeployBroker

func DeployBroker(systemTestSuffix string, deploymentOptions BrokerDeploymentOptions, serviceType service_helpers.ServiceType, opsFiles []string, deploymentArguments ...string) BrokerInfo

type EnvVars

type EnvVars struct {
	BrokerDeploymentVarsPath  string
	BrokerSystemDomain        string
	BrokerURI                 string
	ConsulRequired            string
	DevEnv                    string
	OdbReleaseTemplatesPath   string
	OdbVersion                string
	ServiceAdapterReleaseName string
	ServiceReleaseName        string
	ServiceReleaseVersion     string
	DeploymentName            string
}

Jump to

Keyboard shortcuts

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