fakes

package
v0.17.3-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBoshClient

type FakeBoshClient struct {
	GetTaskStub func(taskID int, logger *log.Logger) (boshdirector.BoshTask, error)

	GetTasksStub func(deploymentName string, logger *log.Logger) (boshdirector.BoshTasks, error)

	GetNormalisedTasksByContextStub func(deploymentName, contextID string, logger *log.Logger) (boshdirector.BoshTasks, error)

	VMsStub func(deploymentName string, logger *log.Logger) (bosh.BoshVMs, error)

	GetDeploymentStub func(name string, logger *log.Logger) ([]byte, bool, error)

	GetDeploymentsStub func(logger *log.Logger) ([]boshdirector.Deployment, error)

	DeleteDeploymentStub func(name, contextID string, logger *log.Logger) (int, error)

	GetInfoStub func(logger *log.Logger) (*boshdirector.Info, error)

	RunErrandStub func(deploymentName, errandName string, errandInstances []string, contextID string, logger *log.Logger) (int, error)

	VerifyAuthStub func(logger *log.Logger) error
	// contains filtered or unexported fields
}

func (*FakeBoshClient) DeleteDeployment

func (fake *FakeBoshClient) DeleteDeployment(name string, contextID string, logger *log.Logger) (int, error)

func (*FakeBoshClient) DeleteDeploymentArgsForCall

func (fake *FakeBoshClient) DeleteDeploymentArgsForCall(i int) (string, string, *log.Logger)

func (*FakeBoshClient) DeleteDeploymentCallCount

func (fake *FakeBoshClient) DeleteDeploymentCallCount() int

func (*FakeBoshClient) DeleteDeploymentReturns

func (fake *FakeBoshClient) DeleteDeploymentReturns(result1 int, result2 error)

func (*FakeBoshClient) DeleteDeploymentReturnsOnCall

func (fake *FakeBoshClient) DeleteDeploymentReturnsOnCall(i int, result1 int, result2 error)

func (*FakeBoshClient) GetDeployment

func (fake *FakeBoshClient) GetDeployment(name string, logger *log.Logger) ([]byte, bool, error)

func (*FakeBoshClient) GetDeploymentArgsForCall

func (fake *FakeBoshClient) GetDeploymentArgsForCall(i int) (string, *log.Logger)

func (*FakeBoshClient) GetDeploymentCallCount

func (fake *FakeBoshClient) GetDeploymentCallCount() int

func (*FakeBoshClient) GetDeploymentReturns

func (fake *FakeBoshClient) GetDeploymentReturns(result1 []byte, result2 bool, result3 error)

func (*FakeBoshClient) GetDeploymentReturnsOnCall

func (fake *FakeBoshClient) GetDeploymentReturnsOnCall(i int, result1 []byte, result2 bool, result3 error)

func (*FakeBoshClient) GetDeployments

func (fake *FakeBoshClient) GetDeployments(logger *log.Logger) ([]boshdirector.Deployment, error)

func (*FakeBoshClient) GetDeploymentsArgsForCall

func (fake *FakeBoshClient) GetDeploymentsArgsForCall(i int) *log.Logger

func (*FakeBoshClient) GetDeploymentsCallCount

func (fake *FakeBoshClient) GetDeploymentsCallCount() int

func (*FakeBoshClient) GetDeploymentsReturns

func (fake *FakeBoshClient) GetDeploymentsReturns(result1 []boshdirector.Deployment, result2 error)

func (*FakeBoshClient) GetDeploymentsReturnsOnCall

func (fake *FakeBoshClient) GetDeploymentsReturnsOnCall(i int, result1 []boshdirector.Deployment, result2 error)

func (*FakeBoshClient) GetInfo added in v0.17.2

func (fake *FakeBoshClient) GetInfo(logger *log.Logger) (*boshdirector.Info, error)

func (*FakeBoshClient) GetInfoArgsForCall added in v0.17.2

func (fake *FakeBoshClient) GetInfoArgsForCall(i int) *log.Logger

func (*FakeBoshClient) GetInfoCallCount added in v0.17.2

func (fake *FakeBoshClient) GetInfoCallCount() int

func (*FakeBoshClient) GetInfoReturns added in v0.17.2

func (fake *FakeBoshClient) GetInfoReturns(result1 *boshdirector.Info, result2 error)

func (*FakeBoshClient) GetInfoReturnsOnCall added in v0.17.2

func (fake *FakeBoshClient) GetInfoReturnsOnCall(i int, result1 *boshdirector.Info, result2 error)

