fakes

package
v6.16.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudControllerTestRequest

func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest

Types

type CreateServiceKeyType

type CreateServiceKeyType struct {
	InstanceGuid string
	KeyName      string
	Params       map[string]interface{}

	Error error
}

type DeleteServiceKeyType

type DeleteServiceKeyType struct {
	Guid string

	Error error
}

type FakeAppSummaryRepo

type FakeAppSummaryRepo struct {
	GetSummariesInCurrentSpaceApps []models.Application

	GetSummaryErrorCode string
	GetSummaryAppGuid   string
	GetSummarySummary   models.Application
}

func (*FakeAppSummaryRepo) GetSummariesInCurrentSpace

func (repo *FakeAppSummaryRepo) GetSummariesInCurrentSpace() (apps []models.Application, apiErr error)

func (*FakeAppSummaryRepo) GetSummary

func (repo *FakeAppSummaryRepo) GetSummary(appGuid string) (summary models.Application, apiErr error)

type FakeAppSummaryRepository

type FakeAppSummaryRepository struct {
	GetSummariesInCurrentSpaceStub func() (apps []models.Application, apiErr error)

	GetSummaryStub func(appGuid string) (summary models.Application, apiErr error)
	// contains filtered or unexported fields
}

func (*FakeAppSummaryRepository) GetSummariesInCurrentSpace

func (fake *FakeAppSummaryRepository) GetSummariesInCurrentSpace() (apps []models.Application, apiErr error)

func (*FakeAppSummaryRepository) GetSummariesInCurrentSpaceCallCount

func (fake *FakeAppSummaryRepository) GetSummariesInCurrentSpaceCallCount() int

func (*FakeAppSummaryRepository) GetSummariesInCurrentSpaceReturns

func (fake *FakeAppSummaryRepository) GetSummariesInCurrentSpaceReturns(result1 []models.Application, result2 error)

func (*FakeAppSummaryRepository) GetSummary

func (fake *FakeAppSummaryRepository) GetSummary(appGuid string) (summary models.Application, apiErr error)

func (*FakeAppSummaryRepository) GetSummaryArgsForCall

func (fake *FakeAppSummaryRepository) GetSummaryArgsForCall(i int) string

func (*FakeAppSummaryRepository) GetSummaryCallCount

func (fake *FakeAppSummaryRepository) GetSummaryCallCount() int

func (*FakeAppSummaryRepository) GetSummaryReturns

func (fake *FakeAppSummaryRepository) GetSummaryReturns(result1 models.Application, result2 error)

type FakeAuthTokenRepo

type FakeAuthTokenRepo struct {
	CreatedServiceAuthTokenFields models.ServiceAuthTokenFields

	FindAllAuthTokens []models.ServiceAuthTokenFields

	FindByLabelAndProviderLabel                  string
	FindByLabelAndProviderProvider               string
	FindByLabelAndProviderServiceAuthTokenFields models.ServiceAuthTokenFields
	FindByLabelAndProviderApiResponse            error

	UpdatedServiceAuthTokenFields models.ServiceAuthTokenFields

	DeletedServiceAuthTokenFields models.ServiceAuthTokenFields
}

func (*FakeAuthTokenRepo) Create

func (repo *FakeAuthTokenRepo) Create(authToken models.ServiceAuthTokenFields) (apiErr error)

func (*FakeAuthTokenRepo) Delete

func (repo *FakeAuthTokenRepo) Delete(authToken models.ServiceAuthTokenFields) (apiErr error)

func (*FakeAuthTokenRepo) FindAll

func (repo *FakeAuthTokenRepo) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)

func (*FakeAuthTokenRepo) FindByLabelAndProvider

func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)

func (*FakeAuthTokenRepo) Update

func (repo *FakeAuthTokenRepo) Update(authToken models.ServiceAuthTokenFields) (apiErr error)

type FakeBuildpackBitsRepository

type FakeBuildpackBitsRepository struct {
	UploadBuildpackErr         bool
	UploadBuildpackApiResponse error
	UploadBuildpackPath        string
}

func (*FakeBuildpackBitsRepository) UploadBuildpack

func (repo *FakeBuildpackBitsRepository) UploadBuildpack(buildpack models.Buildpack, dir string) error

type FakeBuildpackRepository

type FakeBuildpackRepository struct {
	Buildpacks []models.Buildpack

	FindByNameNotFound    bool
	FindByNameName        string
	FindByNameBuildpack   models.Buildpack
	FindByNameApiResponse error

	CreateBuildpackExists bool
	CreateBuildpack       models.Buildpack
	CreateApiResponse     error

	DeleteBuildpackGuid string
	DeleteApiResponse   error

	UpdateBuildpackArgs struct {
		Buildpack models.Buildpack
	}

	UpdateBuildpackReturns struct {
		Error error
	}
}

func (*FakeBuildpackRepository) Create

func (repo *FakeBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error)

func (*FakeBuildpackRepository) Delete

func (repo *FakeBuildpackRepository) Delete(buildpackGuid string) (apiErr error)

func (*FakeBuildpackRepository) FindByName

func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr error)

func (*FakeBuildpackRepository) ListBuildpacks

func (repo *FakeBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) error

func (*FakeBuildpackRepository) Update

func (repo *FakeBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error)

type FakeCurlRepository

type FakeCurlRepository struct {
	Method         string
	Path           string
	Header         string
	Body           string
	ResponseHeader string
	ResponseBody   string
	Error          error
}

func (*FakeCurlRepository) Request

func (repo *FakeCurlRepository) Request(method, path, header, body string) (resHeaders, resBody string, apiErr error)

type FakeDomainRepository

type FakeDomainRepository struct {
	ListDomainsForOrgStub func(orgGuid string, cb func(models.DomainFields) bool) error

	FindSharedByNameStub func(name string) (domain models.DomainFields, apiErr error)

	FindPrivateByNameStub func(name string) (domain models.DomainFields, apiErr error)

	FindByNameInOrgStub func(name string, owningOrgGuid string) (domain models.DomainFields, apiErr error)

	CreateStub func(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr error)

	CreateSharedDomainStub func(domainName string, routerGroupGuid string) (apiErr error)

	DeleteStub func(domainGuid string) (apiErr error)

	DeleteSharedDomainStub func(domainGuid string) (apiErr error)

	FirstOrDefaultStub func(orgGuid string, name *string) (domain models.DomainFields, error error)
	// contains filtered or unexported fields
}

func (*FakeDomainRepository) Create

func (fake *FakeDomainRepository) Create(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr error)

func (*FakeDomainRepository) CreateArgsForCall

func (fake *FakeDomainRepository) CreateArgsForCall(i int) (string, string)

func (*FakeDomainRepository) CreateCallCount

func (fake *FakeDomainRepository) CreateCallCount() int

func (*FakeDomainRepository) CreateReturns

func (fake *FakeDomainRepository) CreateReturns(result1 models.DomainFields, result2 error)

func (*FakeDomainRepository) CreateSharedDomain

func (fake *FakeDomainRepository) CreateSharedDomain(domainName string, routerGroupGuid string) (apiErr error)

func (*FakeDomainRepository) CreateSharedDomainArgsForCall

func (fake *FakeDomainRepository) CreateSharedDomainArgsForCall(i int) (string, string)

func (*FakeDomainRepository) CreateSharedDomainCallCount

func (fake *FakeDomainRepository) CreateSharedDomainCallCount() int

func (*FakeDomainRepository) CreateSharedDomainReturns

func (fake *FakeDomainRepository) CreateSharedDomainReturns(result1 error)

func (*FakeDomainRepository) Delete

func (fake *FakeDomainRepository) Delete(domainGuid string) (apiErr error)

func (*FakeDomainRepository) DeleteArgsForCall

func (fake *FakeDomainRepository) DeleteArgsForCall(i int) string

func (*FakeDomainRepository) DeleteCallCount

func (fake *FakeDomainRepository) DeleteCallCount() int

func (*FakeDomainRepository) DeleteReturns

func (fake *FakeDomainRepository) DeleteReturns(result1 error)

func (*FakeDomainRepository) DeleteSharedDomain

func (fake *FakeDomainRepository) DeleteSharedDomain(domainGuid string) (apiErr error)

func (*FakeDomainRepository) DeleteSharedDomainArgsForCall

func (fake *FakeDomainRepository) DeleteSharedDomainArgsForCall(i int) string

func (*FakeDomainRepository) DeleteSharedDomainCallCount

func (fake *FakeDomainRepository) DeleteSharedDomainCallCount() int

func (*FakeDomainRepository) DeleteSharedDomainReturns

func (fake *FakeDomainRepository) DeleteSharedDomainReturns(result1 error)

