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
Index ¶
- func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest
- type CreateServiceKeyType
- type DeleteServiceKeyType
- type FakeAppSummaryRepo
- type FakeAuthTokenRepo
- func (repo *FakeAuthTokenRepo) Create(authToken models.ServiceAuthTokenFields) (apiErr error)
- func (repo *FakeAuthTokenRepo) Delete(authToken models.ServiceAuthTokenFields) (apiErr error)
- func (repo *FakeAuthTokenRepo) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)
- func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)
- func (repo *FakeAuthTokenRepo) Update(authToken models.ServiceAuthTokenFields) (apiErr error)
- type FakeAuthenticationRepository
- func (auth *FakeAuthenticationRepository) Authenticate(credentials map[string]string) (apiErr error)
- func (auth *FakeAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]core_config.AuthPrompt, apiErr error)
- func (auth *FakeAuthenticationRepository) RefreshAuthToken() (string, error)
- type FakeBuildpackBitsRepository
- type FakeBuildpackRepository
- func (repo *FakeBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error)
- func (repo *FakeBuildpackRepository) Delete(buildpackGuid string) (apiErr error)
- func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr error)
- func (repo *FakeBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) error
- func (repo *FakeBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error)
- type FakeCurlRepository
- type FakeDomainRepository
- func (repo *FakeDomainRepository) Create(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr error)
- func (repo *FakeDomainRepository) CreateSharedDomain(domainName string) (apiErr error)
- func (repo *FakeDomainRepository) Delete(domainGuid string) (apiErr error)
- func (repo *FakeDomainRepository) DeleteSharedDomain(domainGuid string) (apiErr error)
- func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrgGuid string) (domain models.DomainFields, apiErr error)
- func (repo *FakeDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)
- func (repo *FakeDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)
- func (repo *FakeDomainRepository) FirstOrDefault(orgGuid string, name *string) (domain models.DomainFields, error error)
- func (repo *FakeDomainRepository) ListDomainsForOrg(orgGuid string, cb func(models.DomainFields) bool) error
- type FakeEndpointRepo
- type FakeLoggregatorConsumer
- func (c *FakeLoggregatorConsumer) Close() error
- func (c *FakeLoggregatorConsumer) Recent(appGuid string, authToken string) ([]*logmessage.LogMessage, error)
- func (c *FakeLoggregatorConsumer) SetDebugPrinter(debugPrinter loggregator_consumer.DebugPrinter)
- func (c *FakeLoggregatorConsumer) SetOnConnectCallback(cb func())
- func (c *FakeLoggregatorConsumer) Tail(appGuid string, authToken string) (<-chan *logmessage.LogMessage, error)
- func (c *FakeLoggregatorConsumer) WaitForClose()
- type FakeLogsNoaaRepository
- func (fake *FakeLogsNoaaRepository) Close()
- func (fake *FakeLogsNoaaRepository) CloseCallCount() int
- func (fake *FakeLogsNoaaRepository) GetContainerMetrics(arg1 string, arg2 []models.AppInstanceFields) ([]models.AppInstanceFields, error)
- func (fake *FakeLogsNoaaRepository) GetContainerMetricsArgsForCall(i int) (string, []models.AppInstanceFields)
- func (fake *FakeLogsNoaaRepository) GetContainerMetricsCallCount() int
- func (fake *FakeLogsNoaaRepository) GetContainerMetricsReturns(result1 []models.AppInstanceFields, result2 error)
- func (fake *FakeLogsNoaaRepository) RecentLogsFor(appGuid string) ([]*events.LogMessage, error)
- func (fake *FakeLogsNoaaRepository) RecentLogsForArgsForCall(i int) string
- func (fake *FakeLogsNoaaRepository) RecentLogsForCallCount() int
- func (fake *FakeLogsNoaaRepository) RecentLogsForReturns(result1 []*events.LogMessage, result2 error)
- func (fake *FakeLogsNoaaRepository) TailNoaaLogsFor(appGuid string, onConnect func(), onMessage func(*events.LogMessage)) error
- func (fake *FakeLogsNoaaRepository) TailNoaaLogsForArgsForCall(i int) (string, func(), func(*events.LogMessage))
- func (fake *FakeLogsNoaaRepository) TailNoaaLogsForCallCount() int
- func (fake *FakeLogsNoaaRepository) TailNoaaLogsForReturns(result1 error)
- type FakeNoaaConsumer
- func (fake *FakeNoaaConsumer) Close() error
- func (fake *FakeNoaaConsumer) CloseCallCount() int
- func (fake *FakeNoaaConsumer) CloseReturns(result1 error)
- func (fake *FakeNoaaConsumer) GetContainerMetrics(arg1 string, arg2 string) ([]*events.ContainerMetric, error)
- func (fake *FakeNoaaConsumer) GetContainerMetricsArgsForCall(i int) (string, string)
- func (fake *FakeNoaaConsumer) GetContainerMetricsCallCount() int
- func (fake *FakeNoaaConsumer) GetContainerMetricsReturns(result1 []*events.ContainerMetric, result2 error)
- func (fake *FakeNoaaConsumer) RecentLogs(arg1 string, arg2 string) ([]*events.LogMessage, error)
- func (fake *FakeNoaaConsumer) RecentLogsArgsForCall(i int) (string, string)
- func (fake *FakeNoaaConsumer) RecentLogsCallCount() int
- func (fake *FakeNoaaConsumer) RecentLogsReturns(result1 []*events.LogMessage, result2 error)
- func (fake *FakeNoaaConsumer) SetOnConnectCallback(arg1 func())
- func (fake *FakeNoaaConsumer) SetOnConnectCallbackArgsForCall(i int) func()
- func (fake *FakeNoaaConsumer) SetOnConnectCallbackCallCount() int
- func (fake *FakeNoaaConsumer) TailingLogs(arg1 string, arg2 string, arg3 chan<- *events.LogMessage, arg4 chan<- error, ...)
- func (fake *FakeNoaaConsumer) TailingLogsArgsForCall(i int) (string, string, chan<- *events.LogMessage, chan<- error, chan struct{})
- func (fake *FakeNoaaConsumer) TailingLogsCallCount() int
- type FakeOldLogsRepository
- func (fake *FakeOldLogsRepository) Close()
- func (fake *FakeOldLogsRepository) CloseCallCount() int
- func (fake *FakeOldLogsRepository) RecentLogsFor(appGuid string) ([]*logmessage.LogMessage, error)
- func (fake *FakeOldLogsRepository) RecentLogsForArgsForCall(i int) string
- func (fake *FakeOldLogsRepository) RecentLogsForCallCount() int
- func (fake *FakeOldLogsRepository) RecentLogsForReturns(result1 []*logmessage.LogMessage, result2 error)
- func (fake *FakeOldLogsRepository) TailLogsFor(appGuid string, onConnect func(), onMessage func(*logmessage.LogMessage)) error
- func (fake *FakeOldLogsRepository) TailLogsForArgsForCall(i int) (string, func(), func(*logmessage.LogMessage))
- func (fake *FakeOldLogsRepository) TailLogsForCallCount() int
- func (fake *FakeOldLogsRepository) TailLogsForReturns(result1 error)
- type FakePasswordRepo
- type FakeRouteRepository
- func (repo *FakeRouteRepository) Bind(routeGuid, appGuid string) (apiErr error)
- func (repo *FakeRouteRepository) CheckIfExists(host string, domain models.DomainFields) (found bool, apiErr error)
- func (repo *FakeRouteRepository) Create(host string, domain models.DomainFields) (createdRoute models.Route, apiErr error)
- func (repo *FakeRouteRepository) CreateInSpace(host, domainGuid, spaceGuid string) (createdRoute models.Route, apiErr error)
- func (repo *FakeRouteRepository) Delete(routeGuid string) (apiErr error)
- func (repo *FakeRouteRepository) FindByHostAndDomain(host string, domain models.DomainFields) (route models.Route, apiErr error)
- func (repo *FakeRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)
- func (repo *FakeRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)
- func (repo *FakeRouteRepository) Unbind(routeGuid, appGuid string) (apiErr error)
- type FakeServiceBindingRepo
- type FakeServiceBrokerRepo
- func (repo *FakeServiceBrokerRepo) Create(name, url, username, password string) (apiErr error)
- func (repo *FakeServiceBrokerRepo) Delete(guid string) (apiErr error)
- func (repo *FakeServiceBrokerRepo) FindByGuid(guid string) (serviceBroker models.ServiceBroker, apiErr error)
- func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)
- func (repo *FakeServiceBrokerRepo) ListServiceBrokers(callback func(broker models.ServiceBroker) bool) error
- func (repo *FakeServiceBrokerRepo) Rename(guid, name string) (apiErr error)
- func (repo *FakeServiceBrokerRepo) Update(serviceBroker models.ServiceBroker) (apiErr error)
- type FakeServiceKeyRepo
- func (f *FakeServiceKeyRepo) CreateServiceKey(instanceGuid string, serviceKeyName string) error
- func (f *FakeServiceKeyRepo) DeleteServiceKey(serviceKeyGuid string) error
- func (f *FakeServiceKeyRepo) GetServiceKey(instanceGuid string, serviceKeyName string) (models.ServiceKey, error)
- func (f *FakeServiceKeyRepo) ListServiceKeys(instanceGuid string) ([]models.ServiceKey, error)
- type FakeServicePlanRepo
- func (fake *FakeServicePlanRepo) Search(queryParams map[string]string) ([]models.ServicePlanFields, error)
- func (fake *FakeServicePlanRepo) Update(arg1 models.ServicePlanFields, arg2 string, arg3 bool) error
- func (fake *FakeServicePlanRepo) UpdateArgsForCall(i int) (models.ServicePlanFields, string, bool)
- func (fake *FakeServicePlanRepo) UpdateCallCount() int
- func (fake *FakeServicePlanRepo) UpdateReturns(result1 error)
- type FakeServicePlanVisibilityRepository
- func (fake *FakeServicePlanVisibilityRepository) Create(arg1 string, arg2 string) error
- func (fake *FakeServicePlanVisibilityRepository) CreateArgsForCall(i int) (string, string)
- func (fake *FakeServicePlanVisibilityRepository) CreateCallCount() int
- func (fake *FakeServicePlanVisibilityRepository) CreateReturns(result1 error)
- func (fake *FakeServicePlanVisibilityRepository) Delete(arg1 string) error
- func (fake *FakeServicePlanVisibilityRepository) DeleteArgsForCall(i int) string
- func (fake *FakeServicePlanVisibilityRepository) DeleteCallCount() int
- func (fake *FakeServicePlanVisibilityRepository) DeleteReturns(result1 error)
- func (fake *FakeServicePlanVisibilityRepository) List() ([]models.ServicePlanVisibilityFields, error)
- func (fake *FakeServicePlanVisibilityRepository) ListCallCount() int
- func (fake *FakeServicePlanVisibilityRepository) ListReturns(result1 []models.ServicePlanVisibilityFields, result2 error)
- func (fake *FakeServicePlanVisibilityRepository) Search(arg1 map[string]string) ([]models.ServicePlanVisibilityFields, error)
- func (fake *FakeServicePlanVisibilityRepository) SearchArgsForCall(i int) map[string]string
- func (fake *FakeServicePlanVisibilityRepository) SearchCallCount() int
- func (fake *FakeServicePlanVisibilityRepository) SearchReturns(result1 []models.ServicePlanVisibilityFields, result2 error)
- type FakeServiceRepo
- func (repo *FakeServiceRepo) CreateServiceInstance(name, planGuid string, params map[string]interface{}) (apiErr error)
- func (repo *FakeServiceRepo) DeleteService(instance models.ServiceInstance) (apiErr error)
- func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)
- func (repo *FakeServiceRepo) FindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr error)
- func (repo *FakeServiceRepo) FindServiceOfferingsByLabel(name string) (offerings models.ServiceOfferings, apiErr error)
- func (repo *FakeServiceRepo) FindServiceOfferingsForSpaceByLabel(spaceGuid, name string) (models.ServiceOfferings, error)
- func (repo *FakeServiceRepo) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGuid string, apiErr error)
- func (repo *FakeServiceRepo) GetAllServiceOfferings() (models.ServiceOfferings, error)
- func (repo *FakeServiceRepo) GetServiceInstanceCountForServicePlan(v1PlanGuid string) (count int, apiErr error)
- func (repo *FakeServiceRepo) GetServiceOfferingByGuid(guid string) (models.ServiceOffering, error)
- func (repo *FakeServiceRepo) GetServiceOfferingsForSpace(spaceGuid string) (models.ServiceOfferings, error)
- func (repo *FakeServiceRepo) ListServicesFromBroker(brokerGuid string) ([]models.ServiceOffering, error)
- func (repo *FakeServiceRepo) MigrateServicePlanFromV1ToV2(v1PlanGuid, v2PlanGuid string) (changedCount int, apiErr error)
- func (repo *FakeServiceRepo) PurgeServiceOffering(offering models.ServiceOffering) (apiErr error)
- func (repo *FakeServiceRepo) RenameService(instance models.ServiceInstance, newName string) (apiErr error)
- func (repo *FakeServiceRepo) UpdateServiceInstance(instanceGuid, planGuid string) (apiErr error)
- type FakeServiceSummaryRepo
- type FakeSpaceRepository
- func (repo *FakeSpaceRepository) Create(name, orgGuid, spaceQuotaGuid string) (space models.Space, apiErr error)
- func (repo *FakeSpaceRepository) Delete(spaceGuid string) (apiErr error)
- func (repo *FakeSpaceRepository) FindByName(name string) (space models.Space, apiErr error)
- func (repo *FakeSpaceRepository) FindByNameInOrg(name, orgGuid string) (space models.Space, apiErr error)
- func (repo FakeSpaceRepository) GetCurrentSpace() (space models.Space)
- func (repo *FakeSpaceRepository) GetSummary() (space models.Space, apiErr error)
- func (repo FakeSpaceRepository) ListSpaces(callback func(models.Space) bool) error
- func (repo *FakeSpaceRepository) Rename(spaceGuid, newName string) (apiErr error)
- type FakeUserProvidedServiceInstanceRepository
- func (fake *FakeUserProvidedServiceInstanceRepository) Create(name string, drainUrl string, params map[string]interface{}) (apiErr error)
- func (fake *FakeUserProvidedServiceInstanceRepository) CreateArgsForCall(i int) (string, string, map[string]interface{})
- func (fake *FakeUserProvidedServiceInstanceRepository) CreateCallCount() int
- func (fake *FakeUserProvidedServiceInstanceRepository) CreateReturns(result1 error)
- func (fake *FakeUserProvidedServiceInstanceRepository) GetSummaries() (models.UserProvidedServiceSummary, error)
- func (fake *FakeUserProvidedServiceInstanceRepository) GetSummariesCallCount() int
- func (fake *FakeUserProvidedServiceInstanceRepository) GetSummariesReturns(result1 models.UserProvidedServiceSummary, result2 error)
- func (fake *FakeUserProvidedServiceInstanceRepository) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)
- func (fake *FakeUserProvidedServiceInstanceRepository) UpdateArgsForCall(i int) models.ServiceInstanceFields
- func (fake *FakeUserProvidedServiceInstanceRepository) UpdateCallCount() int
- func (fake *FakeUserProvidedServiceInstanceRepository) UpdateReturns(result1 error)
- type FakeUserRepository
- func (repo *FakeUserRepository) Create(username, password string) (apiErr error)
- func (repo *FakeUserRepository) Delete(userGuid string) (apiErr error)
- func (repo *FakeUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)
- func (repo *FakeUserRepository) ListUsersInOrgForRole(orgGuid string, roleName string) ([]models.UserFields, error)
- func (repo *FakeUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGuid string, roleName string) ([]models.UserFields, error)
- func (repo *FakeUserRepository) ListUsersInSpaceForRole(spaceGuid string, roleName string) ([]models.UserFields, error)
- func (repo *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGuid string, roleName string) ([]models.UserFields, error)
- func (repo *FakeUserRepository) SetOrgRole(userGuid, orgGuid, role string) (apiErr error)
- func (repo *FakeUserRepository) SetSpaceRole(userGuid, spaceGuid, orgGuid, role string) (apiErr error)
- func (repo *FakeUserRepository) UnsetOrgRole(userGuid, orgGuid, role string) (apiErr error)
- func (repo *FakeUserRepository) UnsetSpaceRole(userGuid, spaceGuid, role string) (apiErr error)
- type GetServiceKeyType
- type ListServiceKeysType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudControllerTestRequest ¶
func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest
Types ¶
type CreateServiceKeyType ¶
type DeleteServiceKeyType ¶
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 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 FakeAuthenticationRepository ¶
type FakeAuthenticationRepository struct { Config core_config.ReadWriter AuthenticateArgs struct { Credentials []map[string]string } GetLoginPromptsWasCalled bool GetLoginPromptsReturns struct { Error error Prompts map[string]core_config.AuthPrompt } AuthError bool AccessToken string RefreshToken string RefreshTokenCalled bool RefreshTokenError error }
func (*FakeAuthenticationRepository) Authenticate ¶
func (auth *FakeAuthenticationRepository) Authenticate(credentials map[string]string) (apiErr error)
func (*FakeAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL ¶
func (auth *FakeAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]core_config.AuthPrompt, apiErr error)
func (*FakeAuthenticationRepository) RefreshAuthToken ¶
func (auth *FakeAuthenticationRepository) RefreshAuthToken() (string, 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) 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
type FakeCurlRepository ¶
type FakeDomainRepository ¶
type FakeDomainRepository struct { ListDomainsForOrgGuid string ListDomainsForOrgDomains []models.DomainFields ListDomainsForOrgApiResponse error FindByNameInOrgName string FindByNameInOrgGuid string FindByNameInOrgDomain []models.DomainFields FindByNameInOrgApiResponse error FindPrivateByNameName string FindPrivateByNameDomain models.DomainFields FindPrivateByNameNotFound bool FindPrivateByNameErr bool CreateDomainName string CreateDomainOwningOrgGuid string DeleteDomainGuid string DeleteApiResponse error // contains filtered or unexported fields }
func (*FakeDomainRepository) Create ¶
func (repo *FakeDomainRepository) Create(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr error)
func (*FakeDomainRepository) CreateSharedDomain ¶
func (repo *FakeDomainRepository) CreateSharedDomain(domainName string) (apiErr error)
func (*FakeDomainRepository) Delete ¶
func (repo *FakeDomainRepository) Delete(domainGuid string) (apiErr error)
func (*FakeDomainRepository) DeleteSharedDomain ¶
func (repo *FakeDomainRepository) DeleteSharedDomain(domainGuid string) (apiErr error)
func (*FakeDomainRepository) FindByNameInOrg ¶
func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrgGuid string) (domain models.DomainFields, apiErr error)
func (*FakeDomainRepository) FindPrivateByName ¶
func (repo *FakeDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)
func (*FakeDomainRepository) FindSharedByName ¶
func (repo *FakeDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)
func (*FakeDomainRepository) FirstOrDefault ¶
func (repo *FakeDomainRepository) FirstOrDefault(orgGuid string, name *string) (domain models.DomainFields, error error)
func (*FakeDomainRepository) ListDomainsForOrg ¶
func (repo *FakeDomainRepository) ListDomainsForOrg(orgGuid string, cb func(models.DomainFields) bool) error
type FakeEndpointRepo ¶
func (*FakeEndpointRepo) UpdateEndpoint ¶
func (repo *FakeEndpointRepo) UpdateEndpoint(endpoint string) (string, 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 FakeLogsNoaaRepository ¶
type FakeLogsNoaaRepository struct { GetContainerMetricsStub func(string, []models.AppInstanceFields) ([]models.AppInstanceFields, error) RecentLogsForStub func(appGuid string) ([]*events.LogMessage, error) TailNoaaLogsForStub func(appGuid string, onConnect func(), onMessage func(*events.LogMessage)) error CloseStub func() // contains filtered or unexported fields }
func (*FakeLogsNoaaRepository) Close ¶
func (fake *FakeLogsNoaaRepository) Close()
func (*FakeLogsNoaaRepository) CloseCallCount ¶
func (fake *FakeLogsNoaaRepository) CloseCallCount() int
func (*FakeLogsNoaaRepository) GetContainerMetrics ¶
func (fake *FakeLogsNoaaRepository) GetContainerMetrics(arg1 string, arg2 []models.AppInstanceFields) ([]models.AppInstanceFields, error)
func (*FakeLogsNoaaRepository) GetContainerMetricsArgsForCall ¶
func (fake *FakeLogsNoaaRepository) GetContainerMetricsArgsForCall(i int) (string, []models.AppInstanceFields)
func (*FakeLogsNoaaRepository) GetContainerMetricsCallCount ¶
func (fake *FakeLogsNoaaRepository) GetContainerMetricsCallCount() int
func (*FakeLogsNoaaRepository) GetContainerMetricsReturns ¶
func (fake *FakeLogsNoaaRepository) GetContainerMetricsReturns(result1 []models.AppInstanceFields, result2 error)
func (*FakeLogsNoaaRepository) RecentLogsFor ¶
func (fake *FakeLogsNoaaRepository) RecentLogsFor(appGuid string) ([]*events.LogMessage, error)
func (*FakeLogsNoaaRepository) RecentLogsForArgsForCall ¶
func (fake *FakeLogsNoaaRepository) RecentLogsForArgsForCall(i int) string
func (*FakeLogsNoaaRepository) RecentLogsForCallCount ¶
func (fake *FakeLogsNoaaRepository) RecentLogsForCallCount() int
func (*FakeLogsNoaaRepository) RecentLogsForReturns ¶
func (fake *FakeLogsNoaaRepository) RecentLogsForReturns(result1 []*events.LogMessage, result2 error)
func (*FakeLogsNoaaRepository) TailNoaaLogsFor ¶
func (fake *FakeLogsNoaaRepository) TailNoaaLogsFor(appGuid string, onConnect func(), onMessage func(*events.LogMessage)) error
func (*FakeLogsNoaaRepository) TailNoaaLogsForArgsForCall ¶
func (fake *FakeLogsNoaaRepository) TailNoaaLogsForArgsForCall(i int) (string, func(), func(*events.LogMessage))
func (*FakeLogsNoaaRepository) TailNoaaLogsForCallCount ¶
func (fake *FakeLogsNoaaRepository) TailNoaaLogsForCallCount() int
func (*FakeLogsNoaaRepository) TailNoaaLogsForReturns ¶
func (fake *FakeLogsNoaaRepository) TailNoaaLogsForReturns(result1 error)
type FakeNoaaConsumer ¶
type FakeNoaaConsumer struct { TailFunc func(logChan chan<- *events.LogMessage, errChan chan<- error, stopChan chan struct{}) GetContainerMetricsStub func(string, string) ([]*events.ContainerMetric, error) RecentLogsStub func(string, string) ([]*events.LogMessage, error) TailingLogsStub func(string, string, chan<- *events.LogMessage, chan<- error, chan struct{}) SetOnConnectCallbackStub func(func()) CloseStub func() error // contains filtered or unexported fields }
func (*FakeNoaaConsumer) Close ¶
func (fake *FakeNoaaConsumer) Close() error
func (*FakeNoaaConsumer) CloseCallCount ¶
func (fake *FakeNoaaConsumer) CloseCallCount() int
func (*FakeNoaaConsumer) CloseReturns ¶
func (fake *FakeNoaaConsumer) CloseReturns(result1 error)
func (*FakeNoaaConsumer) GetContainerMetrics ¶
func (fake *FakeNoaaConsumer) GetContainerMetrics(arg1 string, arg2 string) ([]*events.ContainerMetric, error)
func (*FakeNoaaConsumer) GetContainerMetricsArgsForCall ¶
func (fake *FakeNoaaConsumer) GetContainerMetricsArgsForCall(i int) (string, string)
func (*FakeNoaaConsumer) GetContainerMetricsCallCount ¶
func (fake *FakeNoaaConsumer) GetContainerMetricsCallCount() int
func (*FakeNoaaConsumer) GetContainerMetricsReturns ¶
func (fake *FakeNoaaConsumer) GetContainerMetricsReturns(result1 []*events.ContainerMetric, result2 error)
func (*FakeNoaaConsumer) RecentLogs ¶
func (fake *FakeNoaaConsumer) RecentLogs(arg1 string, arg2 string) ([]*events.LogMessage, error)
func (*FakeNoaaConsumer) RecentLogsArgsForCall ¶
func (fake *FakeNoaaConsumer) RecentLogsArgsForCall(i int) (string, string)
func (*FakeNoaaConsumer) RecentLogsCallCount ¶
func (fake *FakeNoaaConsumer) RecentLogsCallCount() int
func (*FakeNoaaConsumer) RecentLogsReturns ¶
func (fake *FakeNoaaConsumer) RecentLogsReturns(result1 []*events.LogMessage, result2 error)
func (*FakeNoaaConsumer) SetOnConnectCallback ¶
func (fake *FakeNoaaConsumer) SetOnConnectCallback(arg1 func())
func (*FakeNoaaConsumer) SetOnConnectCallbackArgsForCall ¶
func (fake *FakeNoaaConsumer) SetOnConnectCallbackArgsForCall(i int) func()
func (*FakeNoaaConsumer) SetOnConnectCallbackCallCount ¶
func (fake *FakeNoaaConsumer) SetOnConnectCallbackCallCount() int
func (*FakeNoaaConsumer) TailingLogs ¶
func (fake *FakeNoaaConsumer) TailingLogs(arg1 string, arg2 string, arg3 chan<- *events.LogMessage, arg4 chan<- error, arg5 chan struct{})
func (*FakeNoaaConsumer) TailingLogsArgsForCall ¶
func (fake *FakeNoaaConsumer) TailingLogsArgsForCall(i int) (string, string, chan<- *events.LogMessage, chan<- error, chan struct{})
func (*FakeNoaaConsumer) TailingLogsCallCount ¶
func (fake *FakeNoaaConsumer) TailingLogsCallCount() int
type FakeOldLogsRepository ¶
type FakeOldLogsRepository 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 (*FakeOldLogsRepository) Close ¶
func (fake *FakeOldLogsRepository) Close()
func (*FakeOldLogsRepository) CloseCallCount ¶
func (fake *FakeOldLogsRepository) CloseCallCount() int
func (*FakeOldLogsRepository) RecentLogsFor ¶
func (fake *FakeOldLogsRepository) RecentLogsFor(appGuid string) ([]*logmessage.LogMessage, error)
func (*FakeOldLogsRepository) RecentLogsForArgsForCall ¶
func (fake *FakeOldLogsRepository) RecentLogsForArgsForCall(i int) string
func (*FakeOldLogsRepository) RecentLogsForCallCount ¶
func (fake *FakeOldLogsRepository) RecentLogsForCallCount() int
func (*FakeOldLogsRepository) RecentLogsForReturns ¶
func (fake *FakeOldLogsRepository) RecentLogsForReturns(result1 []*logmessage.LogMessage, result2 error)
func (*FakeOldLogsRepository) TailLogsFor ¶
func (fake *FakeOldLogsRepository) TailLogsFor(appGuid string, onConnect func(), onMessage func(*logmessage.LogMessage)) error
func (*FakeOldLogsRepository) TailLogsForArgsForCall ¶
func (fake *FakeOldLogsRepository) TailLogsForArgsForCall(i int) (string, func(), func(*logmessage.LogMessage))
func (*FakeOldLogsRepository) TailLogsForCallCount ¶
func (fake *FakeOldLogsRepository) TailLogsForCallCount() int
func (*FakeOldLogsRepository) TailLogsForReturns ¶
func (fake *FakeOldLogsRepository) TailLogsForReturns(result1 error)
type FakePasswordRepo ¶
type FakePasswordRepo struct { Score string ScoredPassword string UpdateNewPassword string UpdateOldPassword string }
func (*FakePasswordRepo) UpdatePassword ¶
func (repo *FakePasswordRepo) UpdatePassword(old string, new string) (apiErr error)
type FakeRouteRepository ¶
type FakeRouteRepository struct { FindByHostAndDomainCalledWith struct { Host string Domain models.DomainFields } FindByHostAndDomainReturns struct { Route models.Route Error error } CreatedHost string CreatedDomainGuid string CreatedRoute models.Route CreateInSpaceHost string CreateInSpaceDomainGuid string CreateInSpaceSpaceGuid string CreateInSpaceCreatedRoute models.Route CreateInSpaceErr bool CheckIfExistsFound bool CheckIfExistsError error BindErr error BoundRouteGuid string BoundAppGuid string UnboundRouteGuid string UnboundAppGuid string ListErr bool Routes []models.Route DeletedRouteGuids []string DeleteErr error }
func (*FakeRouteRepository) Bind ¶
func (repo *FakeRouteRepository) Bind(routeGuid, appGuid string) (apiErr error)
func (*FakeRouteRepository) CheckIfExists ¶
func (repo *FakeRouteRepository) CheckIfExists(host string, domain models.DomainFields) (found bool, apiErr error)
func (*FakeRouteRepository) Create ¶
func (repo *FakeRouteRepository) Create(host string, domain models.DomainFields) (createdRoute models.Route, apiErr error)
func (*FakeRouteRepository) CreateInSpace ¶
func (repo *FakeRouteRepository) CreateInSpace(host, domainGuid, spaceGuid string) (createdRoute models.Route, apiErr error)
func (*FakeRouteRepository) Delete ¶
func (repo *FakeRouteRepository) Delete(routeGuid string) (apiErr error)
func (*FakeRouteRepository) FindByHostAndDomain ¶
func (repo *FakeRouteRepository) FindByHostAndDomain(host string, domain models.DomainFields) (route models.Route, apiErr error)
func (*FakeRouteRepository) ListAllRoutes ¶
func (repo *FakeRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)
func (*FakeRouteRepository) ListRoutes ¶
func (repo *FakeRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)
func (*FakeRouteRepository) Unbind ¶
func (repo *FakeRouteRepository) Unbind(routeGuid, appGuid string) (apiErr error)
type FakeServiceBindingRepo ¶
type FakeServiceBindingRepo struct { CreateServiceInstanceGuid string CreateApplicationGuid string CreateErrorCode string DeleteServiceInstance models.ServiceInstance DeleteApplicationGuid string DeleteBindingNotFound bool CreateNonHttpErrCode string }
func (*FakeServiceBindingRepo) Create ¶
func (repo *FakeServiceBindingRepo) Create(instanceGuid, appGuid string) (apiErr error)
func (*FakeServiceBindingRepo) Delete ¶
func (repo *FakeServiceBindingRepo) Delete(instance models.ServiceInstance, appGuid string) (found bool, apiErr error)
type FakeServiceBrokerRepo ¶
type FakeServiceBrokerRepo struct { FindByNameName string FindByNameServiceBroker models.ServiceBroker FindByNameNotFound bool FindByGuidGuid string FindByGuidServiceBroker models.ServiceBroker FindByGuidNotFound bool CreateName string CreateUrl string CreateUsername string CreatePassword string UpdatedServiceBroker models.ServiceBroker RenamedServiceBrokerGuid string RenamedServiceBrokerName string DeletedServiceBrokerGuid string ServiceBrokers []models.ServiceBroker ListErr bool }
func (*FakeServiceBrokerRepo) Create ¶
func (repo *FakeServiceBrokerRepo) Create(name, url, username, password string) (apiErr error)
func (*FakeServiceBrokerRepo) Delete ¶
func (repo *FakeServiceBrokerRepo) Delete(guid string) (apiErr error)
func (*FakeServiceBrokerRepo) FindByGuid ¶
func (repo *FakeServiceBrokerRepo) FindByGuid(guid string) (serviceBroker models.ServiceBroker, apiErr error)
func (*FakeServiceBrokerRepo) FindByName ¶
func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)
func (*FakeServiceBrokerRepo) ListServiceBrokers ¶
func (repo *FakeServiceBrokerRepo) ListServiceBrokers(callback func(broker models.ServiceBroker) bool) error
func (*FakeServiceBrokerRepo) Rename ¶
func (repo *FakeServiceBrokerRepo) Rename(guid, name string) (apiErr error)
func (*FakeServiceBrokerRepo) Update ¶
func (repo *FakeServiceBrokerRepo) Update(serviceBroker models.ServiceBroker) (apiErr 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) 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 // contains filtered or unexported fields }
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 (fake *FakeServicePlanVisibilityRepository) Delete(arg1 string) error
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 (fake *FakeServicePlanVisibilityRepository) List() ([]models.ServicePlanVisibilityFields, error)
func (*FakeServicePlanVisibilityRepository) ListCallCount ¶
func (fake *FakeServicePlanVisibilityRepository) ListCallCount() int
func (*FakeServicePlanVisibilityRepository) ListReturns ¶
func (fake *FakeServicePlanVisibilityRepository) ListReturns(result1 []models.ServicePlanVisibilityFields, result2 error)
func (*FakeServicePlanVisibilityRepository) Search ¶
func (fake *FakeServicePlanVisibilityRepository) Search(arg1 map[string]string) ([]models.ServicePlanVisibilityFields, error)
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 FakeServiceRepo ¶
type FakeServiceRepo struct { GetServiceOfferingByGuidReturns struct { ServiceOffering models.ServiceOffering Error error } GetAllServiceOfferingsReturns struct { ServiceOfferings []models.ServiceOffering Error error } GetServiceOfferingsForSpaceReturns struct { ServiceOfferings []models.ServiceOffering Error error } GetServiceOfferingsForSpaceArgs struct { SpaceGuid string } FindServiceOfferingsForSpaceByLabelArgs struct { SpaceGuid string Name string } FindServiceOfferingsForSpaceByLabelReturns struct { ServiceOfferings models.ServiceOfferings Error error } CreateServiceInstanceArgs struct { Name string PlanGuid string Params map[string]interface{} } CreateServiceInstanceReturns struct { Error error } UpdateServiceInstanceArgs struct { InstanceGuid string PlanGuid string } UpdateServiceInstanceReturnsErr bool FindInstanceByNameName string FindInstanceByNameServiceInstance models.ServiceInstance FindInstanceByNameErr bool FindInstanceByNameNotFound bool FindInstanceByNameMap generic.Map DeleteServiceServiceInstance models.ServiceInstance RenameServiceServiceInstance models.ServiceInstance RenameServiceNewName string PurgedServiceOffering models.ServiceOffering PurgeServiceOfferingCalled bool PurgeServiceOfferingApiResponse error FindServiceOfferingByLabelAndProviderName string FindServiceOfferingByLabelAndProviderProvider string FindServiceOfferingByLabelAndProviderServiceOffering models.ServiceOffering FindServiceOfferingByLabelAndProviderApiResponse error FindServiceOfferingByLabelAndProviderCalled bool FindServiceOfferingsByLabelName string FindServiceOfferingsByLabelServiceOfferings models.ServiceOfferings FindServiceOfferingsByLabelApiResponse error FindServiceOfferingsByLabelCalled bool ListServicesFromBrokerReturns map[string][]models.ServiceOffering ListServicesFromBrokerErr error V1ServicePlanDescription resources.ServicePlanDescription V2ServicePlanDescription resources.ServicePlanDescription FindServicePlanByDescriptionArguments []resources.ServicePlanDescription FindServicePlanByDescriptionResultGuids []string FindServicePlanByDescriptionResponses []error ServiceInstanceCountForServicePlan int ServiceInstanceCountApiResponse error V1GuidToMigrate string V2GuidToMigrate string MigrateServicePlanFromV1ToV2Called bool MigrateServicePlanFromV1ToV2ReturnedCount int MigrateServicePlanFromV1ToV2Response error // contains filtered or unexported fields }
func (*FakeServiceRepo) CreateServiceInstance ¶
func (repo *FakeServiceRepo) CreateServiceInstance(name, planGuid string, params map[string]interface{}) (apiErr error)
func (*FakeServiceRepo) DeleteService ¶
func (repo *FakeServiceRepo) DeleteService(instance models.ServiceInstance) (apiErr error)
func (*FakeServiceRepo) FindInstanceByName ¶
func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)
func (*FakeServiceRepo) FindServiceOfferingByLabelAndProvider ¶
func (repo *FakeServiceRepo) FindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr error)
func (*FakeServiceRepo) FindServiceOfferingsByLabel ¶
func (repo *FakeServiceRepo) FindServiceOfferingsByLabel(name string) (offerings models.ServiceOfferings, apiErr error)
func (*FakeServiceRepo) FindServiceOfferingsForSpaceByLabel ¶
func (repo *FakeServiceRepo) FindServiceOfferingsForSpaceByLabel(spaceGuid, name string) (models.ServiceOfferings, error)
func (*FakeServiceRepo) FindServicePlanByDescription ¶
func (repo *FakeServiceRepo) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGuid string, apiErr error)
func (*FakeServiceRepo) GetAllServiceOfferings ¶
func (repo *FakeServiceRepo) GetAllServiceOfferings() (models.ServiceOfferings, error)
func (*FakeServiceRepo) GetServiceInstanceCountForServicePlan ¶
func (repo *FakeServiceRepo) GetServiceInstanceCountForServicePlan(v1PlanGuid string) (count int, apiErr error)
func (*FakeServiceRepo) GetServiceOfferingByGuid ¶
func (repo *FakeServiceRepo) GetServiceOfferingByGuid(guid string) (models.ServiceOffering, error)
func (*FakeServiceRepo) GetServiceOfferingsForSpace ¶
func (repo *FakeServiceRepo) GetServiceOfferingsForSpace(spaceGuid string) (models.ServiceOfferings, error)
func (*FakeServiceRepo) ListServicesFromBroker ¶
func (repo *FakeServiceRepo) ListServicesFromBroker(brokerGuid string) ([]models.ServiceOffering, error)
func (*FakeServiceRepo) MigrateServicePlanFromV1ToV2 ¶
func (repo *FakeServiceRepo) MigrateServicePlanFromV1ToV2(v1PlanGuid, v2PlanGuid string) (changedCount int, apiErr error)
func (*FakeServiceRepo) PurgeServiceOffering ¶
func (repo *FakeServiceRepo) PurgeServiceOffering(offering models.ServiceOffering) (apiErr error)
func (*FakeServiceRepo) RenameService ¶
func (repo *FakeServiceRepo) RenameService(instance models.ServiceInstance, newName string) (apiErr error)
func (*FakeServiceRepo) UpdateServiceInstance ¶
func (repo *FakeServiceRepo) UpdateServiceInstance(instanceGuid, planGuid string) (apiErr 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 { CurrentSpace models.Space Spaces []models.Space FindByNameName string FindByNameSpace models.Space FindByNameErr bool FindByNameNotFound bool FindByNameInOrgName string FindByNameInOrgOrgGuid string FindByNameInOrgSpace models.Space FindByNameInOrgError error SummarySpace models.Space CreateSpaceName string CreateSpaceOrgGuid string CreateSpaceSpaceQuotaGuid string CreateSpaceExists bool CreateSpaceSpace models.Space RenameSpaceGuid string RenameNewName string DeletedSpaceGuid string }
func (*FakeSpaceRepository) Create ¶
func (repo *FakeSpaceRepository) Create(name, orgGuid, spaceQuotaGuid string) (space models.Space, apiErr error)
func (*FakeSpaceRepository) Delete ¶
func (repo *FakeSpaceRepository) Delete(spaceGuid string) (apiErr error)
func (*FakeSpaceRepository) FindByName ¶
func (repo *FakeSpaceRepository) FindByName(name string) (space models.Space, apiErr error)
func (*FakeSpaceRepository) FindByNameInOrg ¶
func (repo *FakeSpaceRepository) FindByNameInOrg(name, orgGuid string) (space models.Space, apiErr error)
func (FakeSpaceRepository) GetCurrentSpace ¶
func (repo FakeSpaceRepository) GetCurrentSpace() (space models.Space)
func (*FakeSpaceRepository) GetSummary ¶
func (repo *FakeSpaceRepository) GetSummary() (space models.Space, apiErr error)
func (FakeSpaceRepository) ListSpaces ¶
func (repo FakeSpaceRepository) ListSpaces(callback func(models.Space) bool) error
func (*FakeSpaceRepository) Rename ¶
func (repo *FakeSpaceRepository) Rename(spaceGuid, newName string) (apiErr error)
type FakeUserProvidedServiceInstanceRepository ¶
type FakeUserProvidedServiceInstanceRepository struct { CreateStub func(name, drainUrl 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, params map[string]interface{}) (apiErr error)
func (*FakeUserProvidedServiceInstanceRepository) CreateArgsForCall ¶
func (fake *FakeUserProvidedServiceInstanceRepository) CreateArgsForCall(i int) (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 (fake *FakeUserProvidedServiceInstanceRepository) GetSummaries() (models.UserProvidedServiceSummary, error)
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 (fake *FakeUserProvidedServiceInstanceRepository) UpdateArgsForCall(i int) models.ServiceInstanceFields
func (*FakeUserProvidedServiceInstanceRepository) UpdateCallCount ¶
func (fake *FakeUserProvidedServiceInstanceRepository) UpdateCallCount() int
func (*FakeUserProvidedServiceInstanceRepository) UpdateReturns ¶
func (fake *FakeUserProvidedServiceInstanceRepository) UpdateReturns(result1 error)
type FakeUserRepository ¶
type FakeUserRepository struct { FindByUsernameUsername string FindByUsernameUserFields models.UserFields FindByUsernameNotFound bool ListUsersOrganizationGuid string ListUsersSpaceGuid string ListUsersByRole map[string][]models.UserFields CreateUserUsername string CreateUserPassword string CreateUserExists bool CreateUserReturnsHttpError bool DeleteUserGuid string SetOrgRoleUserGuid string SetOrgRoleOrganizationGuid string SetOrgRoleRole string UnsetOrgRoleUserGuid string UnsetOrgRoleOrganizationGuid string UnsetOrgRoleRole string SetSpaceRoleUserGuid string SetSpaceRoleOrgGuid string SetSpaceRoleSpaceGuid string SetSpaceRoleRole string UnsetSpaceRoleUserGuid string UnsetSpaceRoleSpaceGuid string UnsetSpaceRoleRole string ListUsersInOrgForRoleWithNoUAA_CallCount int ListUsersInOrgForRole_CallCount int ListUsersInSpaceForRoleWithNoUAA_CallCount int ListUsersInSpaceForRole_CallCount int }
func (*FakeUserRepository) Create ¶
func (repo *FakeUserRepository) Create(username, password string) (apiErr error)
func (*FakeUserRepository) Delete ¶
func (repo *FakeUserRepository) Delete(userGuid string) (apiErr error)
func (*FakeUserRepository) FindByUsername ¶
func (repo *FakeUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)
func (*FakeUserRepository) ListUsersInOrgForRole ¶
func (repo *FakeUserRepository) ListUsersInOrgForRole(orgGuid string, roleName string) ([]models.UserFields, error)
func (*FakeUserRepository) ListUsersInOrgForRoleWithNoUAA ¶
func (repo *FakeUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGuid string, roleName string) ([]models.UserFields, error)
func (*FakeUserRepository) ListUsersInSpaceForRole ¶
func (repo *FakeUserRepository) ListUsersInSpaceForRole(spaceGuid string, roleName string) ([]models.UserFields, error)
func (*FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA ¶
func (repo *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGuid string, roleName string) ([]models.UserFields, error)
func (*FakeUserRepository) SetOrgRole ¶
func (repo *FakeUserRepository) SetOrgRole(userGuid, orgGuid, role string) (apiErr error)
func (*FakeUserRepository) SetSpaceRole ¶
func (repo *FakeUserRepository) SetSpaceRole(userGuid, spaceGuid, orgGuid, role string) (apiErr error)
func (*FakeUserRepository) UnsetOrgRole ¶
func (repo *FakeUserRepository) UnsetOrgRole(userGuid, orgGuid, role string) (apiErr error)
func (*FakeUserRepository) UnsetSpaceRole ¶
func (repo *FakeUserRepository) UnsetSpaceRole(userGuid, spaceGuid, role string) (apiErr 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 }
Source Files ¶
- fake_app_summary_repo.go
- fake_auth_token_repo.go
- fake_authenticator.go
- fake_buildpack_bits_repo.go
- fake_buildpack_repo.go
- fake_cc_request.go
- fake_curl_repo.go
- fake_domain_repo.go
- fake_endpoint_repo.go
- fake_loggregator_consumer.go
- fake_logs_noaa_repository.go
- fake_noaa_consumer.go
- fake_old_logs_repository.go
- fake_pwd_repo.go
- fake_route_repo.go
- fake_service_binding_repo.go
- fake_service_broker_repo.go
- fake_service_key_repo.go
- fake_service_plan_repo.go
- fake_service_plan_visibility_repository.go
- fake_service_repo.go
- fake_service_summary_repo.go
- fake_space_repo.go
- fake_user_provided_service_instance_repository.go
- fake_user_repo.go
Click to show internal directories.
Click to hide internal directories.