func (*FakeBoshClient) GetNormalisedTasksByContext

func (fake *FakeBoshClient) GetNormalisedTasksByContext(deploymentName string, contextID string, logger *log.Logger) (boshdirector.BoshTasks, error)

func (*FakeBoshClient) GetNormalisedTasksByContextArgsForCall

func (fake *FakeBoshClient) GetNormalisedTasksByContextArgsForCall(i int) (string, string, *log.Logger)

func (*FakeBoshClient) GetNormalisedTasksByContextCallCount

func (fake *FakeBoshClient) GetNormalisedTasksByContextCallCount() int

func (*FakeBoshClient) GetNormalisedTasksByContextReturns

func (fake *FakeBoshClient) GetNormalisedTasksByContextReturns(result1 boshdirector.BoshTasks, result2 error)

func (*FakeBoshClient) GetNormalisedTasksByContextReturnsOnCall

func (fake *FakeBoshClient) GetNormalisedTasksByContextReturnsOnCall(i int, result1 boshdirector.BoshTasks, result2 error)

func (*FakeBoshClient) GetTask

func (fake *FakeBoshClient) GetTask(taskID int, logger *log.Logger) (boshdirector.BoshTask, error)

func (*FakeBoshClient) GetTaskArgsForCall

func (fake *FakeBoshClient) GetTaskArgsForCall(i int) (int, *log.Logger)

func (*FakeBoshClient) GetTaskCallCount

func (fake *FakeBoshClient) GetTaskCallCount() int

func (*FakeBoshClient) GetTaskReturns

func (fake *FakeBoshClient) GetTaskReturns(result1 boshdirector.BoshTask, result2 error)

func (*FakeBoshClient) GetTaskReturnsOnCall

func (fake *FakeBoshClient) GetTaskReturnsOnCall(i int, result1 boshdirector.BoshTask, result2 error)

func (*FakeBoshClient) GetTasks

func (fake *FakeBoshClient) GetTasks(deploymentName string, logger *log.Logger) (boshdirector.BoshTasks, error)

func (*FakeBoshClient) GetTasksArgsForCall

func (fake *FakeBoshClient) GetTasksArgsForCall(i int) (string, *log.Logger)

func (*FakeBoshClient) GetTasksCallCount

func (fake *FakeBoshClient) GetTasksCallCount() int

func (*FakeBoshClient) GetTasksReturns

func (fake *FakeBoshClient) GetTasksReturns(result1 boshdirector.BoshTasks, result2 error)

func (*FakeBoshClient) GetTasksReturnsOnCall

func (fake *FakeBoshClient) GetTasksReturnsOnCall(i int, result1 boshdirector.BoshTasks, result2 error)

func (*FakeBoshClient) Invocations

func (fake *FakeBoshClient) Invocations() map[string][][]interface{}

func (*FakeBoshClient) RunErrand

func (fake *FakeBoshClient) RunErrand(deploymentName string, errandName string, errandInstances []string, contextID string, logger *log.Logger) (int, error)

func (*FakeBoshClient) RunErrandArgsForCall

func (fake *FakeBoshClient) RunErrandArgsForCall(i int) (string, string, []string, string, *log.Logger)

func (*FakeBoshClient) RunErrandCallCount

func (fake *FakeBoshClient) RunErrandCallCount() int

func (*FakeBoshClient) RunErrandReturns

func (fake *FakeBoshClient) RunErrandReturns(result1 int, result2 error)

func (*FakeBoshClient) RunErrandReturnsOnCall

func (fake *FakeBoshClient) RunErrandReturnsOnCall(i int, result1 int, result2 error)

func (*FakeBoshClient) VMs

func (fake *FakeBoshClient) VMs(deploymentName string, logger *log.Logger) (bosh.BoshVMs, error)

func (*FakeBoshClient) VMsArgsForCall

func (fake *FakeBoshClient) VMsArgsForCall(i int) (string, *log.Logger)

func (*FakeBoshClient) VMsCallCount

func (fake *FakeBoshClient) VMsCallCount() int

func (*FakeBoshClient) VMsReturns

func (fake *FakeBoshClient) VMsReturns(result1 bosh.BoshVMs, result2 error)

func (*FakeBoshClient) VMsReturnsOnCall

func (fake *FakeBoshClient) VMsReturnsOnCall(i int, result1 bosh.BoshVMs, result2 error)

func (*FakeBoshClient) VerifyAuth added in v0.17.2