func (*FakeDomainRepository) FindByNameInOrg

func (fake *FakeDomainRepository) FindByNameInOrg(name string, owningOrgGuid string) (domain models.DomainFields, apiErr error)

func (*FakeDomainRepository) FindByNameInOrgArgsForCall

func (fake *FakeDomainRepository) FindByNameInOrgArgsForCall(i int) (string, string)

func (*FakeDomainRepository) FindByNameInOrgCallCount

func (fake *FakeDomainRepository) FindByNameInOrgCallCount() int

func (*FakeDomainRepository) FindByNameInOrgReturns

func (fake *FakeDomainRepository) FindByNameInOrgReturns(result1 models.DomainFields, result2 error)

func (*FakeDomainRepository) FindPrivateByName

func (fake *FakeDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)

func (*FakeDomainRepository) FindPrivateByNameArgsForCall

func (fake *FakeDomainRepository) FindPrivateByNameArgsForCall(i int) string

func (*FakeDomainRepository) FindPrivateByNameCallCount

func (fake *FakeDomainRepository) FindPrivateByNameCallCount() int

func (*FakeDomainRepository) FindPrivateByNameReturns

func (fake *FakeDomainRepository) FindPrivateByNameReturns(result1 models.DomainFields, result2 error)

func (*FakeDomainRepository) FindSharedByName

func (fake *FakeDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)

func (*FakeDomainRepository) FindSharedByNameArgsForCall

func (fake *FakeDomainRepository) FindSharedByNameArgsForCall(i int) string

func (*FakeDomainRepository) FindSharedByNameCallCount

func (fake *FakeDomainRepository) FindSharedByNameCallCount() int

func (*FakeDomainRepository) FindSharedByNameReturns

func (fake *FakeDomainRepository) FindSharedByNameReturns(result1 models.DomainFields, result2 error)

func (*FakeDomainRepository) FirstOrDefault

func (fake *FakeDomainRepository) FirstOrDefault(orgGuid string, name *string) (domain models.DomainFields, error error)

func (*FakeDomainRepository) FirstOrDefaultArgsForCall

func (fake *FakeDomainRepository) FirstOrDefaultArgsForCall(i int) (string, *string)

func (*FakeDomainRepository) FirstOrDefaultCallCount

func (fake *FakeDomainRepository) FirstOrDefaultCallCount() int

func (*FakeDomainRepository) FirstOrDefaultReturns

func (fake *FakeDomainRepository) FirstOrDefaultReturns(result1 models.DomainFields, result2 error)

func (*FakeDomainRepository) ListDomainsForOrg

func (fake *FakeDomainRepository) ListDomainsForOrg(orgGuid string, cb func(models.DomainFields) bool) error

func (*FakeDomainRepository) ListDomainsForOrgArgsForCall

func (fake *FakeDomainRepository) ListDomainsForOrgArgsForCall(i int) (string, func(models.DomainFields) bool)

func (*FakeDomainRepository) ListDomainsForOrgCallCount

func (fake *FakeDomainRepository) ListDomainsForOrgCallCount() int

func (*FakeDomainRepository) ListDomainsForOrgReturns

func (fake *FakeDomainRepository) ListDomainsForOrgReturns(result1 error)

type FakeEndpointRepository

type FakeEndpointRepository struct {
	UpdateEndpointStub func(endpoint string) (finalEndpoint string, apiErr error)
	// contains filtered or unexported fields
}

func (*FakeEndpointRepository) UpdateEndpoint

func (fake *FakeEndpointRepository) UpdateEndpoint(endpoint string) (finalEndpoint string, apiErr error)

func (*FakeEndpointRepository) UpdateEndpointArgsForCall

func (fake *FakeEndpointRepository) UpdateEndpointArgsForCall(i int) string

func (*FakeEndpointRepository) UpdateEndpointCallCount

func (fake *FakeEndpointRepository) UpdateEndpointCallCount() int

func (*FakeEndpointRepository) UpdateEndpointReturns

func (fake *FakeEndpointRepository) UpdateEndpointReturns(result1 string, result2 error)

type FakeLoggregatorConsumer

type FakeLoggregatorConsumer struct {
	RecentCalledWith struct {
		AppGuid   string
		AuthToken string
	}

	RecentReturns struct {
		Messages []*logmessage.LogMessage
		Err      []error
		// contains filtered or unexported fields
	}

	TailFunc func(appGuid, token string) (<-chan *logmessage.LogMessage, error)

	IsClosed bool

	OnConnectCallback func()
	// contains filtered or unexported fields
}

func NewFakeLoggregatorConsumer

func NewFakeLoggregatorConsumer() *FakeLoggregatorConsumer

func (*FakeLoggregatorConsumer) Close

func (c *FakeLoggregatorConsumer) Close() error

func (*FakeLoggregatorConsumer) Recent

func (c *FakeLoggregatorConsumer) Recent(appGuid string, authToken string) ([]*logmessage.LogMessage, error)

func (*FakeLoggregatorConsumer) SetDebugPrinter

func (c *FakeLoggregatorConsumer) SetDebugPrinter(debugPrinter loggregator_consumer.DebugPrinter)

func (*FakeLoggregatorConsumer) SetOnConnectCallback

func (c *FakeLoggregatorConsumer) SetOnConnectCallback(cb func())

func (*FakeLoggregatorConsumer) Tail

func (c *FakeLoggregatorConsumer) Tail(appGuid string, authToken string) (<-chan *logmessage.LogMessage, error)

func (*FakeLoggregatorConsumer) WaitForClose

func (c *FakeLoggregatorConsumer) WaitForClose()

type FakeLogsRepository

type FakeLogsRepository struct {
	RecentLogsForStub func(appGuid string) ([]*logmessage.LogMessage, error)

	TailLogsForStub func(appGuid string, onConnect func(), onMessage func(*logmessage.LogMessage)) error

	CloseStub func()
	// contains filtered or unexported fields
}

func (*FakeLogsRepository) Close

func (fake *FakeLogsRepository) Close()

func (*FakeLogsRepository) CloseCallCount

func (fake *FakeLogsRepository) CloseCallCount() int

func (*FakeLogsRepository) RecentLogsFor

func (fake *FakeLogsRepository) RecentLogsFor(appGuid string) ([]*logmessage.LogMessage, error)

func (*FakeLogsRepository) RecentLogsForArgsForCall

func (fake *FakeLogsRepository) RecentLogsForArgsForCall(i int) string

func (*FakeLogsRepository) RecentLogsForCallCount

func (fake *FakeLogsRepository) RecentLogsForCallCount() int

func (*FakeLogsRepository) RecentLogsForReturns

func (fake *FakeLogsRepository) RecentLogsForReturns(result1 []*logmessage.LogMessage, result2 error)

func (*FakeLogsRepository) TailLogsFor

func (fake *FakeLogsRepository) TailLogsFor(appGuid string, onConnect func(), onMessage func(*logmessage.LogMessage)) error

func (*FakeLogsRepository) TailLogsForArgsForCall

func (fake *FakeLogsRepository) TailLogsForArgsForCall(i int) (string, func(), func(*logmessage.LogMessage))

func (*FakeLogsRepository) TailLogsForCallCount

func (fake *FakeLogsRepository) TailLogsForCallCount() int

func (*FakeLogsRepository) TailLogsForReturns

func (fake *FakeLogsRepository) TailLogsForReturns(result1 error)

type FakeLogsRepositoryWithTimeout

type FakeLogsRepositoryWithTimeout struct{}

func (*FakeLogsRepositoryWithTimeout) Close

func (fake *FakeLogsRepositoryWithTimeout) Close()

func (*FakeLogsRepositoryWithTimeout) RecentLogsFor

func (fake *FakeLogsRepositoryWithTimeout) RecentLogsFor(appGuid string) ([]*logmessage.LogMessage, error)

func (*FakeLogsRepositoryWithTimeout) TailLogsFor

func (fake *FakeLogsRepositoryWithTimeout) TailLogsFor(appGuid string, onConnect func(), onMessage func(*logmessage.LogMessage)) error

type FakePasswordRepo

type FakePasswordRepo struct {
	Score          string
	ScoredPassword string

	UpdateUnauthorized bool
	UpdateNewPassword  string
	UpdateOldPassword  string
}

func (*FakePasswordRepo) UpdatePassword

func (repo *FakePasswordRepo) UpdatePassword(old string, new string) (apiErr error)

type FakeRouteRepository

