Documentation ¶
Index ¶
- Constants
- Variables
- type Adapter
- func (a Adapter) Binder() BinderInterfaceHandler
- func (a Adapter) Cleanup()
- func (a Adapter) CreateBinding() CreateBindingCommandHandler
- func (a Adapter) DashboardUrl() DashboardUrlCommandHandler
- func (a Adapter) DashboardUrlGenerator() DashboardUrlInterfaceHandler
- func (a Adapter) DeleteBinding() DeleteBindingCommandHandler
- func (a Adapter) GenerateManifest() GenerateManifestCommandHandler
- func (a Adapter) ManifestGenerator() ManifestGeneratorInterfaceHandler
- func (a Adapter) New()
- type BinderInterfaceHandler
- type CreateBindingCommandHandler
- func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedError()
- func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedErrorAndStderr(stderrString string)
- func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsError()
- func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsErrorAndStderr(stderrString string)
- func (CreateBindingCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
- func (CreateBindingCommandHandler) FailsWithOperatorError(errString string)
- func (CreateBindingCommandHandler) ReceivedBoshVms() bosh.BoshVMs
- func (CreateBindingCommandHandler) ReceivedID() string
- func (CreateBindingCommandHandler) ReceivedManifest() bosh.BoshManifest
- func (CreateBindingCommandHandler) ReceivedRequestParameters() map[string]interface{}
- func (CreateBindingCommandHandler) ReturnsBinding(credentials string)
- type DashboardUrlCommandHandler
- func (a DashboardUrlCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
- func (a DashboardUrlCommandHandler) FailsWithOperatorError(stderrString string)
- func (a DashboardUrlCommandHandler) ReceivedInstanceID() string
- func (a DashboardUrlCommandHandler) ReceivedManifest() bosh.BoshManifest
- func (a DashboardUrlCommandHandler) ReceivedPlan() serviceadapter.Plan
- func (a DashboardUrlCommandHandler) Returns(dashboardUrlJson string)
- type DashboardUrlInterfaceHandler
- type DeleteBindingCommandHandler
- func (DeleteBindingCommandHandler) FailsWithBindingNotFoundError()
- func (DeleteBindingCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
- func (DeleteBindingCommandHandler) FailsWithOperatorError(errString string)
- func (DeleteBindingCommandHandler) ReceivedBindingID() string
- func (DeleteBindingCommandHandler) ReceivedBoshVms() bosh.BoshVMs
- func (DeleteBindingCommandHandler) ReceivedManifest() bosh.BoshManifest
- func (DeleteBindingCommandHandler) ReceivedRequestParameters() serviceadapter.RequestParameters
- type GenerateManifestCommandHandler
- func (GenerateManifestCommandHandler) ReceivedDeployment() serviceadapter.ServiceDeployment
- func (GenerateManifestCommandHandler) ReceivedPlan() serviceadapter.Plan
- func (GenerateManifestCommandHandler) ReceivedPreviousManifest() *bosh.BoshManifest
- func (GenerateManifestCommandHandler) ReceivedPreviousPlan() serviceadapter.Plan
- func (GenerateManifestCommandHandler) ReceivedRequestParams() map[string]interface{}
- func (GenerateManifestCommandHandler) ToFailWithCFUserAndOperatorError(stdoutString, stderrString string)
- func (GenerateManifestCommandHandler) ToFailWithOperatorError(errString string)
- func (g GenerateManifestCommandHandler) ToReturnManifest(manifest string)
- func (GenerateManifestCommandHandler) ToReturnManifests(manifests map[string]string)
- type ManifestGeneratorInterfaceHandler
Constants ¶
View Source
const ( StdoutContentForGenerate = "TEST_ADAPTER_MANIFEST_TO_RETURN" StderrContentForGenerate = "TEST_ADAPTER_ERROR" StdoutContentForBind = "TEST_ADAPTER_CREDENTIALS" StderrContentForBind = "TEST_ADAPTER_BINDING_ERROR" StdoutContentForUnbind = "TEST_ADAPTER_UNBINDING_STDOUT" StderrContentForUnbind = "TEST_ADAPTER_UNBINDING_STDERR" StdoutContentForDashboardUrl = "TEST_ADAPTER_DASHBOARD_URL" StderrContentForDashboardUrl = "TEST_ADAPTER_DASHBOARD_URL_ERROR" InputServiceDeploymentForGenerate = "TEST_SERVICE_DEPLOYMENT_FILE" InputPlanForGenerate = "TEST_PLAN_FILE" InputRequestParamsForGenerate = "TEST_REQUEST_PARAMS_FILE" InputPreviousManifestForGenerate = "TEST_PREVIOUS_MANIFEST_FILE" InputPreviousPlanForGenerate = "TEST_PREVIOUS_PLAN_FILE" InputIDForBind = "TEST_BINDING_ID_FILE" InputBoshVmsForBind = "TEST_BOSH_VMS_FILE" InputManifestForBind = "TEST_MANIFEST_FILE" InputRequestParamsForBind = "TEST_BINDING_PARAMS_FILE" InputManifestForUnBind = "TEST_DELETE_BINDING_MANIFEST_FILE" InputBoshVmsForUnBind = "TEST_DELETE_BINDING_BOSH_VMS_FILE" InputIDForUnBind = "TEST_DELETE_BINDING_ID_FILE" InputRequestParamsForUnBind = "TEST_UNBINDING_PARAMS_FILE" InputPlanForGenerateDashboardUrl = "TEST_PLAN_FILE_DASHBOARD_URL" InputManifestForGenerateDashboardUrl = "TEST_MANIFEST_DASHBOARD_URL" InputInstanceIDForGenerateDashboardUrl = "TEST_INSTANCE_ID_DASHBOARD_URL" ExitCodeForUnbind = "TEST_UNBINDING_EXIT_CODE" ExitCodeForBind = "TEST_BINDING_EXIT_CODE" ErrorExitCode = string(serviceadapter.ErrorExitCode) BindingNotFoundErrorExitCode = string(serviceadapter.BindingNotFoundErrorExitCode) AppGuidNotProvidedErrorExitCode = string(serviceadapter.AppGuidNotProvidedErrorExitCode) BindingAlreadyExistsErrorExitCode = string(serviceadapter.BindingAlreadyExistsErrorExitCode) NotImplementedManifestGenerator = "TEST_MANIFEST_GENERATOR_NOT_IMPLEMENTED" NotImplementedBinder = "TEST_BINDER_NOT_IMPLEMENTED" NotImplementedDashboardUrl = "TEST_DASHBOARD_URL_NOT_IMPEMENTED" GenerateManifestDefaultKey = "DEFAULT_KEY_FOR_GENERATE_MANIFEST" )
Variables ¶
View Source
var InputFiles = []string{ InputServiceDeploymentForGenerate, InputPlanForGenerate, InputPreviousPlanForGenerate, InputRequestParamsForGenerate, InputPreviousManifestForGenerate, InputIDForBind, InputBoshVmsForBind, InputManifestForBind, InputRequestParamsForBind, InputManifestForUnBind, InputBoshVmsForUnBind, InputIDForUnBind, InputRequestParamsForUnBind, InputPlanForGenerateDashboardUrl, InputManifestForGenerateDashboardUrl, InputInstanceIDForGenerateDashboardUrl, }
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
func (Adapter) Binder ¶
func (a Adapter) Binder() BinderInterfaceHandler
func (Adapter) CreateBinding ¶
func (a Adapter) CreateBinding() CreateBindingCommandHandler
func (Adapter) DashboardUrl ¶
func (a Adapter) DashboardUrl() DashboardUrlCommandHandler
func (Adapter) DashboardUrlGenerator ¶
func (a Adapter) DashboardUrlGenerator() DashboardUrlInterfaceHandler
func (Adapter) DeleteBinding ¶
func (a Adapter) DeleteBinding() DeleteBindingCommandHandler
func (Adapter) GenerateManifest ¶
func (a Adapter) GenerateManifest() GenerateManifestCommandHandler
func (Adapter) ManifestGenerator ¶
func (a Adapter) ManifestGenerator() ManifestGeneratorInterfaceHandler
type BinderInterfaceHandler ¶
type BinderInterfaceHandler struct{}
func (BinderInterfaceHandler) NotImplemented ¶
func (BinderInterfaceHandler) NotImplemented()
type CreateBindingCommandHandler ¶
type CreateBindingCommandHandler struct{}
func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedError ¶
func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedError()
func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedErrorAndStderr ¶
func (CreateBindingCommandHandler) FailsWithAppGuidNotProvidedErrorAndStderr(stderrString string)
func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsError ¶
func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsError()
func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsErrorAndStderr ¶
func (CreateBindingCommandHandler) FailsWithBindingAlreadyExistsErrorAndStderr(stderrString string)
func (CreateBindingCommandHandler) FailsWithCFUserAndOperatorError ¶
func (CreateBindingCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
func (CreateBindingCommandHandler) FailsWithOperatorError ¶
func (CreateBindingCommandHandler) FailsWithOperatorError(errString string)
func (CreateBindingCommandHandler) ReceivedBoshVms ¶
func (CreateBindingCommandHandler) ReceivedBoshVms() bosh.BoshVMs
func (CreateBindingCommandHandler) ReceivedID ¶
func (CreateBindingCommandHandler) ReceivedID() string
func (CreateBindingCommandHandler) ReceivedManifest ¶
func (CreateBindingCommandHandler) ReceivedManifest() bosh.BoshManifest
func (CreateBindingCommandHandler) ReceivedRequestParameters ¶
func (CreateBindingCommandHandler) ReceivedRequestParameters() map[string]interface{}
func (CreateBindingCommandHandler) ReturnsBinding ¶
func (CreateBindingCommandHandler) ReturnsBinding(credentials string)
type DashboardUrlCommandHandler ¶
type DashboardUrlCommandHandler struct{}
func (DashboardUrlCommandHandler) FailsWithCFUserAndOperatorError ¶
func (a DashboardUrlCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
func (DashboardUrlCommandHandler) FailsWithOperatorError ¶
func (a DashboardUrlCommandHandler) FailsWithOperatorError(stderrString string)
func (DashboardUrlCommandHandler) ReceivedInstanceID ¶
func (a DashboardUrlCommandHandler) ReceivedInstanceID() string
func (DashboardUrlCommandHandler) ReceivedManifest ¶
func (a DashboardUrlCommandHandler) ReceivedManifest() bosh.BoshManifest
func (DashboardUrlCommandHandler) ReceivedPlan ¶
func (a DashboardUrlCommandHandler) ReceivedPlan() serviceadapter.Plan
func (DashboardUrlCommandHandler) Returns ¶
func (a DashboardUrlCommandHandler) Returns(dashboardUrlJson string)
type DashboardUrlInterfaceHandler ¶
type DashboardUrlInterfaceHandler struct{}
func (DashboardUrlInterfaceHandler) NotImplemented ¶
func (a DashboardUrlInterfaceHandler) NotImplemented()
type DeleteBindingCommandHandler ¶
type DeleteBindingCommandHandler struct{}
func (DeleteBindingCommandHandler) FailsWithBindingNotFoundError ¶
func (DeleteBindingCommandHandler) FailsWithBindingNotFoundError()
func (DeleteBindingCommandHandler) FailsWithCFUserAndOperatorError ¶
func (DeleteBindingCommandHandler) FailsWithCFUserAndOperatorError(stdoutString, stderrString string)
func (DeleteBindingCommandHandler) FailsWithOperatorError ¶
func (DeleteBindingCommandHandler) FailsWithOperatorError(errString string)
func (DeleteBindingCommandHandler) ReceivedBindingID ¶
func (DeleteBindingCommandHandler) ReceivedBindingID() string
func (DeleteBindingCommandHandler) ReceivedBoshVms ¶
func (DeleteBindingCommandHandler) ReceivedBoshVms() bosh.BoshVMs
func (DeleteBindingCommandHandler) ReceivedManifest ¶
func (DeleteBindingCommandHandler) ReceivedManifest() bosh.BoshManifest
func (DeleteBindingCommandHandler) ReceivedRequestParameters ¶
func (DeleteBindingCommandHandler) ReceivedRequestParameters() serviceadapter.RequestParameters
type GenerateManifestCommandHandler ¶
type GenerateManifestCommandHandler struct{}
func (GenerateManifestCommandHandler) ReceivedDeployment ¶
func (GenerateManifestCommandHandler) ReceivedDeployment() serviceadapter.ServiceDeployment
func (GenerateManifestCommandHandler) ReceivedPlan ¶
func (GenerateManifestCommandHandler) ReceivedPlan() serviceadapter.Plan
func (GenerateManifestCommandHandler) ReceivedPreviousManifest ¶
func (GenerateManifestCommandHandler) ReceivedPreviousManifest() *bosh.BoshManifest
func (GenerateManifestCommandHandler) ReceivedPreviousPlan ¶
func (GenerateManifestCommandHandler) ReceivedPreviousPlan() serviceadapter.Plan
func (GenerateManifestCommandHandler) ReceivedRequestParams ¶
func (GenerateManifestCommandHandler) ReceivedRequestParams() map[string]interface{}
func (GenerateManifestCommandHandler) ToFailWithCFUserAndOperatorError ¶
func (GenerateManifestCommandHandler) ToFailWithCFUserAndOperatorError(stdoutString, stderrString string)
func (GenerateManifestCommandHandler) ToFailWithOperatorError ¶
func (GenerateManifestCommandHandler) ToFailWithOperatorError(errString string)
func (GenerateManifestCommandHandler) ToReturnManifest ¶
func (g GenerateManifestCommandHandler) ToReturnManifest(manifest string)
func (GenerateManifestCommandHandler) ToReturnManifests ¶
func (GenerateManifestCommandHandler) ToReturnManifests(manifests map[string]string)
type ManifestGeneratorInterfaceHandler ¶
type ManifestGeneratorInterfaceHandler struct{}
func (ManifestGeneratorInterfaceHandler) NotImplemented ¶
func (ManifestGeneratorInterfaceHandler) NotImplemented()
Click to show internal directories.
Click to hide internal directories.