bosh_helpers

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BOSHSupportsLinksAPIForDNS

func BOSHSupportsLinksAPIForDNS() bool

func CopyFromVM

func CopyFromVM(deploymentName, VMName, fromPath, toPath string)

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 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 GetBrokerLogs

func GetBrokerLogs(deploymentName string) string

func GetLatestReleaseVersion

func GetLatestReleaseVersion(releaseName string) string

func GetManifest

func GetManifest(deploymentName string) bosh.BoshManifest

func GetManifestString

func GetManifestString(deploymentName string) string

func GetTelemetryLogs

func GetTelemetryLogs(deploymentName string) string

func RedeployBroker

func RedeployBroker(brokerDeploymentName, brokerURI string, brokerManifest bosh.BoshManifest)

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 UploadRelease

func UploadRelease(releasePath 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) 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

type BrokerDeploymentOptions struct {
	ServiceMetrics     bool
	BrokerTLS          bool
	ODBVersion         string
	AdapterVersion     string
	ODBReleaseName     string
	AdapterReleaseName string
}

type BrokerInfo

type BrokerInfo struct {
	URI                string
	DeploymentName     string
	ServiceName        string
	PlanID             string
	TestSuffix         string
	BrokerPassword     string
	BrokerUsername     string
	BrokerName         string
	ServiceID          string
	BrokerSystemDomain 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
	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