type FakeRouteRepository struct {
	ListRoutesStub func(cb func(models.Route) bool) (apiErr error)

	ListAllRoutesStub func(cb func(models.Route) bool) (apiErr error)

	FindStub func(host string, domain models.DomainFields, path string) (route models.Route, apiErr error)

	CreateStub func(host string, domain models.DomainFields, path string) (createdRoute models.Route, apiErr error)

	CheckIfExistsStub func(host string, domain models.DomainFields, path string) (found bool, apiErr error)

	CreateInSpaceStub func(host, path, domainGuid, spaceGuid string) (createdRoute models.Route, apiErr error)

	BindStub func(routeGuid, appGuid string) (apiErr error)

	UnbindStub func(routeGuid, appGuid string) (apiErr error)

	DeleteStub func(routeGuid string) (apiErr error)
	// contains filtered or unexported fields
}

func (*FakeRouteRepository) Bind

func (fake *FakeRouteRepository) Bind(routeGuid string, appGuid string) (apiErr error)

func (*FakeRouteRepository) BindArgsForCall

func (fake *FakeRouteRepository) BindArgsForCall(i int) (string, string)

func (*FakeRouteRepository) BindCallCount

func (fake *FakeRouteRepository) BindCallCount() int

func (*FakeRouteRepository) BindReturns

func (fake *FakeRouteRepository) BindReturns(result1 error)

func (*FakeRouteRepository) CheckIfExists

func (fake *FakeRouteRepository) CheckIfExists(host string, domain models.DomainFields, path string) (found bool, apiErr error)

func (*FakeRouteRepository) CheckIfExistsArgsForCall

func (fake *FakeRouteRepository) CheckIfExistsArgsForCall(i int) (string, models.DomainFields, string)

func (*FakeRouteRepository) CheckIfExistsCallCount

func (fake *FakeRouteRepository) CheckIfExistsCallCount() int

func (*FakeRouteRepository) CheckIfExistsReturns

func (fake *FakeRouteRepository) CheckIfExistsReturns(result1 bool, result2 error)

func (*FakeRouteRepository) Create

func (fake *FakeRouteRepository) Create(host string, domain models.DomainFields, path string) (createdRoute models.Route, apiErr error)

func (*FakeRouteRepository) CreateArgsForCall

func (fake *FakeRouteRepository) CreateArgsForCall(i int) (string, models.DomainFields, string)

func (*FakeRouteRepository) CreateCallCount

func (fake *FakeRouteRepository) CreateCallCount() int

func (*FakeRouteRepository) CreateInSpace

func (fake *FakeRouteRepository) CreateInSpace(host string, path string, domainGuid string, spaceGuid string) (createdRoute models.Route, apiErr error)

func (*FakeRouteRepository) CreateInSpaceArgsForCall

func (fake *FakeRouteRepository) CreateInSpaceArgsForCall(i int) (string, string, string, string)

func (*FakeRouteRepository) CreateInSpaceCallCount

func (fake *FakeRouteRepository) CreateInSpaceCallCount() int

func (*FakeRouteRepository) CreateInSpaceReturns

func (fake *FakeRouteRepository) CreateInSpaceReturns(result1 models.Route, result2 error)

func (*FakeRouteRepository) CreateReturns

func (fake *FakeRouteRepository) CreateReturns(result1 models.Route, result2 error)

func (*FakeRouteRepository) Delete

func (fake *FakeRouteRepository) Delete(routeGuid string) (apiErr error)

func (*FakeRouteRepository) DeleteArgsForCall

func (fake *FakeRouteRepository) DeleteArgsForCall(i int) string

func (*FakeRouteRepository) DeleteCallCount

func (fake *FakeRouteRepository) DeleteCallCount() int

func (*FakeRouteRepository) DeleteReturns

func (fake *FakeRouteRepository) DeleteReturns(result1 error)

func (*FakeRouteRepository) Find

func (fake *FakeRouteRepository) Find(host string, domain models.DomainFields, path string) (route models.Route, apiErr error)

func (*FakeRouteRepository) FindArgsForCall

func (fake *FakeRouteRepository) FindArgsForCall(i int) (string, models.DomainFields, string)

func (*FakeRouteRepository) FindCallCount

func (fake *FakeRouteRepository) FindCallCount() int

func (*FakeRouteRepository) FindReturns

func (fake *FakeRouteRepository) FindReturns(result1 models.Route, result2 error)

func (*FakeRouteRepository) ListAllRoutes

func (fake *FakeRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)

func (*FakeRouteRepository) ListAllRoutesArgsForCall

func (fake *FakeRouteRepository) ListAllRoutesArgsForCall(i int) func(models.Route) bool

func (*FakeRouteRepository) ListAllRoutesCallCount

func (fake *FakeRouteRepository) ListAllRoutesCallCount() int

func (*FakeRouteRepository) ListAllRoutesReturns

func (fake *FakeRouteRepository) ListAllRoutesReturns(result1 error)

func (*FakeRouteRepository) ListRoutes

func (fake *FakeRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)

func (*FakeRouteRepository) ListRoutesArgsForCall

func (fake *FakeRouteRepository) ListRoutesArgsForCall(i int) func(models.Route) bool

func (*FakeRouteRepository) ListRoutesCallCount

func (fake *FakeRouteRepository) ListRoutesCallCount() int

func (*FakeRouteRepository) ListRoutesReturns

func (fake *FakeRouteRepository) ListRoutesReturns(result1 error)

func (*FakeRouteRepository) Unbind

func (fake *FakeRouteRepository) Unbind(routeGuid string, appGuid string) (apiErr error)

func (*FakeRouteRepository) UnbindArgsForCall

func (fake *FakeRouteRepository) UnbindArgsForCall(i int) (string, string)

func (*FakeRouteRepository) UnbindCallCount

func (fake *FakeRouteRepository) UnbindCallCount() int

func (*FakeRouteRepository) UnbindReturns

func (fake *FakeRouteRepository) UnbindReturns(result1 error)

type FakeRouteServiceBindingRepository

type FakeRouteServiceBindingRepository struct {
	BindStub func(instanceGuid, routeGuid string, userProvided bool, parameters string) error

	UnbindStub func(instanceGuid, routeGuid string, userProvided bool) error
	// contains filtered or unexported fields
}

func (*FakeRouteServiceBindingRepository) Bind

func (fake *FakeRouteServiceBindingRepository) Bind(instanceGuid string, routeGuid string, userProvided bool, parameters string) error

func (*FakeRouteServiceBindingRepository) BindArgsForCall

func (fake *FakeRouteServiceBindingRepository) BindArgsForCall(i int) (string, string, bool, string)

func (*FakeRouteServiceBindingRepository) BindCallCount

func (fake *FakeRouteServiceBindingRepository) BindCallCount() int

func (*FakeRouteServiceBindingRepository) BindReturns

func (fake *FakeRouteServiceBindingRepository) BindReturns(result1 error)

func (*FakeRouteServiceBindingRepository) Unbind

func (fake *FakeRouteServiceBindingRepository) Unbind(instanceGuid string, routeGuid string, userProvided bool) error

func (*FakeRouteServiceBindingRepository) UnbindArgsForCall

func (fake *FakeRouteServiceBindingRepository) UnbindArgsForCall(i int) (string, string, bool)

func (*FakeRouteServiceBindingRepository) UnbindCallCount

func (fake *FakeRouteServiceBindingRepository) UnbindCallCount() int

func (*FakeRouteServiceBindingRepository) UnbindReturns

func (fake *FakeRouteServiceBindingRepository) UnbindReturns(result1 error)

type FakeRoutingApiRepository

type FakeRoutingApiRepository struct {
	ListRouterGroupsStub func(cb func(models.RouterGroup) bool) (apiErr error)
	// contains filtered or unexported fields
}

func (*FakeRoutingApiRepository) ListRouterGroups

func (fake *FakeRoutingApiRepository) ListRouterGroups(cb func(models.RouterGroup) bool) (apiErr error)

func (*FakeRoutingApiRepository) ListRouterGroupsArgsForCall

func (fake *FakeRoutingApiRepository) ListRouterGroupsArgsForCall(i int) func(models.RouterGroup) bool

func (*FakeRoutingApiRepository) ListRouterGroupsCallCount

func (fake *FakeRoutingApiRepository) ListRouterGroupsCallCount() int

func (*FakeRoutingApiRepository) ListRouterGroupsReturns

func (fake *FakeRoutingApiRepository) ListRouterGroupsReturns(result1 error)

type FakeServiceBindingRepo

type FakeServiceBindingRepo struct {
	CreateServiceInstanceGuid string
	CreateApplicationGuid     string
	CreateErrorCode           string
	CreateParams              map[string]interface{}

	DeleteServiceInstance models.ServiceInstance
	DeleteApplicationGuid string
	DeleteBindingNotFound bool
	CreateNonHttpErrCode  string
}

