Documentation ¶
Index ¶
- func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest
- type FakeAppEventsRepo
- type FakeAppFilesRepo
- type FakeAppInstancesRepo
- type FakeAppSummaryRepo
- type FakeApplicationBitsRepository
- type FakeApplicationRepository
- func (repo *FakeApplicationRepository) Create(params models.AppParams) (resultApp models.Application, apiErr errors.Error)
- func (repo *FakeApplicationRepository) CreatedAppParams() (params models.AppParams)
- func (repo *FakeApplicationRepository) Delete(appGuid string) (apiErr errors.Error)
- func (repo *FakeApplicationRepository) Read(name string) (app models.Application, apiErr errors.Error)
- func (repo *FakeApplicationRepository) Update(appGuid string, params models.AppParams) (updatedApp models.Application, apiErr errors.Error)
- type FakeAuthTokenRepo
- func (repo *FakeAuthTokenRepo) Create(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
- func (repo *FakeAuthTokenRepo) Delete(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
- func (repo *FakeAuthTokenRepo) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr errors.Error)
- func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr errors.Error)
- func (repo *FakeAuthTokenRepo) Update(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
- type FakeAuthenticationRepository
- func (auth *FakeAuthenticationRepository) Authenticate(credentials map[string]string) (apiErr errors.Error)
- func (auth *FakeAuthenticationRepository) GetLoginPrompts() (prompts map[string]configuration.AuthPrompt, apiErr errors.Error)
- func (auth *FakeAuthenticationRepository) RefreshAuthToken() (updatedToken string, apiErr errors.Error)
- type FakeBuildpackBitsRepository
- type FakeBuildpackRepository
- func (repo *FakeBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr errors.Error)
- func (repo *FakeBuildpackRepository) Delete(buildpackGuid string) (apiErr errors.Error)
- func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr errors.Error)
- func (repo *FakeBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) errors.Error
- func (repo *FakeBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr errors.Error)
- type FakeCurlRepository
- type FakeDomainRepository
- func (repo *FakeDomainRepository) Create(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr errors.Error)
- func (repo *FakeDomainRepository) CreateSharedDomain(domainName string) (apiErr errors.Error)
- func (repo *FakeDomainRepository) Delete(domainGuid string) (apiErr errors.Error)
- func (repo *FakeDomainRepository) DeleteSharedDomain(domainGuid string) (apiErr errors.Error)
- func (repo *FakeDomainRepository) FindByName(name string) (domain models.DomainFields, apiErr errors.Error)
- func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrgGuid string) (domain models.DomainFields, apiErr errors.Error)
- func (repo *FakeDomainRepository) ListDomains(cb func(models.DomainFields) bool) errors.Error
- func (repo *FakeDomainRepository) ListDomainsForOrg(orgGuid string, cb func(models.DomainFields) bool) errors.Error
- func (repo *FakeDomainRepository) ListSharedDomains(cb func(models.DomainFields) bool) errors.Error
- type FakeEndpointRepo
- func (repo *FakeEndpointRepo) GetCloudControllerEndpoint() (endpoint string, apiErr errors.Error)
- func (repo *FakeEndpointRepo) GetLoggregatorEndpoint() (endpoint string, apiErr errors.Error)
- func (repo *FakeEndpointRepo) GetUAAEndpoint() (endpoint string, apiErr errors.Error)
- func (repo *FakeEndpointRepo) UpdateEndpoint(endpoint string) (finalEndpoint string, apiErr errors.Error)
- type FakeLogsRepository
- type FakeOrgRepository
- func (repo *FakeOrgRepository) Create(name string) (apiErr errors.Error)
- func (repo *FakeOrgRepository) Delete(orgGuid string) (apiErr errors.Error)
- func (repo *FakeOrgRepository) FindByName(name string) (org models.Organization, apiErr errors.Error)
- func (repo FakeOrgRepository) ListOrgs(cb func(models.Organization) bool) (apiErr errors.Error)
- func (repo *FakeOrgRepository) Rename(orgGuid string, name string) (apiErr errors.Error)
- type FakePasswordRepo
- type FakeQuotaRepository
- type FakeRouteRepository
- func (repo *FakeRouteRepository) Bind(routeGuid, appGuid string) (apiErr errors.Error)
- func (repo *FakeRouteRepository) Create(host, domainGuid string) (createdRoute models.Route, apiErr errors.Error)
- func (repo *FakeRouteRepository) CreateInSpace(host, domainGuid, spaceGuid string) (createdRoute models.Route, apiErr errors.Error)
- func (repo *FakeRouteRepository) Delete(routeGuid string) (apiErr errors.Error)
- func (repo *FakeRouteRepository) FindByHost(host string) (route models.Route, apiErr errors.Error)
- func (repo *FakeRouteRepository) FindByHostAndDomain(host, domain string) (route models.Route, apiErr errors.Error)
- func (repo *FakeRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr errors.Error)
- func (repo *FakeRouteRepository) Unbind(routeGuid, appGuid string) (apiErr errors.Error)
- type FakeServiceBindingRepo
- type FakeServiceBrokerRepo
- func (repo *FakeServiceBrokerRepo) Create(name, url, username, password string) (apiErr errors.Error)
- func (repo *FakeServiceBrokerRepo) Delete(guid string) (apiErr errors.Error)
- func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr errors.Error)
- func (repo *FakeServiceBrokerRepo) ListServiceBrokers(callback func(broker models.ServiceBroker) bool) errors.Error
- func (repo *FakeServiceBrokerRepo) Rename(guid, name string) (apiErr errors.Error)
- func (repo *FakeServiceBrokerRepo) Update(serviceBroker models.ServiceBroker) (apiErr errors.Error)
- type FakeServiceRepo
- func (repo *FakeServiceRepo) CreateServiceInstance(name, planGuid string) (identicalAlreadyExists bool, apiErr errors.Error)
- func (repo *FakeServiceRepo) DeleteService(instance models.ServiceInstance) (apiErr errors.Error)
- func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr errors.Error)
- func (repo *FakeServiceRepo) FindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr errors.Error)
- func (repo *FakeServiceRepo) FindServicePlanByDescription(planDescription realApi.ServicePlanDescription) (planGuid string, apiErr errors.Error)
- func (repo *FakeServiceRepo) GetAllServiceOfferings() (models.ServiceOfferings, errors.Error)
- func (repo *FakeServiceRepo) GetServiceInstanceCountForServicePlan(v1PlanGuid string) (count int, apiErr errors.Error)
- func (repo *FakeServiceRepo) GetServiceOfferingsForSpace(spaceGuid string) (models.ServiceOfferings, errors.Error)
- func (repo *FakeServiceRepo) MigrateServicePlanFromV1ToV2(v1PlanGuid, v2PlanGuid string) (changedCount int, apiErr errors.Error)
- func (repo *FakeServiceRepo) PurgeServiceOffering(offering models.ServiceOffering) (apiErr errors.Error)
- func (repo *FakeServiceRepo) RenameService(instance models.ServiceInstance, newName string) (apiErr errors.Error)
- type FakeServiceSummaryRepo
- type FakeSpaceRepository
- func (repo *FakeSpaceRepository) Create(name string, orgGuid string) (space models.Space, apiErr errors.Error)
- func (repo *FakeSpaceRepository) Delete(spaceGuid string) (apiErr errors.Error)
- func (repo *FakeSpaceRepository) FindByName(name string) (space models.Space, apiErr errors.Error)
- func (repo *FakeSpaceRepository) FindByNameInOrg(name, orgGuid string) (space models.Space, apiErr errors.Error)
- func (repo FakeSpaceRepository) GetCurrentSpace() (space models.Space)
- func (repo *FakeSpaceRepository) GetSummary() (space models.Space, apiErr errors.Error)
- func (repo FakeSpaceRepository) ListSpaces(callback func(models.Space) bool) errors.Error
- func (repo *FakeSpaceRepository) Rename(spaceGuid, newName string) (apiErr errors.Error)
- type FakeStackRepository
- type FakeUserProvidedServiceInstanceRepo
- type FakeUserRepository
- func (repo *FakeUserRepository) Create(username, password string) (apiErr errors.Error)
- func (repo *FakeUserRepository) Delete(userGuid string) (apiErr errors.Error)
- func (repo *FakeUserRepository) FindByUsername(username string) (user models.UserFields, apiErr errors.Error)
- func (repo *FakeUserRepository) ListUsersInOrgForRole(orgGuid string, roleName string) ([]models.UserFields, errors.Error)
- func (repo *FakeUserRepository) ListUsersInSpaceForRole(spaceGuid string, roleName string) ([]models.UserFields, errors.Error)
- func (repo *FakeUserRepository) SetOrgRole(userGuid, orgGuid, role string) (apiErr errors.Error)
- func (repo *FakeUserRepository) SetSpaceRole(userGuid, spaceGuid, orgGuid, role string) (apiErr errors.Error)
- func (repo *FakeUserRepository) UnsetOrgRole(userGuid, orgGuid, role string) (apiErr errors.Error)
- func (repo *FakeUserRepository) UnsetSpaceRole(userGuid, spaceGuid, role string) (apiErr errors.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudControllerTestRequest ¶
func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest
Types ¶
type FakeAppEventsRepo ¶
type FakeAppEventsRepo struct { AppGuid string Events []models.EventFields Error errors.Error }
func (FakeAppEventsRepo) ListEvents ¶
func (repo FakeAppEventsRepo) ListEvents(appGuid string, cb func(models.EventFields) bool) errors.Error
type FakeAppFilesRepo ¶
type FakeAppInstancesRepo ¶
type FakeAppInstancesRepo struct { GetInstancesAppGuid string GetInstancesResponses [][]models.AppInstanceFields GetInstancesErrorCodes []string }
func (*FakeAppInstancesRepo) GetInstances ¶
func (repo *FakeAppInstancesRepo) GetInstances(appGuid string) (instances []models.AppInstanceFields, apiErr errors.Error)
type FakeAppSummaryRepo ¶
type FakeAppSummaryRepo struct { GetSummariesInCurrentSpaceApps []models.AppSummary GetSummaryErrorCode string GetSummaryAppGuid string GetSummarySummary models.AppSummary }
func (*FakeAppSummaryRepo) GetSummariesInCurrentSpace ¶
func (repo *FakeAppSummaryRepo) GetSummariesInCurrentSpace() (apps []models.AppSummary, apiErr errors.Error)
func (*FakeAppSummaryRepo) GetSummary ¶
func (repo *FakeAppSummaryRepo) GetSummary(appGuid string) (summary models.AppSummary, apiErr errors.Error)
type FakeApplicationBitsRepository ¶
type FakeApplicationRepository ¶
type FakeApplicationRepository struct { FindAllApps []models.Application ReadName string ReadApp models.Application ReadErr bool ReadAuthErr bool ReadNotFound bool CreateAppParams []models.AppParams UpdateParams models.AppParams UpdateAppGuid string UpdateAppResult models.Application UpdateErr bool DeletedAppGuid string }
func (*FakeApplicationRepository) Create ¶
func (repo *FakeApplicationRepository) Create(params models.AppParams) (resultApp models.Application, apiErr errors.Error)
func (*FakeApplicationRepository) CreatedAppParams ¶
func (repo *FakeApplicationRepository) CreatedAppParams() (params models.AppParams)
func (*FakeApplicationRepository) Delete ¶
func (repo *FakeApplicationRepository) Delete(appGuid string) (apiErr errors.Error)
func (*FakeApplicationRepository) Read ¶
func (repo *FakeApplicationRepository) Read(name string) (app models.Application, apiErr errors.Error)
func (*FakeApplicationRepository) Update ¶
func (repo *FakeApplicationRepository) Update(appGuid string, params models.AppParams) (updatedApp models.Application, apiErr errors.Error)
type FakeAuthTokenRepo ¶
type FakeAuthTokenRepo struct { CreatedServiceAuthTokenFields models.ServiceAuthTokenFields FindAllAuthTokens []models.ServiceAuthTokenFields FindByLabelAndProviderLabel string FindByLabelAndProviderProvider string FindByLabelAndProviderServiceAuthTokenFields models.ServiceAuthTokenFields FindByLabelAndProviderApiResponse errors.Error UpdatedServiceAuthTokenFields models.ServiceAuthTokenFields DeletedServiceAuthTokenFields models.ServiceAuthTokenFields }
func (*FakeAuthTokenRepo) Create ¶
func (repo *FakeAuthTokenRepo) Create(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
func (*FakeAuthTokenRepo) Delete ¶
func (repo *FakeAuthTokenRepo) Delete(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
func (*FakeAuthTokenRepo) FindAll ¶
func (repo *FakeAuthTokenRepo) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr errors.Error)
func (*FakeAuthTokenRepo) FindByLabelAndProvider ¶
func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr errors.Error)
func (*FakeAuthTokenRepo) Update ¶
func (repo *FakeAuthTokenRepo) Update(authToken models.ServiceAuthTokenFields) (apiErr errors.Error)
type FakeAuthenticationRepository ¶
type FakeAuthenticationRepository struct { Config configuration.ReadWriter AuthenticateArgs struct { Credentials map[string]string } GetLoginPromptsReturns struct { Error errors.Error Prompts map[string]configuration.AuthPrompt } AuthError bool AccessToken string RefreshToken string }
func (*FakeAuthenticationRepository) Authenticate ¶
func (auth *FakeAuthenticationRepository) Authenticate(credentials map[string]string) (apiErr errors.Error)
func (*FakeAuthenticationRepository) GetLoginPrompts ¶
func (auth *FakeAuthenticationRepository) GetLoginPrompts() (prompts map[string]configuration.AuthPrompt, apiErr errors.Error)
func (*FakeAuthenticationRepository) RefreshAuthToken ¶
func (auth *FakeAuthenticationRepository) RefreshAuthToken() (updatedToken string, apiErr errors.Error)
type FakeBuildpackBitsRepository ¶
type FakeBuildpackBitsRepository struct { UploadBuildpackErr bool UploadBuildpackApiResponse errors.Error UploadBuildpackPath string }
func (*FakeBuildpackBitsRepository) UploadBuildpack ¶
type FakeBuildpackRepository ¶
type FakeBuildpackRepository struct { Buildpacks []models.Buildpack FindByNameNotFound bool FindByNameName string FindByNameBuildpack models.Buildpack FindByNameApiResponse errors.Error CreateBuildpackExists bool CreateBuildpack models.Buildpack CreateApiResponse errors.Error DeleteBuildpackGuid string DeleteApiResponse errors.Error UpdateBuildpack models.Buildpack }
func (*FakeBuildpackRepository) Delete ¶
func (repo *FakeBuildpackRepository) Delete(buildpackGuid string) (apiErr errors.Error)
func (*FakeBuildpackRepository) FindByName ¶
func (*FakeBuildpackRepository) ListBuildpacks ¶
type FakeCurlRepository ¶
type FakeDomainRepository ¶
type FakeDomainRepository struct { ListDomainsForOrgDomainsGuid string ListDomainsForOrgDomains []models.DomainFields ListDomainsForOrgApiResponse errors.Error ListDomainsDomains []models.DomainFields ListDomainsApiResponse errors.Error FindByNameInOrgName string FindByNameInOrgGuid string FindByNameInOrgDomain models.DomainFields FindByNameInOrgApiResponse errors.Error FindByNameName string FindByNameDomain models.DomainFields FindByNameNotFound bool FindByNameErr bool CreateDomainName string CreateDomainOwningOrgGuid string DeleteDomainGuid string DeleteApiResponse errors.Error }
func (*FakeDomainRepository) Create ¶
func (repo *FakeDomainRepository) Create(domainName string, owningOrgGuid string) (createdDomain models.DomainFields, apiErr errors.Error)
func (*FakeDomainRepository) CreateSharedDomain ¶
func (repo *FakeDomainRepository) CreateSharedDomain(domainName string) (apiErr errors.Error)
func (*FakeDomainRepository) Delete ¶
func (repo *FakeDomainRepository) Delete(domainGuid string) (apiErr errors.Error)
func (*FakeDomainRepository) DeleteSharedDomain ¶
func (repo *FakeDomainRepository) DeleteSharedDomain(domainGuid string) (apiErr errors.Error)
func (*FakeDomainRepository) FindByName ¶
func (repo *FakeDomainRepository) FindByName(name string) (domain models.DomainFields, apiErr errors.Error)
func (*FakeDomainRepository) FindByNameInOrg ¶
func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrgGuid string) (domain models.DomainFields, apiErr errors.Error)
func (*FakeDomainRepository) ListDomains ¶
func (repo *FakeDomainRepository) ListDomains(cb func(models.DomainFields) bool) errors.Error
func (*FakeDomainRepository) ListDomainsForOrg ¶
func (repo *FakeDomainRepository) ListDomainsForOrg(orgGuid string, cb func(models.DomainFields) bool) errors.Error
func (*FakeDomainRepository) ListSharedDomains ¶
func (repo *FakeDomainRepository) ListSharedDomains(cb func(models.DomainFields) bool) errors.Error
type FakeEndpointRepo ¶
type FakeEndpointRepo struct { Config configuration.ReadWriter UpdateEndpointReceived string UpdateEndpointError errors.Error LoggregatorEndpointReturns struct { Endpoint string Error errors.Error } UAAEndpointReturns struct { Endpoint string Error errors.Error } }
func (*FakeEndpointRepo) GetCloudControllerEndpoint ¶
func (repo *FakeEndpointRepo) GetCloudControllerEndpoint() (endpoint string, apiErr errors.Error)
func (*FakeEndpointRepo) GetLoggregatorEndpoint ¶
func (repo *FakeEndpointRepo) GetLoggregatorEndpoint() (endpoint string, apiErr errors.Error)
func (*FakeEndpointRepo) GetUAAEndpoint ¶
func (repo *FakeEndpointRepo) GetUAAEndpoint() (endpoint string, apiErr errors.Error)
func (*FakeEndpointRepo) UpdateEndpoint ¶
func (repo *FakeEndpointRepo) UpdateEndpoint(endpoint string) (finalEndpoint string, apiErr errors.Error)
type FakeLogsRepository ¶
type FakeLogsRepository struct { AppLoggedGuid string RecentLogs []*logmessage.Message TailLogMessages []*logmessage.Message TailLogStopCalled bool TailLogErr error }
func (*FakeLogsRepository) RecentLogsFor ¶
func (l *FakeLogsRepository) RecentLogsFor(appGuid string, onConnect func(), logChan chan *logmessage.Message) (err error)
func (*FakeLogsRepository) TailLogsFor ¶
func (l *FakeLogsRepository) TailLogsFor(appGuid string, onConnect func(), logChan chan *logmessage.Message, stopLoggingChan chan bool, printInterval time.Duration) (err error)
type FakeOrgRepository ¶
type FakeOrgRepository struct { Organizations []models.Organization CreateName string CreateOrgExists bool FindByNameName string FindByNameErr bool FindByNameNotFound bool FindByNameOrganization models.Organization RenameOrganizationGuid string RenameNewName string DeletedOrganizationGuid string }
func (*FakeOrgRepository) Create ¶
func (repo *FakeOrgRepository) Create(name string) (apiErr errors.Error)
func (*FakeOrgRepository) Delete ¶
func (repo *FakeOrgRepository) Delete(orgGuid string) (apiErr errors.Error)
func (*FakeOrgRepository) FindByName ¶
func (repo *FakeOrgRepository) FindByName(name string) (org models.Organization, apiErr errors.Error)
func (FakeOrgRepository) ListOrgs ¶
func (repo FakeOrgRepository) ListOrgs(cb func(models.Organization) bool) (apiErr errors.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 errors.Error)
type FakeQuotaRepository ¶
type FakeQuotaRepository struct { FindAllQuotas []models.QuotaFields FindByNameName string FindByNameQuota models.QuotaFields FindByNameNotFound bool FindByNameErr bool UpdateOrgGuid string UpdateQuotaGuid string }
func (*FakeQuotaRepository) FindAll ¶
func (repo *FakeQuotaRepository) FindAll() (quotas []models.QuotaFields, apiErr errors.Error)
func (*FakeQuotaRepository) FindByName ¶
func (repo *FakeQuotaRepository) FindByName(name string) (quota models.QuotaFields, apiErr errors.Error)
type FakeRouteRepository ¶
type FakeRouteRepository struct { FindByHostHost string FindByHostErr bool FindByHostRoute models.Route FindByHostAndDomainHost string FindByHostAndDomainDomain string FindByHostAndDomainRoute models.Route FindByHostAndDomainErr bool FindByHostAndDomainNotFound bool CreatedHost string CreatedDomainGuid string CreateInSpaceHost string CreateInSpaceDomainGuid string CreateInSpaceSpaceGuid string CreateInSpaceCreatedRoute models.Route CreateInSpaceErr bool BoundRouteGuid string BoundAppGuid string UnboundRouteGuid string UnboundAppGuid string ListErr bool Routes []models.Route DeleteRouteGuid string }
func (*FakeRouteRepository) Bind ¶
func (repo *FakeRouteRepository) Bind(routeGuid, appGuid string) (apiErr errors.Error)
func (*FakeRouteRepository) CreateInSpace ¶
func (*FakeRouteRepository) Delete ¶
func (repo *FakeRouteRepository) Delete(routeGuid string) (apiErr errors.Error)
func (*FakeRouteRepository) FindByHost ¶
func (*FakeRouteRepository) FindByHostAndDomain ¶
func (*FakeRouteRepository) ListRoutes ¶
type FakeServiceBindingRepo ¶
type FakeServiceBindingRepo struct { CreateServiceInstanceGuid string CreateApplicationGuid string CreateErrorCode string DeleteServiceInstance models.ServiceInstance DeleteApplicationGuid string DeleteBindingNotFound bool }
func (*FakeServiceBindingRepo) Create ¶
func (repo *FakeServiceBindingRepo) Create(instanceGuid, appGuid string) (apiErr errors.Error)
func (*FakeServiceBindingRepo) Delete ¶
func (repo *FakeServiceBindingRepo) Delete(instance models.ServiceInstance, appGuid string) (found bool, apiErr errors.Error)
type FakeServiceBrokerRepo ¶
type FakeServiceBrokerRepo struct { FindByNameName string FindByNameServiceBroker models.ServiceBroker FindByNameNotFound 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 errors.Error)
func (*FakeServiceBrokerRepo) Delete ¶
func (repo *FakeServiceBrokerRepo) Delete(guid string) (apiErr errors.Error)
func (*FakeServiceBrokerRepo) FindByName ¶
func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr errors.Error)
func (*FakeServiceBrokerRepo) ListServiceBrokers ¶
func (repo *FakeServiceBrokerRepo) ListServiceBrokers(callback func(broker models.ServiceBroker) bool) errors.Error
func (*FakeServiceBrokerRepo) Rename ¶
func (repo *FakeServiceBrokerRepo) Rename(guid, name string) (apiErr errors.Error)
func (*FakeServiceBrokerRepo) Update ¶
func (repo *FakeServiceBrokerRepo) Update(serviceBroker models.ServiceBroker) (apiErr errors.Error)
type FakeServiceRepo ¶
type FakeServiceRepo struct { GetAllServiceOfferingsReturns struct { ServiceOfferings []models.ServiceOffering Error errors.Error } GetServiceOfferingsForSpaceReturns struct { ServiceOfferings []models.ServiceOffering Error errors.Error } GetServiceOfferingsForSpaceArgs struct { SpaceGuid string } CreateServiceInstanceName string CreateServiceInstancePlanGuid string CreateServiceAlreadyExists 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 errors.Error FindServiceOfferingByLabelAndProviderName string FindServiceOfferingByLabelAndProviderProvider string FindServiceOfferingByLabelAndProviderServiceOffering models.ServiceOffering FindServiceOfferingByLabelAndProviderApiResponse errors.Error FindServiceOfferingByLabelAndProviderCalled bool V1ServicePlanDescription realApi.ServicePlanDescription V2ServicePlanDescription realApi.ServicePlanDescription FindServicePlanByDescriptionArguments []realApi.ServicePlanDescription FindServicePlanByDescriptionResultGuids []string FindServicePlanByDescriptionResponses []errors.Error ServiceInstanceCountForServicePlan int ServiceInstanceCountApiResponse errors.Error V1GuidToMigrate string V2GuidToMigrate string MigrateServicePlanFromV1ToV2Called bool MigrateServicePlanFromV1ToV2ReturnedCount int MigrateServicePlanFromV1ToV2Response errors.Error // contains filtered or unexported fields }
func (*FakeServiceRepo) CreateServiceInstance ¶
func (repo *FakeServiceRepo) CreateServiceInstance(name, planGuid string) (identicalAlreadyExists bool, apiErr errors.Error)
func (*FakeServiceRepo) DeleteService ¶
func (repo *FakeServiceRepo) DeleteService(instance models.ServiceInstance) (apiErr errors.Error)
func (*FakeServiceRepo) FindInstanceByName ¶
func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr errors.Error)
func (*FakeServiceRepo) FindServiceOfferingByLabelAndProvider ¶
func (repo *FakeServiceRepo) FindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr errors.Error)
func (*FakeServiceRepo) FindServicePlanByDescription ¶
func (repo *FakeServiceRepo) FindServicePlanByDescription(planDescription realApi.ServicePlanDescription) (planGuid string, apiErr errors.Error)
func (*FakeServiceRepo) GetAllServiceOfferings ¶
func (repo *FakeServiceRepo) GetAllServiceOfferings() (models.ServiceOfferings, errors.Error)
func (*FakeServiceRepo) GetServiceInstanceCountForServicePlan ¶
func (repo *FakeServiceRepo) GetServiceInstanceCountForServicePlan(v1PlanGuid string) (count int, apiErr errors.Error)
func (*FakeServiceRepo) GetServiceOfferingsForSpace ¶
func (repo *FakeServiceRepo) GetServiceOfferingsForSpace(spaceGuid string) (models.ServiceOfferings, errors.Error)
func (*FakeServiceRepo) MigrateServicePlanFromV1ToV2 ¶
func (repo *FakeServiceRepo) MigrateServicePlanFromV1ToV2(v1PlanGuid, v2PlanGuid string) (changedCount int, apiErr errors.Error)
func (*FakeServiceRepo) PurgeServiceOffering ¶
func (repo *FakeServiceRepo) PurgeServiceOffering(offering models.ServiceOffering) (apiErr errors.Error)
func (*FakeServiceRepo) RenameService ¶
func (repo *FakeServiceRepo) RenameService(instance models.ServiceInstance, newName string) (apiErr errors.Error)
type FakeServiceSummaryRepo ¶
type FakeServiceSummaryRepo struct {
GetSummariesInCurrentSpaceInstances []models.ServiceInstance
}
func (*FakeServiceSummaryRepo) GetSummariesInCurrentSpace ¶
func (repo *FakeServiceSummaryRepo) GetSummariesInCurrentSpace() (instances []models.ServiceInstance, apiErr errors.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 SummarySpace models.Space CreateSpaceName string CreateSpaceOrgGuid string CreateSpaceExists bool CreateSpaceSpace models.Space RenameSpaceGuid string RenameNewName string DeletedSpaceGuid string }
func (*FakeSpaceRepository) Delete ¶
func (repo *FakeSpaceRepository) Delete(spaceGuid string) (apiErr errors.Error)
func (*FakeSpaceRepository) FindByName ¶
func (*FakeSpaceRepository) FindByNameInOrg ¶
func (FakeSpaceRepository) GetCurrentSpace ¶
func (repo FakeSpaceRepository) GetCurrentSpace() (space models.Space)
func (*FakeSpaceRepository) GetSummary ¶
func (repo *FakeSpaceRepository) GetSummary() (space models.Space, apiErr errors.Error)
func (FakeSpaceRepository) ListSpaces ¶
type FakeStackRepository ¶
type FakeStackRepository struct { FindByNameStack models.Stack FindByNameName string FindAllStacks []models.Stack }
func (*FakeStackRepository) FindAll ¶
func (repo *FakeStackRepository) FindAll() (stacks []models.Stack, apiErr errors.Error)
func (*FakeStackRepository) FindByName ¶
type FakeUserProvidedServiceInstanceRepo ¶
type FakeUserProvidedServiceInstanceRepo struct { CreateName string CreateDrainUrl string CreateParams map[string]string UpdateServiceInstance models.ServiceInstanceFields }
func (*FakeUserProvidedServiceInstanceRepo) Update ¶
func (repo *FakeUserProvidedServiceInstanceRepo) Update(serviceInstance models.ServiceInstanceFields) (apiErr errors.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 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 }
func (*FakeUserRepository) Create ¶
func (repo *FakeUserRepository) Create(username, password string) (apiErr errors.Error)
func (*FakeUserRepository) Delete ¶
func (repo *FakeUserRepository) Delete(userGuid string) (apiErr errors.Error)
func (*FakeUserRepository) FindByUsername ¶
func (repo *FakeUserRepository) FindByUsername(username string) (user models.UserFields, apiErr errors.Error)
func (*FakeUserRepository) ListUsersInOrgForRole ¶
func (repo *FakeUserRepository) ListUsersInOrgForRole(orgGuid string, roleName string) ([]models.UserFields, errors.Error)
func (*FakeUserRepository) ListUsersInSpaceForRole ¶
func (repo *FakeUserRepository) ListUsersInSpaceForRole(spaceGuid string, roleName string) ([]models.UserFields, errors.Error)
func (*FakeUserRepository) SetOrgRole ¶
func (repo *FakeUserRepository) SetOrgRole(userGuid, orgGuid, role string) (apiErr errors.Error)
func (*FakeUserRepository) SetSpaceRole ¶
func (repo *FakeUserRepository) SetSpaceRole(userGuid, spaceGuid, orgGuid, role string) (apiErr errors.Error)
func (*FakeUserRepository) UnsetOrgRole ¶
func (repo *FakeUserRepository) UnsetOrgRole(userGuid, orgGuid, role string) (apiErr errors.Error)
func (*FakeUserRepository) UnsetSpaceRole ¶
func (repo *FakeUserRepository) UnsetSpaceRole(userGuid, spaceGuid, role string) (apiErr errors.Error)
Source Files ¶
- fake_app_bits_repo.go
- fake_app_events_repo.go
- fake_app_files_repo.go
- fake_app_instances_repo.go
- fake_app_repo.go
- 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_logs_repository.go
- fake_org_repo.go
- fake_pwd_repo.go
- fake_quota_repo.go
- fake_route_repo.go
- fake_service_binding_repo.go
- fake_service_broker_repo.go
- fake_service_repo.go
- fake_service_summary_repo.go
- fake_space_repo.go
- fake_stack_repo.go
- fake_user_provided_service_instance_repo.go
- fake_user_repo.go
Click to show internal directories.
Click to hide internal directories.