func (fake *FakeBoshClient) VerifyAuth(logger *log.Logger) error

func (*FakeBoshClient) VerifyAuthArgsForCall added in v0.17.2

func (fake *FakeBoshClient) VerifyAuthArgsForCall(i int) *log.Logger

func (*FakeBoshClient) VerifyAuthCallCount added in v0.17.2

func (fake *FakeBoshClient) VerifyAuthCallCount() int

func (*FakeBoshClient) VerifyAuthReturns added in v0.17.2

func (fake *FakeBoshClient) VerifyAuthReturns(result1 error)

func (*FakeBoshClient) VerifyAuthReturnsOnCall added in v0.17.2

func (fake *FakeBoshClient) VerifyAuthReturnsOnCall(i int, result1 error)

type FakeCloudFoundryClient

type FakeCloudFoundryClient struct {
	GetAPIVersionStub func(logger *log.Logger) (string, error)

	CountInstancesOfPlanStub func(serviceOfferingID, planID string, logger *log.Logger) (int, error)

	CountInstancesOfServiceOfferingStub func(serviceOfferingID string, logger *log.Logger) (instanceCountByPlanID map[cf.ServicePlan]int, err error)

	GetInstanceStateStub func(serviceInstanceGUID string, logger *log.Logger) (cf.InstanceState, error)

	GetInstancesOfServiceOfferingStub func(serviceOfferingID string, logger *log.Logger) ([]string, error)
	// contains filtered or unexported fields
}

func (*FakeCloudFoundryClient) CountInstancesOfPlan

func (fake *FakeCloudFoundryClient) CountInstancesOfPlan(serviceOfferingID string, planID string, logger *log.Logger) (int, error)

func (*FakeCloudFoundryClient) CountInstancesOfPlanArgsForCall

func (fake *FakeCloudFoundryClient) CountInstancesOfPlanArgsForCall(i int) (string, string, *log.Logger)

func (*FakeCloudFoundryClient) CountInstancesOfPlanCallCount

func (fake *FakeCloudFoundryClient) CountInstancesOfPlanCallCount() int

func (*FakeCloudFoundryClient) CountInstancesOfPlanReturns

func (fake *FakeCloudFoundryClient) CountInstancesOfPlanReturns(result1 int, result2 error)

func (*FakeCloudFoundryClient) CountInstancesOfPlanReturnsOnCall

func (fake *FakeCloudFoundryClient) CountInstancesOfPlanReturnsOnCall(i int, result1 int, result2 error)

func (*FakeCloudFoundryClient) CountInstancesOfServiceOffering

func (fake *FakeCloudFoundryClient) CountInstancesOfServiceOffering(serviceOfferingID string, logger *log.Logger) (instanceCountByPlanID map[cf.ServicePlan]int, err error)

func (*FakeCloudFoundryClient) CountInstancesOfServiceOfferingArgsForCall

func (fake *FakeCloudFoundryClient) CountInstancesOfServiceOfferingArgsForCall(i int) (string, *log.Logger)

func (*FakeCloudFoundryClient) CountInstancesOfServiceOfferingCallCount

func (fake *FakeCloudFoundryClient) CountInstancesOfServiceOfferingCallCount() int

func (*FakeCloudFoundryClient) CountInstancesOfServiceOfferingReturns

func (fake *FakeCloudFoundryClient) CountInstancesOfServiceOfferingReturns(result1 map[cf.ServicePlan]int, result2 error)

func (*FakeCloudFoundryClient) CountInstancesOfServiceOfferingReturnsOnCall

func (fake *FakeCloudFoundryClient) CountInstancesOfServiceOfferingReturnsOnCall(i int, result1 map[cf.ServicePlan]int, result2 error)

func (*FakeCloudFoundryClient) GetAPIVersion

func (fake *FakeCloudFoundryClient) GetAPIVersion(logger *log.Logger) (string, error)

func (*FakeCloudFoundryClient) GetAPIVersionArgsForCall

func (fake *FakeCloudFoundryClient) GetAPIVersionArgsForCall(i int) *log.Logger

func (*FakeCloudFoundryClient) GetAPIVersionCallCount

func (fake *FakeCloudFoundryClient) GetAPIVersionCallCount() int

func (*FakeCloudFoundryClient) GetAPIVersionReturns

func (fake *FakeCloudFoundryClient) GetAPIVersionReturns(result1 string, result2 error)

func (*FakeCloudFoundryClient) GetAPIVersionReturnsOnCall