func (*FakeServiceBindingRepo) Create

func (repo *FakeServiceBindingRepo) Create(instanceGuid, appGuid string, paramsMap map[string]interface{}) (apiErr error)

func (*FakeServiceBindingRepo) Delete

func (repo *FakeServiceBindingRepo) Delete(instance models.ServiceInstance, appGuid string) (found bool, apiErr error)

type FakeServiceBrokerRepository

type FakeServiceBrokerRepository struct {
	ListServiceBrokersStub func(callback func(models.ServiceBroker) bool) error

	FindByNameStub func(name string) (serviceBroker models.ServiceBroker, apiErr error)

	FindByGuidStub func(guid string) (serviceBroker models.ServiceBroker, apiErr error)

	CreateStub func(name, url, username, password, spaceGUID string) (apiErr error)

	UpdateStub func(serviceBroker models.ServiceBroker) (apiErr error)

	RenameStub func(guid, name string) (apiErr error)

	DeleteStub func(guid string) (apiErr error)
	// contains filtered or unexported fields
}

func (*FakeServiceBrokerRepository) Create

func (fake *FakeServiceBrokerRepository) Create(name string, url string, username string, password string, spaceGUID string) (apiErr error)

func (*FakeServiceBrokerRepository) CreateArgsForCall

func (fake *FakeServiceBrokerRepository) CreateArgsForCall(i int) (string, string, string, string, string)

func (*FakeServiceBrokerRepository) CreateCallCount

func (fake *FakeServiceBrokerRepository) CreateCallCount() int

func (*FakeServiceBrokerRepository) CreateReturns

func (fake *FakeServiceBrokerRepository) CreateReturns(result1 error)

func (*FakeServiceBrokerRepository) Delete

func (fake *FakeServiceBrokerRepository) Delete(guid string) (apiErr error)

func (*FakeServiceBrokerRepository) DeleteArgsForCall

func (fake *FakeServiceBrokerRepository) DeleteArgsForCall(i int) string

func (*FakeServiceBrokerRepository) DeleteCallCount

func (fake *FakeServiceBrokerRepository) DeleteCallCount() int

func (*FakeServiceBrokerRepository) DeleteReturns

func (fake *FakeServiceBrokerRepository) DeleteReturns(result1 error)

func (*FakeServiceBrokerRepository) FindByGuid

func (fake *FakeServiceBrokerRepository) FindByGuid(guid string) (serviceBroker models.ServiceBroker, apiErr error)

func (*FakeServiceBrokerRepository) FindByGuidArgsForCall

func (fake *FakeServiceBrokerRepository) FindByGuidArgsForCall(i int) string

func (*FakeServiceBrokerRepository) FindByGuidCallCount

func (fake *FakeServiceBrokerRepository) FindByGuidCallCount() int

func (*FakeServiceBrokerRepository) FindByGuidReturns

func (fake *FakeServiceBrokerRepository) FindByGuidReturns(result1 models.ServiceBroker, result2 error)

func (*FakeServiceBrokerRepository) FindByName

func (fake *FakeServiceBrokerRepository) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)

func (*FakeServiceBrokerRepository) FindByNameArgsForCall

func (fake *FakeServiceBrokerRepository) FindByNameArgsForCall(i int) string

func (*FakeServiceBrokerRepository) FindByNameCallCount

func (fake *FakeServiceBrokerRepository) FindByNameCallCount() int

func (*FakeServiceBrokerRepository) FindByNameReturns

func (fake *FakeServiceBrokerRepository) FindByNameReturns(result1 models.ServiceBroker, result2 error)

func (*FakeServiceBrokerRepository) ListServiceBrokers

func (fake *FakeServiceBrokerRepository) ListServiceBrokers(callback func(models.ServiceBroker) bool) error

func (*FakeServiceBrokerRepository) ListServiceBrokersArgsForCall

func (fake *FakeServiceBrokerRepository) ListServiceBrokersArgsForCall(i int) func(models.ServiceBroker) bool

func (*FakeServiceBrokerRepository) ListServiceBrokersCallCount

func (fake *FakeServiceBrokerRepository) ListServiceBrokersCallCount() int

func (*FakeServiceBrokerRepository) ListServiceBrokersReturns

func (fake *FakeServiceBrokerRepository) ListServiceBrokersReturns(result1 error)

func (*FakeServiceBrokerRepository) Rename

func (fake *FakeServiceBrokerRepository) Rename(guid string, name string) (apiErr error)

func (*FakeServiceBrokerRepository) RenameArgsForCall

func (fake *FakeServiceBrokerRepository) RenameArgsForCall(i int) (string, string)

func (*FakeServiceBrokerRepository) RenameCallCount

func (fake *FakeServiceBrokerRepository) RenameCallCount() int

func (*FakeServiceBrokerRepository) RenameReturns

func (fake *FakeServiceBrokerRepository) RenameReturns(result1 error)

func (*FakeServiceBrokerRepository) Update

func (fake *FakeServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error)

func (*FakeServiceBrokerRepository) UpdateArgsForCall

func (fake *FakeServiceBrokerRepository) UpdateArgsForCall(i int) models.ServiceBroker

func (*FakeServiceBrokerRepository) UpdateCallCount

func (fake *FakeServiceBrokerRepository) UpdateCallCount() int

func (*FakeServiceBrokerRepository) UpdateReturns

func (fake *FakeServiceBrokerRepository) UpdateReturns(result1 error)

type FakeServiceKeyRepo

type FakeServiceKeyRepo struct {
	CreateServiceKeyMethod CreateServiceKeyType
	ListServiceKeysMethod  ListServiceKeysType
	GetServiceKeyMethod    GetServiceKeyType
	DeleteServiceKeyMethod DeleteServiceKeyType
}

func NewFakeServiceKeyRepo

func NewFakeServiceKeyRepo() *FakeServiceKeyRepo

func (*FakeServiceKeyRepo) CreateServiceKey

func (f *FakeServiceKeyRepo) CreateServiceKey(instanceGuid string, serviceKeyName string, params map[string]interface{}) error

func (*FakeServiceKeyRepo) DeleteServiceKey

func (f *FakeServiceKeyRepo) DeleteServiceKey(serviceKeyGuid string) error

func (*FakeServiceKeyRepo) GetServiceKey

func (f *FakeServiceKeyRepo) GetServiceKey(instanceGuid string, serviceKeyName string) (models.ServiceKey, error)

func (*FakeServiceKeyRepo) ListServiceKeys

func (f *FakeServiceKeyRepo) ListServiceKeys(instanceGuid string) ([]models.ServiceKey, error)

type FakeServicePlanRepo

type FakeServicePlanRepo struct {
	SearchReturns map[string][]models.ServicePlanFields
	SearchErr     error

	UpdateStub func(models.ServicePlanFields, string, bool) error

	ListPlansFromManyServicesReturns []models.ServicePlanFields
	ListPlansFromManyServicesError   error
	// contains filtered or unexported fields
}

func (*FakeServicePlanRepo) ListPlansFromManyServices

func (fake *FakeServicePlanRepo) ListPlansFromManyServices(serviceGuids []string) (plans []models.ServicePlanFields, err error)

func (*FakeServicePlanRepo) Search

func (fake *FakeServicePlanRepo) Search(queryParams map[string]string) ([]models.ServicePlanFields, error)

func (*FakeServicePlanRepo) Update

func (fake *FakeServicePlanRepo) Update(arg1 models.ServicePlanFields, arg2 string, arg3 bool) error

func (*FakeServicePlanRepo) UpdateArgsForCall

func (fake *FakeServicePlanRepo) UpdateArgsForCall(i int) (models.ServicePlanFields, string, bool)

func (*FakeServicePlanRepo) UpdateCallCount

func (fake *FakeServicePlanRepo) UpdateCallCount() int

func (*FakeServicePlanRepo) UpdateReturns

func (fake *FakeServicePlanRepo) UpdateReturns(result1 error)

type FakeServicePlanVisibilityRepository

type FakeServicePlanVisibilityRepository struct {
	CreateStub func(string, string) error

	ListStub func() ([]models.ServicePlanVisibilityFields, error)

	DeleteStub func(string) error

	SearchStub func(map[string]string) ([]models.ServicePlanVisibilityFields, error)
	// contains filtered or unexported fields
}

func (*FakeServicePlanVisibilityRepository) Create

func (fake *FakeServicePlanVisibilityRepository) Create(arg1 string, arg2 string) error

func (*FakeServicePlanVisibilityRepository) CreateArgsForCall

func (fake *FakeServicePlanVisibilityRepository) CreateArgsForCall(i int) (string, string)

func (*FakeServicePlanVisibilityRepository) CreateCallCount

func (fake *FakeServicePlanVisibilityRepository) CreateCallCount() int

func (*FakeServicePlanVisibilityRepository) CreateReturns

func (fake *FakeServicePlanVisibilityRepository) CreateReturns(result1 error)

func (*FakeServicePlanVisibilityRepository) Delete

func (*FakeServicePlanVisibilityRepository) DeleteArgsForCall

func (fake *FakeServicePlanVisibilityRepository) DeleteArgsForCall(i int) string

func (*FakeServicePlanVisibilityRepository) DeleteCallCount

func (fake *FakeServicePlanVisibilityRepository) DeleteCallCount() int

func (*FakeServicePlanVisibilityRepository) DeleteReturns

func (fake *FakeServicePlanVisibilityRepository) DeleteReturns(result1 error)

func (*FakeServicePlanVisibilityRepository) List

func (*FakeServicePlanVisibilityRepository) ListCallCount

func (fake *FakeServicePlanVisibilityRepository) ListCallCount() int

func (*FakeServicePlanVisibilityRepository) ListReturns

func (fake *FakeServicePlanVisibilityRepository) ListReturns(result1 []models.ServicePlanVisibilityFields, result2 error)

func (*FakeServicePlanVisibilityRepository) Search

func (*FakeServicePlanVisibilityRepository) SearchArgsForCall

func (fake *FakeServicePlanVisibilityRepository) SearchArgsForCall(i int) map[string]string

func (*FakeServicePlanVisibilityRepository) SearchCallCount

func (fake *FakeServicePlanVisibilityRepository) SearchCallCount() int

func (*FakeServicePlanVisibilityRepository) SearchReturns

func (fake *FakeServicePlanVisibilityRepository) SearchReturns(result1 []models.ServicePlanVisibilityFields, result2 error)

type FakeServiceRepository

type FakeServiceRepository struct {
	PurgeServiceOfferingStub func(offering models.ServiceOffering) error

	GetServiceOfferingByGuidStub func(serviceGuid string) (offering models.ServiceOffering, apiErr error)

	FindServiceOfferingsByLabelStub func(name string) (offering models.ServiceOfferings, apiErr error)

	FindServiceOfferingByLabelAndProviderStub func(name, provider string) (offering models.ServiceOffering, apiErr error)

	FindServiceOfferingsForSpaceByLabelStub func(spaceGuid, name string) (offering models.ServiceOfferings, apiErr error)

	GetAllServiceOfferingsStub func() (offerings models.ServiceOfferings, apiErr error)

	GetServiceOfferingsForSpaceStub func(spaceGuid string) (offerings models.ServiceOfferings, apiErr error)

	FindInstanceByNameStub func(name string) (instance models.ServiceInstance, apiErr error)

	PurgeServiceInstanceStub func(instance models.ServiceInstance) error

	CreateServiceInstanceStub func(name, planGuid string, params map[string]interface{}, tags []string) (apiErr error)

	UpdateServiceInstanceStub func(instanceGuid, planGuid string, params map[string]interface{}, tags []string) (apiErr error)

	RenameServiceStub func(instance models.ServiceInstance, newName string) (apiErr error)

	DeleteServiceStub func(instance models.ServiceInstance) (apiErr error)

	FindServicePlanByDescriptionStub func(planDescription resources.ServicePlanDescription) (planGuid string, apiErr error)

	ListServicesFromBrokerStub func(brokerGuid string) (services []models.ServiceOffering, err error)

	ListServicesFromManyBrokersStub func(brokerGuids []string) (services []models.ServiceOffering, err error)

	GetServiceInstanceCountForServicePlanStub func(v1PlanGuid string) (count int, apiErr error)

	MigrateServicePlanFromV1ToV2Stub func(v1PlanGuid, v2PlanGuid string) (changedCount int, apiErr error)
	// contains filtered or unexported fields
}

func (*FakeServiceRepository) CreateServiceInstance

func (fake *FakeServiceRepository) CreateServiceInstance(name string, planGuid string, params map[string]interface{}, tags []string) (apiErr error)

func (*FakeServiceRepository) CreateServiceInstanceArgsForCall

func (fake *FakeServiceRepository) CreateServiceInstanceArgsForCall(i int) (string, string, map[string]interface{}, []string)

func (*FakeServiceRepository) CreateServiceInstanceCallCount

func (fake *FakeServiceRepository) CreateServiceInstanceCallCount() int

func (*FakeServiceRepository) CreateServiceInstanceReturns

func (fake *FakeServiceRepository) CreateServiceInstanceReturns(result1 error)

func (*FakeServiceRepository) DeleteService

func (fake *FakeServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error)

func (*FakeServiceRepository) DeleteServiceArgsForCall

func (fake *FakeServiceRepository) DeleteServiceArgsForCall(i int) models.ServiceInstance

func (*FakeServiceRepository) DeleteServiceCallCount

func (fake *FakeServiceRepository) DeleteServiceCallCount() int

func (*FakeServiceRepository) DeleteServiceReturns

func (fake *FakeServiceRepository) DeleteServiceReturns(result1 error)

func (*FakeServiceRepository) FindInstanceByName

func (fake *FakeServiceRepository) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)

func (*FakeServiceRepository) FindInstanceByNameArgsForCall

func (fake *FakeServiceRepository) FindInstanceByNameArgsForCall(i int) string

func (*FakeServiceRepository) FindInstanceByNameCallCount

func (fake *FakeServiceRepository) FindInstanceByNameCallCount() int

func (*FakeServiceRepository) FindInstanceByNameReturns

func (fake *FakeServiceRepository) FindInstanceByNameReturns(result1 models.ServiceInstance, result2 error)

func (*FakeServiceRepository) FindServiceOfferingByLabelAndProvider

func (fake *FakeServiceRepository) FindServiceOfferingByLabelAndProvider(name string, provider string) (offering models.ServiceOffering, apiErr error)

func (*FakeServiceRepository) FindServiceOfferingByLabelAndProviderArgsForCall

func (fake *FakeServiceRepository) FindServiceOfferingByLabelAndProviderArgsForCall(i int) (string, string)

func (*FakeServiceRepository) FindServiceOfferingByLabelAndProviderCallCount

func (fake *FakeServiceRepository) FindServiceOfferingByLabelAndProviderCallCount() int

func (*FakeServiceRepository) FindServiceOfferingByLabelAndProviderReturns

func (fake *FakeServiceRepository) FindServiceOfferingByLabelAndProviderReturns(result1 models.ServiceOffering, result2 error)

func (*FakeServiceRepository) FindServiceOfferingsByLabel

func (fake *FakeServiceRepository) FindServiceOfferingsByLabel(name string) (offering models.ServiceOfferings, apiErr error)

func (*FakeServiceRepository) FindServiceOfferingsByLabelArgsForCall

func (fake *FakeServiceRepository) FindServiceOfferingsByLabelArgsForCall(i int) string

func (*FakeServiceRepository) FindServiceOfferingsByLabelCallCount

func (fake *FakeServiceRepository) FindServiceOfferingsByLabelCallCount() int

func (*FakeServiceRepository) FindServiceOfferingsByLabelReturns

func (fake *FakeServiceRepository) FindServiceOfferingsByLabelReturns(result1 models.ServiceOfferings, result2 error)

func (*FakeServiceRepository) FindServiceOfferingsForSpaceByLabel

func (fake *FakeServiceRepository) FindServiceOfferingsForSpaceByLabel(spaceGuid string, name string) (offering models.ServiceOfferings, apiErr error)

func (*FakeServiceRepository) FindServiceOfferingsForSpaceByLabelArgsForCall

func (fake *FakeServiceRepository) FindServiceOfferingsForSpaceByLabelArgsForCall(i int) (string, string)

func (*FakeServiceRepository) FindServiceOfferingsForSpaceByLabelCallCount

func (fake *FakeServiceRepository) FindServiceOfferingsForSpaceByLabelCallCount() int

func (*FakeServiceRepository) FindServiceOfferingsForSpaceByLabelReturns

func (fake *FakeServiceRepository) FindServiceOfferingsForSpaceByLabelReturns(result1 models.ServiceOfferings, result2 error)

func (*FakeServiceRepository) FindServicePlanByDescription

func (fake *FakeServiceRepository) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGuid string, apiErr error)

func (*FakeServiceRepository) FindServicePlanByDescriptionArgsForCall

func (fake *FakeServiceRepository) FindServicePlanByDescriptionArgsForCall(i int) resources.ServicePlanDescription

func (*FakeServiceRepository) FindServicePlanByDescriptionCallCount

func (fake *FakeServiceRepository) FindServicePlanByDescriptionCallCount() int