func (fake *FakeCloudFoundryClient) GetAPIVersionReturnsOnCall(i int, result1 string, result2 error)

func (*FakeCloudFoundryClient) GetInstanceState

func (fake *FakeCloudFoundryClient) GetInstanceState(serviceInstanceGUID string, logger *log.Logger) (cf.InstanceState, error)

func (*FakeCloudFoundryClient) GetInstanceStateArgsForCall

func (fake *FakeCloudFoundryClient) GetInstanceStateArgsForCall(i int) (string, *log.Logger)

func (*FakeCloudFoundryClient) GetInstanceStateCallCount

func (fake *FakeCloudFoundryClient) GetInstanceStateCallCount() int

func (*FakeCloudFoundryClient) GetInstanceStateReturns

func (fake *FakeCloudFoundryClient) GetInstanceStateReturns(result1 cf.InstanceState, result2 error)

func (*FakeCloudFoundryClient) GetInstanceStateReturnsOnCall

func (fake *FakeCloudFoundryClient) GetInstanceStateReturnsOnCall(i int, result1 cf.InstanceState, result2 error)

func (*FakeCloudFoundryClient) GetInstancesOfServiceOffering

func (fake *FakeCloudFoundryClient) GetInstancesOfServiceOffering(serviceOfferingID string, logger *log.Logger) ([]string, error)

func (*FakeCloudFoundryClient) GetInstancesOfServiceOfferingArgsForCall

func (fake *FakeCloudFoundryClient) GetInstancesOfServiceOfferingArgsForCall(i int) (string, *log.Logger)

func (*FakeCloudFoundryClient) GetInstancesOfServiceOfferingCallCount

func (fake *FakeCloudFoundryClient) GetInstancesOfServiceOfferingCallCount() int

func (*FakeCloudFoundryClient) GetInstancesOfServiceOfferingReturns

func (fake *FakeCloudFoundryClient) GetInstancesOfServiceOfferingReturns(result1 []string, result2 error)

func (*FakeCloudFoundryClient) GetInstancesOfServiceOfferingReturnsOnCall

func (fake *FakeCloudFoundryClient) GetInstancesOfServiceOfferingReturnsOnCall(i int, result1 []string, result2 error)

func (*FakeCloudFoundryClient) Invocations

func (fake *FakeCloudFoundryClient) Invocations() map[string][][]interface{}

type FakeDeployer

type FakeDeployer struct {
	CreateStub func(deploymentName, planID string, requestParams map[string]interface{}, boshContextID string, logger *log.Logger) (int, []byte, error)

	UpdateStub func(deploymentName, planID string, requestParams map[string]interface{}, previousPlanID *string, boshContextID string, logger *log.Logger) (int, []byte, error)

	UpgradeStub func(deploymentName, planID string, previousPlanID *string, boshContextID string, logger *log.Logger) (int, []byte, error)
	// contains filtered or unexported fields
}

func (*FakeDeployer) Create

func (fake *FakeDeployer) Create(deploymentName string, planID string, requestParams map[string]interface{}, boshContextID string, logger *log.Logger) (int, []byte, error)

func (*FakeDeployer) CreateArgsForCall

func (fake *FakeDeployer) CreateArgsForCall(i int) (string, string, map[string]interface{}, string, *log.Logger)

func (*FakeDeployer) CreateCallCount

func (fake *FakeDeployer) CreateCallCount() int

func (*FakeDeployer) CreateReturns

func (fake *FakeDeployer) CreateReturns(result1 int, result2 []byte, result3 error)

func (*FakeDeployer) CreateReturnsOnCall

func (fake *FakeDeployer) CreateReturnsOnCall(i int, result1 int, result2 []byte, result3 error)

func (*FakeDeployer) Invocations

func (fake *FakeDeployer) Invocations() map[string][][]interface{}

func (*FakeDeployer) Update

func (fake *FakeDeployer) Update(deploymentName string, planID string, requestParams map[string]interface{}, previousPlanID *string, boshContextID string, logger *log.Logger) (int, []byte, error)

func (*FakeDeployer) UpdateArgsForCall

func (fake *FakeDeployer) UpdateArgsForCall(i int) (string, string, map[string]interface{}, *string, string, *log.Logger)

func (*FakeDeployer) UpdateCallCount

func (fake *FakeDeployer) UpdateCallCount() int

func (*FakeDeployer) UpdateReturns

func (fake *FakeDeployer) UpdateReturns(result1 int, result2 []byte, result3 error)