func (*FakeServiceRepository) FindServicePlanByDescriptionReturns

func (fake *FakeServiceRepository) FindServicePlanByDescriptionReturns(result1 string, result2 error)

func (*FakeServiceRepository) GetAllServiceOfferings

func (fake *FakeServiceRepository) GetAllServiceOfferings() (offerings models.ServiceOfferings, apiErr error)

func (*FakeServiceRepository) GetAllServiceOfferingsCallCount

func (fake *FakeServiceRepository) GetAllServiceOfferingsCallCount() int

func (*FakeServiceRepository) GetAllServiceOfferingsReturns

func (fake *FakeServiceRepository) GetAllServiceOfferingsReturns(result1 models.ServiceOfferings, result2 error)

func (*FakeServiceRepository) GetServiceInstanceCountForServicePlan

func (fake *FakeServiceRepository) GetServiceInstanceCountForServicePlan(v1PlanGuid string) (count int, apiErr error)

func (*FakeServiceRepository) GetServiceInstanceCountForServicePlanArgsForCall

func (fake *FakeServiceRepository) GetServiceInstanceCountForServicePlanArgsForCall(i int) string

func (*FakeServiceRepository) GetServiceInstanceCountForServicePlanCallCount

func (fake *FakeServiceRepository) GetServiceInstanceCountForServicePlanCallCount() int

func (*FakeServiceRepository) GetServiceInstanceCountForServicePlanReturns

func (fake *FakeServiceRepository) GetServiceInstanceCountForServicePlanReturns(result1 int, result2 error)

func (*FakeServiceRepository) GetServiceOfferingByGuid

func (fake *FakeServiceRepository) GetServiceOfferingByGuid(serviceGuid string) (offering models.ServiceOffering, apiErr error)

func (*FakeServiceRepository) GetServiceOfferingByGuidArgsForCall

func (fake *FakeServiceRepository) GetServiceOfferingByGuidArgsForCall(i int) string

func (*FakeServiceRepository) GetServiceOfferingByGuidCallCount

func (fake *FakeServiceRepository) GetServiceOfferingByGuidCallCount() int

func (*FakeServiceRepository) GetServiceOfferingByGuidReturns

func (fake *FakeServiceRepository) GetServiceOfferingByGuidReturns(result1 models.ServiceOffering, result2 error)

func (*FakeServiceRepository) GetServiceOfferingsForSpace

func (fake *FakeServiceRepository) GetServiceOfferingsForSpace(spaceGuid string) (offerings models.ServiceOfferings, apiErr error)

func (*FakeServiceRepository) GetServiceOfferingsForSpaceArgsForCall

func (fake *FakeServiceRepository) GetServiceOfferingsForSpaceArgsForCall(i int) string

func (*FakeServiceRepository) GetServiceOfferingsForSpaceCallCount

func (fake *FakeServiceRepository) GetServiceOfferingsForSpaceCallCount() int

func (*FakeServiceRepository) GetServiceOfferingsForSpaceReturns

func (fake *FakeServiceRepository) GetServiceOfferingsForSpaceReturns(result1 models.ServiceOfferings, result2 error)

func (*FakeServiceRepository) ListServicesFromBroker

func (fake *FakeServiceRepository) ListServicesFromBroker(brokerGuid string) (services []models.ServiceOffering, err error)

func (*FakeServiceRepository) ListServicesFromBrokerArgsForCall

func (fake *FakeServiceRepository) ListServicesFromBrokerArgsForCall(i int) string

func (*FakeServiceRepository) ListServicesFromBrokerCallCount

func (fake *FakeServiceRepository) ListServicesFromBrokerCallCount() int

func (*FakeServiceRepository) ListServicesFromBrokerReturns

func (fake *FakeServiceRepository) ListServicesFromBrokerReturns(result1 []models.ServiceOffering, result2 error)

func (*FakeServiceRepository) ListServicesFromManyBrokers

func (fake *FakeServiceRepository) ListServicesFromManyBrokers(brokerGuids []string) (services []models.ServiceOffering, err error)

func (*FakeServiceRepository) ListServicesFromManyBrokersArgsForCall

func (fake *FakeServiceRepository) ListServicesFromManyBrokersArgsForCall(i int) []string

func (*FakeServiceRepository) ListServicesFromManyBrokersCallCount

func (fake *FakeServiceRepository) ListServicesFromManyBrokersCallCount() int

func (*FakeServiceRepository) ListServicesFromManyBrokersReturns

func (fake *FakeServiceRepository) ListServicesFromManyBrokersReturns(result1 []models.ServiceOffering, result2 error)

func (*FakeServiceRepository) MigrateServicePlanFromV1ToV2

func (fake *FakeServiceRepository) MigrateServicePlanFromV1ToV2(v1PlanGuid string, v2PlanGuid string) (changedCount int, apiErr error)

func (*FakeServiceRepository) MigrateServicePlanFromV1ToV2ArgsForCall

func (fake *FakeServiceRepository) MigrateServicePlanFromV1ToV2ArgsForCall(i int) (string, string)

func (*FakeServiceRepository) MigrateServicePlanFromV1ToV2CallCount

func (fake *FakeServiceRepository) MigrateServicePlanFromV1ToV2CallCount() int

func (*FakeServiceRepository) MigrateServicePlanFromV1ToV2Returns

func (fake *FakeServiceRepository) MigrateServicePlanFromV1ToV2Returns(result1 int, result2 error)

func (*FakeServiceRepository) PurgeServiceInstance

func (fake *FakeServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error

func (*FakeServiceRepository) PurgeServiceInstanceArgsForCall

func (fake *FakeServiceRepository) PurgeServiceInstanceArgsForCall(i int) models.ServiceInstance

func (*FakeServiceRepository) PurgeServiceInstanceCallCount

func (fake *FakeServiceRepository) PurgeServiceInstanceCallCount() int

func (*FakeServiceRepository) PurgeServiceInstanceReturns

func (fake *FakeServiceRepository) PurgeServiceInstanceReturns(result1 error)

func (*FakeServiceRepository) PurgeServiceOffering

func (fake *FakeServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error

func (*FakeServiceRepository) PurgeServiceOfferingArgsForCall

func (fake *FakeServiceRepository) PurgeServiceOfferingArgsForCall(i int) models.ServiceOffering

func (*FakeServiceRepository) PurgeServiceOfferingCallCount

func (fake *FakeServiceRepository) PurgeServiceOfferingCallCount() int

func (*FakeServiceRepository) PurgeServiceOfferingReturns

func (fake *FakeServiceRepository) PurgeServiceOfferingReturns(result1 error)

func (*FakeServiceRepository) RenameService

func (fake *FakeServiceRepository) RenameService(instance models.ServiceInstance, newName string) (apiErr error)

func (*FakeServiceRepository) RenameServiceArgsForCall

func (fake *FakeServiceRepository) RenameServiceArgsForCall(i int) (models.ServiceInstance, string)

func (*FakeServiceRepository) RenameServiceCallCount

func (fake *FakeServiceRepository) RenameServiceCallCount() int

func (*FakeServiceRepository) RenameServiceReturns

func (fake *FakeServiceRepository) RenameServiceReturns(result1 error)

func (*FakeServiceRepository) UpdateServiceInstance

func (fake *FakeServiceRepository) UpdateServiceInstance(instanceGuid string, planGuid string, params map[string]interface{}, tags []string) (apiErr error)

func (*FakeServiceRepository) UpdateServiceInstanceArgsForCall

func (fake *FakeServiceRepository) UpdateServiceInstanceArgsForCall(i int) (string, string, map[string]interface{}, []string)

func (*FakeServiceRepository) UpdateServiceInstanceCallCount

func (fake *FakeServiceRepository) UpdateServiceInstanceCallCount() int

func (*FakeServiceRepository) UpdateServiceInstanceReturns

func (fake *FakeServiceRepository) UpdateServiceInstanceReturns(result1 error)

type FakeServiceSummaryRepo

type FakeServiceSummaryRepo struct {
	GetSummariesInCurrentSpaceInstances []models.ServiceInstance
}

func (*FakeServiceSummaryRepo) GetSummariesInCurrentSpace

func (repo *FakeServiceSummaryRepo) GetSummariesInCurrentSpace() (instances []models.ServiceInstance, apiErr error)

type FakeSpaceRepository

type FakeSpaceRepository struct {
	ListSpacesStub func(func(models.Space) bool) error

	FindByNameStub func(name string) (space models.Space, apiErr error)

	FindByNameInOrgStub func(name, orgGuid string) (space models.Space, apiErr error)

	CreateStub func(name string, orgGuid string, spaceQuotaGuid string) (space models.Space, apiErr error)

	RenameStub func(spaceGuid, newName string) (apiErr error)

	SetAllowSSHStub func(spaceGuid string, allow bool) (apiErr error)

	DeleteStub func(spaceGuid string) (apiErr error)
	// contains filtered or unexported fields
}

func (*FakeSpaceRepository) Create

func (fake *FakeSpaceRepository) Create(name string, orgGuid string, spaceQuotaGuid string) (space models.Space, apiErr error)

func (*FakeSpaceRepository) CreateArgsForCall

func (fake *FakeSpaceRepository) CreateArgsForCall(i int) (string, string, string)

func (*FakeSpaceRepository) CreateCallCount

func (fake *FakeSpaceRepository) CreateCallCount() int

func (*FakeSpaceRepository) CreateReturns

func (fake *FakeSpaceRepository) CreateReturns(result1 models.Space, result2 error)

func (*FakeSpaceRepository) Delete

func (fake *FakeSpaceRepository) Delete(spaceGuid string) (apiErr error)

func (*FakeSpaceRepository) DeleteArgsForCall

func (fake *FakeSpaceRepository) DeleteArgsForCall(i int) string

func (*FakeSpaceRepository) DeleteCallCount

func (fake *FakeSpaceRepository) DeleteCallCount() int

func (*FakeSpaceRepository) DeleteReturns

func (fake *FakeSpaceRepository) DeleteReturns(result1 error)

func (*FakeSpaceRepository) FindByName

func (fake *FakeSpaceRepository) FindByName(name string) (space models.Space, apiErr error)

func (*FakeSpaceRepository) FindByNameArgsForCall

func (fake *FakeSpaceRepository) FindByNameArgsForCall(i int) string

func (*FakeSpaceRepository) FindByNameCallCount

func (fake *FakeSpaceRepository) FindByNameCallCount() int

func (*FakeSpaceRepository) FindByNameInOrg

func (fake *FakeSpaceRepository) FindByNameInOrg(name string, orgGuid string) (space models.Space, apiErr error)

func (*FakeSpaceRepository) FindByNameInOrgArgsForCall

func (fake *FakeSpaceRepository) FindByNameInOrgArgsForCall(i int) (string, string)

func (*FakeSpaceRepository) FindByNameInOrgCallCount

func (fake *FakeSpaceRepository) FindByNameInOrgCallCount() int

func (*FakeSpaceRepository) FindByNameInOrgReturns

func (fake *FakeSpaceRepository) FindByNameInOrgReturns(result1 models.Space, result2 error)

func (*FakeSpaceRepository) FindByNameReturns

func (fake *FakeSpaceRepository) FindByNameReturns(result1 models.Space, result2 error)

func (*FakeSpaceRepository) ListSpaces

func (fake *FakeSpaceRepository) ListSpaces(arg1 func(models.Space) bool) error

func (*FakeSpaceRepository) ListSpacesArgsForCall

func (fake *FakeSpaceRepository) ListSpacesArgsForCall(i int) func(models.Space) bool

func (*FakeSpaceRepository) ListSpacesCallCount

func (fake *FakeSpaceRepository) ListSpacesCallCount() int

func (*FakeSpaceRepository) ListSpacesReturns

func (fake *FakeSpaceRepository) ListSpacesReturns(result1 error)

func (*FakeSpaceRepository) Rename

func (fake *FakeSpaceRepository) Rename(spaceGuid string, newName string) (apiErr error)

func (*FakeSpaceRepository) RenameArgsForCall

func (fake *FakeSpaceRepository) RenameArgsForCall(i int) (string, string)

func (*FakeSpaceRepository) RenameCallCount

func (fake *FakeSpaceRepository) RenameCallCount() int

func (*FakeSpaceRepository) RenameReturns

func (fake *FakeSpaceRepository) RenameReturns(result1 error)

func (*FakeSpaceRepository) SetAllowSSH

func (fake *FakeSpaceRepository) SetAllowSSH(spaceGuid string, allow bool) (apiErr error)

func (*FakeSpaceRepository) SetAllowSSHArgsForCall

func (fake *FakeSpaceRepository) SetAllowSSHArgsForCall(i int) (string, bool)

func (*FakeSpaceRepository) SetAllowSSHCallCount

func (fake *FakeSpaceRepository) SetAllowSSHCallCount() int

func (*FakeSpaceRepository) SetAllowSSHReturns

func (fake *FakeSpaceRepository) SetAllowSSHReturns(result1 error)

type FakeUserProvidedServiceInstanceRepository

type FakeUserProvidedServiceInstanceRepository struct {
	CreateStub func(name, drainUrl string, routeServiceUrl string, params map[string]interface{}) (apiErr error)

	UpdateStub func(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)

	GetSummariesStub func() (models.UserProvidedServiceSummary, error)
	// contains filtered or unexported fields
}

func (*FakeUserProvidedServiceInstanceRepository) Create

func (fake *FakeUserProvidedServiceInstanceRepository) Create(name string, drainUrl string, routeServiceUrl string, params map[string]interface{}) (apiErr error)

func (*FakeUserProvidedServiceInstanceRepository) CreateArgsForCall

func (fake *FakeUserProvidedServiceInstanceRepository) CreateArgsForCall(i int) (string, string, string, map[string]interface{})

func (*FakeUserProvidedServiceInstanceRepository) CreateCallCount

func (fake *FakeUserProvidedServiceInstanceRepository) CreateCallCount() int

func (*FakeUserProvidedServiceInstanceRepository) CreateReturns

func (fake *FakeUserProvidedServiceInstanceRepository) CreateReturns(result1 error)

func (*FakeUserProvidedServiceInstanceRepository) GetSummaries

func (*FakeUserProvidedServiceInstanceRepository) GetSummariesCallCount

func (fake *FakeUserProvidedServiceInstanceRepository) GetSummariesCallCount() int

func (*FakeUserProvidedServiceInstanceRepository) GetSummariesReturns

func (fake *FakeUserProvidedServiceInstanceRepository) GetSummariesReturns(result1 models.UserProvidedServiceSummary, result2 error)

func (*FakeUserProvidedServiceInstanceRepository) Update

func (fake *FakeUserProvidedServiceInstanceRepository) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)

func (*FakeUserProvidedServiceInstanceRepository) UpdateArgsForCall

func (*FakeUserProvidedServiceInstanceRepository) UpdateCallCount

func (fake *FakeUserProvidedServiceInstanceRepository) UpdateCallCount() int

func (*FakeUserProvidedServiceInstanceRepository) UpdateReturns

func (fake *FakeUserProvidedServiceInstanceRepository) UpdateReturns(result1 error)

type FakeUserRepository

type FakeUserRepository struct {
	FindByUsernameStub func(username string) (user models.UserFields, apiErr error)

	ListUsersInOrgForRoleStub func(orgGuid string, role string) ([]models.UserFields, error)

	ListUsersInOrgForRoleWithNoUAAStub func(orgGuid string, role string) ([]models.UserFields, error)

	ListUsersInSpaceForRoleStub func(spaceGuid string, role string) ([]models.UserFields, error)

	ListUsersInSpaceForRoleWithNoUAAStub func(spaceGuid string, role string) ([]models.UserFields, error)

	CreateStub func(username, password string) (apiErr error)

	DeleteStub func(userGuid string) (apiErr error)

	SetOrgRoleByGuidStub func(userGuid, orgGuid, role string) (apiErr error)

	SetOrgRoleByUsernameStub func(username, orgGuid, role string) (apiErr error)

	UnsetOrgRoleByGuidStub func(userGuid, orgGuid, role string) (apiErr error)

	UnsetOrgRoleByUsernameStub func(username, orgGuid, role string) (apiErr error)

	SetSpaceRoleByGuidStub func(userGuid, spaceGuid, orgGuid, role string) (apiErr error)

	SetSpaceRoleByUsernameStub func(username, spaceGuid, orgGuid, role string) (apiErr error)

	UnsetSpaceRoleByGuidStub func(userGuid, spaceGuid, role string) (apiErr error)

	UnsetSpaceRoleByUsernameStub func(userGuid, spaceGuid, role string) (apiErr error)
	// contains filtered or unexported fields
}

func (*FakeUserRepository) Create

func (fake *FakeUserRepository) Create(username string, password string) (apiErr error)

func (*FakeUserRepository) CreateArgsForCall

func (fake *FakeUserRepository) CreateArgsForCall(i int) (string, string)

func (*FakeUserRepository) CreateCallCount

func (fake *FakeUserRepository) CreateCallCount() int

func (*FakeUserRepository) CreateReturns

func (fake *FakeUserRepository) CreateReturns(result1 error)

func (*FakeUserRepository) Delete

func (fake *FakeUserRepository) Delete(userGuid string) (apiErr error)

func (*FakeUserRepository) DeleteArgsForCall

func (fake *FakeUserRepository) DeleteArgsForCall(i int) string

func (*FakeUserRepository) DeleteCallCount

func (fake *FakeUserRepository) DeleteCallCount() int

func (*FakeUserRepository) DeleteReturns

func (fake *FakeUserRepository) DeleteReturns(result1 error)

func (*FakeUserRepository) FindByUsername

func (fake *FakeUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)

func (*FakeUserRepository) FindByUsernameArgsForCall

func (fake *FakeUserRepository) FindByUsernameArgsForCall(i int) string

func (*FakeUserRepository) FindByUsernameCallCount

func (fake *FakeUserRepository) FindByUsernameCallCount() int

func (*FakeUserRepository) FindByUsernameReturns

func (fake *FakeUserRepository) FindByUsernameReturns(result1 models.UserFields, result2 error)

func (*FakeUserRepository) ListUsersInOrgForRole

func (fake *FakeUserRepository) ListUsersInOrgForRole(orgGuid string, role string) ([]models.UserFields, error)

func (*FakeUserRepository) ListUsersInOrgForRoleArgsForCall

func (fake *FakeUserRepository) ListUsersInOrgForRoleArgsForCall(i int) (string, string)

func (*FakeUserRepository) ListUsersInOrgForRoleCallCount

func (fake *FakeUserRepository) ListUsersInOrgForRoleCallCount() int

func (*FakeUserRepository) ListUsersInOrgForRoleReturns

func (fake *FakeUserRepository) ListUsersInOrgForRoleReturns(result1 []models.UserFields, result2 error)

func (*FakeUserRepository) ListUsersInOrgForRoleWithNoUAA

func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGuid string, role string) ([]models.UserFields, error)