func (*FakeDeployer) UpdateReturnsOnCall

func (fake *FakeDeployer) UpdateReturnsOnCall(i int, result1 int, result2 []byte, result3 error)

func (*FakeDeployer) Upgrade

func (fake *FakeDeployer) Upgrade(deploymentName string, planID string, previousPlanID *string, boshContextID string, logger *log.Logger) (int, []byte, error)

func (*FakeDeployer) UpgradeArgsForCall

func (fake *FakeDeployer) UpgradeArgsForCall(i int) (string, string, *string, string, *log.Logger)

func (*FakeDeployer) UpgradeCallCount

func (fake *FakeDeployer) UpgradeCallCount() int

func (*FakeDeployer) UpgradeReturns

func (fake *FakeDeployer) UpgradeReturns(result1 int, result2 []byte, result3 error)

func (*FakeDeployer) UpgradeReturnsOnCall

func (fake *FakeDeployer) UpgradeReturnsOnCall(i int, result1 int, result2 []byte, result3 error)

type FakeServiceAdapterClient

type FakeServiceAdapterClient struct {
	CreateBindingStub func(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) (serviceadapter.Binding, error)

	DeleteBindingStub func(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) error

	GenerateDashboardUrlStub func(instanceID string, plan serviceadapter.Plan, manifest []byte, logger *log.Logger) (string, error)
	// contains filtered or unexported fields
}

func (*FakeServiceAdapterClient) CreateBinding

func (fake *FakeServiceAdapterClient) CreateBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) (serviceadapter.Binding, error)

func (*FakeServiceAdapterClient) CreateBindingArgsForCall

func (fake *FakeServiceAdapterClient) CreateBindingArgsForCall(i int) (string, bosh.BoshVMs, []byte, map[string]interface{}, *log.Logger)

func (*FakeServiceAdapterClient) CreateBindingCallCount

func (fake *FakeServiceAdapterClient) CreateBindingCallCount() int

func (*FakeServiceAdapterClient) CreateBindingReturns

func (fake *FakeServiceAdapterClient) CreateBindingReturns(result1 serviceadapter.Binding, result2 error)

func (*FakeServiceAdapterClient) CreateBindingReturnsOnCall

func (fake *FakeServiceAdapterClient) CreateBindingReturnsOnCall(i int, result1 serviceadapter.Binding, result2 error)

func (*FakeServiceAdapterClient) DeleteBinding

func (fake *FakeServiceAdapterClient) DeleteBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest []byte, requestParams map[string]interface{}, logger *log.Logger) error

func (*FakeServiceAdapterClient) DeleteBindingArgsForCall

func (fake *FakeServiceAdapterClient) DeleteBindingArgsForCall(i int) (string, bosh.BoshVMs, []byte, map[string]interface{}, *log.Logger)

func (*FakeServiceAdapterClient) DeleteBindingCallCount

func (fake *FakeServiceAdapterClient) DeleteBindingCallCount() int

func (*FakeServiceAdapterClient) DeleteBindingReturns

func (fake *FakeServiceAdapterClient) DeleteBindingReturns(result1 error)

func (*FakeServiceAdapterClient) DeleteBindingReturnsOnCall

func (fake *FakeServiceAdapterClient) DeleteBindingReturnsOnCall(i int, result1 error)

func (*FakeServiceAdapterClient) GenerateDashboardUrl

func (fake *FakeServiceAdapterClient) GenerateDashboardUrl(instanceID string, plan serviceadapter.Plan, manifest []byte, logger *log.Logger) (string, error)

func (*FakeServiceAdapterClient) GenerateDashboardUrlArgsForCall

func (fake *FakeServiceAdapterClient) GenerateDashboardUrlArgsForCall(i int) (string, serviceadapter.Plan, []byte, *log.Logger)

func (*FakeServiceAdapterClient) GenerateDashboardUrlCallCount

func (fake *FakeServiceAdapterClient) GenerateDashboardUrlCallCount() int

func (*FakeServiceAdapterClient) GenerateDashboardUrlReturns

func (fake *FakeServiceAdapterClient) GenerateDashboardUrlReturns(result1 string, result2 error)

func (*FakeServiceAdapterClient) GenerateDashboardUrlReturnsOnCall

func (fake *FakeServiceAdapterClient) GenerateDashboardUrlReturnsOnCall(i int, result1 string, result2 error)

func (*FakeServiceAdapterClient) Invocations

func (fake *FakeServiceAdapterClient) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

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