func (*FakeUserRepository) ListUsersInOrgForRoleWithNoUAAArgsForCall

func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAAArgsForCall(i int) (string, string)

func (*FakeUserRepository) ListUsersInOrgForRoleWithNoUAACallCount

func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAACallCount() int

func (*FakeUserRepository) ListUsersInOrgForRoleWithNoUAAReturns

func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAAReturns(result1 []models.UserFields, result2 error)

func (*FakeUserRepository) ListUsersInSpaceForRole

func (fake *FakeUserRepository) ListUsersInSpaceForRole(spaceGuid string, role string) ([]models.UserFields, error)

func (*FakeUserRepository) ListUsersInSpaceForRoleArgsForCall

func (fake *FakeUserRepository) ListUsersInSpaceForRoleArgsForCall(i int) (string, string)

func (*FakeUserRepository) ListUsersInSpaceForRoleCallCount

func (fake *FakeUserRepository) ListUsersInSpaceForRoleCallCount() int

func (*FakeUserRepository) ListUsersInSpaceForRoleReturns

func (fake *FakeUserRepository) ListUsersInSpaceForRoleReturns(result1 []models.UserFields, result2 error)

func (*FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA

func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGuid string, role string) ([]models.UserFields, error)

func (*FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAArgsForCall

func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAArgsForCall(i int) (string, string)

func (*FakeUserRepository) ListUsersInSpaceForRoleWithNoUAACallCount

func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAACallCount() int

func (*FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAReturns

func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAReturns(result1 []models.UserFields, result2 error)

func (*FakeUserRepository) SetOrgRoleByGuid

func (fake *FakeUserRepository) SetOrgRoleByGuid(userGuid string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) SetOrgRoleByGuidArgsForCall

func (fake *FakeUserRepository) SetOrgRoleByGuidArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) SetOrgRoleByGuidCallCount

func (fake *FakeUserRepository) SetOrgRoleByGuidCallCount() int

func (*FakeUserRepository) SetOrgRoleByGuidReturns

func (fake *FakeUserRepository) SetOrgRoleByGuidReturns(result1 error)

func (*FakeUserRepository) SetOrgRoleByUsername

func (fake *FakeUserRepository) SetOrgRoleByUsername(username string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) SetOrgRoleByUsernameArgsForCall

func (fake *FakeUserRepository) SetOrgRoleByUsernameArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) SetOrgRoleByUsernameCallCount

func (fake *FakeUserRepository) SetOrgRoleByUsernameCallCount() int

func (*FakeUserRepository) SetOrgRoleByUsernameReturns

func (fake *FakeUserRepository) SetOrgRoleByUsernameReturns(result1 error)

func (*FakeUserRepository) SetSpaceRoleByGuid

func (fake *FakeUserRepository) SetSpaceRoleByGuid(userGuid string, spaceGuid string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) SetSpaceRoleByGuidArgsForCall

func (fake *FakeUserRepository) SetSpaceRoleByGuidArgsForCall(i int) (string, string, string, string)

func (*FakeUserRepository) SetSpaceRoleByGuidCallCount

func (fake *FakeUserRepository) SetSpaceRoleByGuidCallCount() int

func (*FakeUserRepository) SetSpaceRoleByGuidReturns

func (fake *FakeUserRepository) SetSpaceRoleByGuidReturns(result1 error)

func (*FakeUserRepository) SetSpaceRoleByUsername

func (fake *FakeUserRepository) SetSpaceRoleByUsername(username string, spaceGuid string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) SetSpaceRoleByUsernameArgsForCall

func (fake *FakeUserRepository) SetSpaceRoleByUsernameArgsForCall(i int) (string, string, string, string)

func (*FakeUserRepository) SetSpaceRoleByUsernameCallCount

func (fake *FakeUserRepository) SetSpaceRoleByUsernameCallCount() int

func (*FakeUserRepository) SetSpaceRoleByUsernameReturns

func (fake *FakeUserRepository) SetSpaceRoleByUsernameReturns(result1 error)

func (*FakeUserRepository) UnsetOrgRoleByGuid

func (fake *FakeUserRepository) UnsetOrgRoleByGuid(userGuid string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) UnsetOrgRoleByGuidArgsForCall

func (fake *FakeUserRepository) UnsetOrgRoleByGuidArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) UnsetOrgRoleByGuidCallCount

func (fake *FakeUserRepository) UnsetOrgRoleByGuidCallCount() int

func (*FakeUserRepository) UnsetOrgRoleByGuidReturns

func (fake *FakeUserRepository) UnsetOrgRoleByGuidReturns(result1 error)

func (*FakeUserRepository) UnsetOrgRoleByUsername

func (fake *FakeUserRepository) UnsetOrgRoleByUsername(username string, orgGuid string, role string) (apiErr error)

func (*FakeUserRepository) UnsetOrgRoleByUsernameArgsForCall

func (fake *FakeUserRepository) UnsetOrgRoleByUsernameArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) UnsetOrgRoleByUsernameCallCount

func (fake *FakeUserRepository) UnsetOrgRoleByUsernameCallCount() int

func (*FakeUserRepository) UnsetOrgRoleByUsernameReturns

func (fake *FakeUserRepository) UnsetOrgRoleByUsernameReturns(result1 error)

func (*FakeUserRepository) UnsetSpaceRoleByGuid

func (fake *FakeUserRepository) UnsetSpaceRoleByGuid(userGuid string, spaceGuid string, role string) (apiErr error)

func (*FakeUserRepository) UnsetSpaceRoleByGuidArgsForCall

func (fake *FakeUserRepository) UnsetSpaceRoleByGuidArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) UnsetSpaceRoleByGuidCallCount

func (fake *FakeUserRepository) UnsetSpaceRoleByGuidCallCount() int

func (*FakeUserRepository) UnsetSpaceRoleByGuidReturns

func (fake *FakeUserRepository) UnsetSpaceRoleByGuidReturns(result1 error)

func (*FakeUserRepository) UnsetSpaceRoleByUsername

func (fake *FakeUserRepository) UnsetSpaceRoleByUsername(userGuid string, spaceGuid string, role string) (apiErr error)

func (*FakeUserRepository) UnsetSpaceRoleByUsernameArgsForCall

func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameArgsForCall(i int) (string, string, string)

func (*FakeUserRepository) UnsetSpaceRoleByUsernameCallCount

func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameCallCount() int

func (*FakeUserRepository) UnsetSpaceRoleByUsernameReturns

func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameReturns(result1 error)

type GetServiceKeyType

type GetServiceKeyType struct {
	InstanceGuid string
	KeyName      string

	ServiceKey models.ServiceKey
	Error      error
}

type ListServiceKeysType

type ListServiceKeysType struct {
	InstanceGuid string

	ServiceKeys []models.ServiceKey
	Error       error
}

Jump to

Keyboard shortcuts

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