Documentation
¶
Index ¶
- func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest
- type FakeAppEventsRepo
- type FakeAppFilesRepo
- type FakeAppSummaryRepo
- type FakeApplicationBitsRepository
- type FakeApplicationRepository
- func (repo *FakeApplicationRepository) Create(newApp cf.Application) (createdApp cf.Application, apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) Delete(app cf.Application) (apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) FindByName(name string) (app cf.Application, apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) GetInstances(app cf.Application) (instances []cf.ApplicationInstance, apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) Rename(app cf.Application, newName string) (apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) Scale(app cf.Application) (apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) SetEnv(app cf.Application, envVars map[string]string) (apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) Start(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
- func (repo *FakeApplicationRepository) Stop(appToStop cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
- type FakeAuthTokenRepo
- func (repo *FakeAuthTokenRepo) Create(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
- func (repo *FakeAuthTokenRepo) Delete(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
- func (repo *FakeAuthTokenRepo) FindAll() (authTokens []cf.ServiceAuthToken, apiResponse net.ApiResponse)
- func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken cf.ServiceAuthToken, apiResponse net.ApiResponse)
- func (repo *FakeAuthTokenRepo) Update(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
- type FakeAuthenticationRepository
- type FakeBuildpackBitsRepository
- type FakeBuildpackRepository
- func (repo *FakeBuildpackRepository) Create(newBuildpack cf.Buildpack) (cf.Buildpack, net.ApiResponse)
- func (repo *FakeBuildpackRepository) Delete(buildpack cf.Buildpack) (apiResponse net.ApiResponse)
- func (repo *FakeBuildpackRepository) FindAll() (buildpacks []cf.Buildpack, apiResponse net.ApiResponse)
- func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack cf.Buildpack, apiResponse net.ApiResponse)
- func (repo *FakeBuildpackRepository) Update(buildpack cf.Buildpack) (updatedBuildpack cf.Buildpack, apiResponse net.ApiResponse)
- type FakeDomainRepository
- func (repo *FakeDomainRepository) Create(domainToCreate cf.Domain, owningOrg cf.Organization) (createdDomain cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) CreateSharedDomain(domain cf.Domain) (apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) Delete(domain cf.Domain) (apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) FindAllByOrg(org cf.Organization) (domains []cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) FindByName(name string) (domain cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) FindByNameInCurrentSpace(name string) (domain cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrg cf.Organization) (domain cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) FindDefaultAppDomain() (domain cf.Domain, apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) Map(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
- func (repo *FakeDomainRepository) Unmap(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
- type FakeEndpointRepo
- type FakeLogsRepository
- type FakeOrgRepository
- func (repo *FakeOrgRepository) Create(name string) (apiResponse net.ApiResponse)
- func (repo *FakeOrgRepository) Delete(org cf.Organization) (apiResponse net.ApiResponse)
- func (repo FakeOrgRepository) FindAll() (orgs []cf.Organization, apiResponse net.ApiResponse)
- func (repo *FakeOrgRepository) FindByName(name string) (org cf.Organization, apiResponse net.ApiResponse)
- func (repo *FakeOrgRepository) FindQuotaByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)
- func (repo *FakeOrgRepository) Rename(org cf.Organization, newName string) (apiResponse net.ApiResponse)
- func (repo *FakeOrgRepository) UpdateQuota(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)
- type FakePasswordRepo
- type FakeQuotaRepository
- func (repo *FakeQuotaRepository) FindAll() (quotas []cf.Quota, apiResponse net.ApiResponse)
- func (repo *FakeQuotaRepository) FindByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)
- func (repo *FakeQuotaRepository) Update(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)
- type FakeRouteRepository
- func (repo *FakeRouteRepository) Bind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) Create(newRoute cf.Route, domain cf.Domain) (createdRoute cf.Route, apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) CreateInSpace(newRoute cf.Route, domain cf.Domain, space cf.Space) (createdRoute cf.Route, apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) Delete(route cf.Route) (apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) FindAll() (routes []cf.Route, apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) FindByHost(host string) (route cf.Route, apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) FindByHostAndDomain(host, domain string) (route cf.Route, apiResponse net.ApiResponse)
- func (repo *FakeRouteRepository) Unbind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
- type FakeServiceBindingRepo
- type FakeServiceBrokerRepo
- func (repo *FakeServiceBrokerRepo) Create(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
- func (repo *FakeServiceBrokerRepo) Delete(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
- func (repo *FakeServiceBrokerRepo) FindAll() (serviceBrokers []cf.ServiceBroker, apiResponse net.ApiResponse)
- func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker cf.ServiceBroker, apiResponse net.ApiResponse)
- func (repo *FakeServiceBrokerRepo) Rename(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
- func (repo *FakeServiceBrokerRepo) Update(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
- type FakeServiceRepo
- func (repo *FakeServiceRepo) CreateServiceInstance(name string, plan cf.ServicePlan) (identicalAlreadyExists bool, apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) CreateUserProvidedServiceInstance(name string, params map[string]string) (apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) DeleteService(instance cf.ServiceInstance) (apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance cf.ServiceInstance, apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) GetServiceOfferings() (offerings []cf.ServiceOffering, apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) RenameService(instance cf.ServiceInstance, newName string) (apiResponse net.ApiResponse)
- func (repo *FakeServiceRepo) UpdateUserProvidedServiceInstance(serviceInstance cf.ServiceInstance, params map[string]string) (apiResponse net.ApiResponse)
- type FakeServiceSummaryRepo
- type FakeSpaceRepository
- func (repo *FakeSpaceRepository) Create(name string) (apiResponse net.ApiResponse)
- func (repo *FakeSpaceRepository) Delete(space cf.Space) (apiResponse net.ApiResponse)
- func (repo FakeSpaceRepository) FindAll() (spaces []cf.Space, apiResponse net.ApiResponse)
- func (repo *FakeSpaceRepository) FindByName(name string) (space cf.Space, apiResponse net.ApiResponse)
- func (repo *FakeSpaceRepository) FindByNameInOrg(name string, org cf.Organization) (space cf.Space, apiResponse net.ApiResponse)
- func (repo FakeSpaceRepository) GetCurrentSpace() (space cf.Space)
- func (repo *FakeSpaceRepository) GetSummary() (space cf.Space, apiResponse net.ApiResponse)
- func (repo *FakeSpaceRepository) Rename(space cf.Space, newName string) (apiResponse net.ApiResponse)
- type FakeStackRepository
- type FakeUserProvidedServiceInstanceRepo
- type FakeUserRepository
- func (repo *FakeUserRepository) Create(user cf.User) (apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) Delete(user cf.User) (apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) FindAllInOrgByRole(org cf.Organization) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) FindAllInSpaceByRole(space cf.Space) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) FindByUsername(username string) (user cf.User, apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) SetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) SetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) UnsetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
- func (repo *FakeUserRepository) UnsetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)
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 {
Application cf.Application
Events []cf.Event
}
func (FakeAppEventsRepo) ListEvents ¶
func (repo FakeAppEventsRepo) ListEvents(app cf.Application) (events []cf.Event, apiResponse net.ApiResponse)
type FakeAppFilesRepo ¶
type FakeAppFilesRepo struct {
Application cf.Application
Path string
FileList string
}
func (*FakeAppFilesRepo) ListFiles ¶
func (repo *FakeAppFilesRepo) ListFiles(app cf.Application, path string) (files string, apiResponse net.ApiResponse)
type FakeAppSummaryRepo ¶
type FakeAppSummaryRepo struct {
GetSummariesInCurrentSpaceApps []cf.Application
GetSummaryErrorCode string
GetSummaryApp cf.Application
GetSummarySummary cf.AppSummary
}
func (*FakeAppSummaryRepo) GetSummariesInCurrentSpace ¶
func (repo *FakeAppSummaryRepo) GetSummariesInCurrentSpace() (apps []cf.Application, apiResponse net.ApiResponse)
func (*FakeAppSummaryRepo) GetSummary ¶
func (repo *FakeAppSummaryRepo) GetSummary(app cf.Application) (summary cf.AppSummary, apiResponse net.ApiResponse)
type FakeApplicationBitsRepository ¶
type FakeApplicationBitsRepository struct {
UploadedApp cf.Application
UploadedDir string
UploadAppErr bool
}
func (*FakeApplicationBitsRepository) UploadApp ¶
func (repo *FakeApplicationBitsRepository) UploadApp(app cf.Application, dir string) (apiResponse net.ApiResponse)
type FakeApplicationRepository ¶
type FakeApplicationRepository struct {
ScaledApp cf.Application
StartAppToStart cf.Application
StartAppErr bool
StartUpdatedApp cf.Application
StopAppToStop cf.Application
StopAppErr bool
StopUpdatedApp cf.Application
DeletedApp cf.Application
FindAllApps []cf.Application
FindByNameName string
FindByNameApp cf.Application
FindByNameErr bool
FindByNameAuthErr bool
FindByNameNotFound bool
SetEnvApp cf.Application
SetEnvVars map[string]string
SetEnvValue string
SetEnvErr bool
CreatedApp cf.Application
RenameApp cf.Application
RenameNewName string
GetInstancesResponses [][]cf.ApplicationInstance
GetInstancesErrorCodes []string
}
func (*FakeApplicationRepository) Create ¶
func (repo *FakeApplicationRepository) Create(newApp cf.Application) (createdApp cf.Application, apiResponse net.ApiResponse)
func (*FakeApplicationRepository) Delete ¶
func (repo *FakeApplicationRepository) Delete(app cf.Application) (apiResponse net.ApiResponse)
func (*FakeApplicationRepository) FindByName ¶
func (repo *FakeApplicationRepository) FindByName(name string) (app cf.Application, apiResponse net.ApiResponse)
func (*FakeApplicationRepository) GetInstances ¶
func (repo *FakeApplicationRepository) GetInstances(app cf.Application) (instances []cf.ApplicationInstance, apiResponse net.ApiResponse)
func (*FakeApplicationRepository) Rename ¶
func (repo *FakeApplicationRepository) Rename(app cf.Application, newName string) (apiResponse net.ApiResponse)
func (*FakeApplicationRepository) Scale ¶
func (repo *FakeApplicationRepository) Scale(app cf.Application) (apiResponse net.ApiResponse)
func (*FakeApplicationRepository) SetEnv ¶
func (repo *FakeApplicationRepository) SetEnv(app cf.Application, envVars map[string]string) (apiResponse net.ApiResponse)
func (*FakeApplicationRepository) Start ¶
func (repo *FakeApplicationRepository) Start(app cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
func (*FakeApplicationRepository) Stop ¶
func (repo *FakeApplicationRepository) Stop(appToStop cf.Application) (updatedApp cf.Application, apiResponse net.ApiResponse)
type FakeAuthTokenRepo ¶
type FakeAuthTokenRepo struct {
CreatedServiceAuthToken cf.ServiceAuthToken
FindAllAuthTokens []cf.ServiceAuthToken
FindByLabelAndProviderLabel string
FindByLabelAndProviderProvider string
FindByLabelAndProviderServiceAuthToken cf.ServiceAuthToken
FindByLabelAndProviderApiResponse net.ApiResponse
UpdatedServiceAuthToken cf.ServiceAuthToken
DeletedServiceAuthToken cf.ServiceAuthToken
}
func (*FakeAuthTokenRepo) Create ¶
func (repo *FakeAuthTokenRepo) Create(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
func (*FakeAuthTokenRepo) Delete ¶
func (repo *FakeAuthTokenRepo) Delete(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
func (*FakeAuthTokenRepo) FindAll ¶
func (repo *FakeAuthTokenRepo) FindAll() (authTokens []cf.ServiceAuthToken, apiResponse net.ApiResponse)
func (*FakeAuthTokenRepo) FindByLabelAndProvider ¶
func (repo *FakeAuthTokenRepo) FindByLabelAndProvider(label, provider string) (authToken cf.ServiceAuthToken, apiResponse net.ApiResponse)
func (*FakeAuthTokenRepo) Update ¶
func (repo *FakeAuthTokenRepo) Update(authToken cf.ServiceAuthToken) (apiResponse net.ApiResponse)
type FakeAuthenticationRepository ¶
type FakeAuthenticationRepository struct {
ConfigRepo testconfig.FakeConfigRepository
Config *configuration.Configuration
Email string
Password string
AuthError bool
AccessToken string
RefreshToken string
}
func (*FakeAuthenticationRepository) Authenticate ¶
func (auth *FakeAuthenticationRepository) Authenticate(email string, password string) (apiResponse net.ApiResponse)
func (*FakeAuthenticationRepository) RefreshAuthToken ¶
func (auth *FakeAuthenticationRepository) RefreshAuthToken() (updatedToken string, apiResponse net.ApiResponse)
type FakeBuildpackBitsRepository ¶
type FakeBuildpackBitsRepository struct {
UploadBuildpackErr bool
UploadBuildpackApiResponse net.ApiResponse
UploadBuildpackPath string
}
func (*FakeBuildpackBitsRepository) UploadBuildpack ¶
func (repo *FakeBuildpackBitsRepository) UploadBuildpack(buildpack cf.Buildpack, dir string) net.ApiResponse
type FakeBuildpackRepository ¶
type FakeBuildpackRepository struct {
Buildpacks []cf.Buildpack
FindByNameNotFound bool
FindByNameName string
FindByNameBuildpack cf.Buildpack
FindByNameApiResponse net.ApiResponse
CreateBuildpackExists bool
CreateBuildpack cf.Buildpack
CreateApiResponse net.ApiResponse
DeleteBuildpack cf.Buildpack
DeleteApiResponse net.ApiResponse
UpdateBuildpack cf.Buildpack
}
func (*FakeBuildpackRepository) Create ¶
func (repo *FakeBuildpackRepository) Create(newBuildpack cf.Buildpack) (cf.Buildpack, net.ApiResponse)
func (*FakeBuildpackRepository) Delete ¶
func (repo *FakeBuildpackRepository) Delete(buildpack cf.Buildpack) (apiResponse net.ApiResponse)
func (*FakeBuildpackRepository) FindAll ¶
func (repo *FakeBuildpackRepository) FindAll() (buildpacks []cf.Buildpack, apiResponse net.ApiResponse)
func (*FakeBuildpackRepository) FindByName ¶
func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack cf.Buildpack, apiResponse net.ApiResponse)
func (*FakeBuildpackRepository) Update ¶
func (repo *FakeBuildpackRepository) Update(buildpack cf.Buildpack) (updatedBuildpack cf.Buildpack, apiResponse net.ApiResponse)
type FakeDomainRepository ¶
type FakeDomainRepository struct {
DefaultAppDomain cf.Domain
FindAllInCurrentSpaceDomains []cf.Domain
FindAllByOrgOrg cf.Organization
FindAllByOrgDomains []cf.Domain
FindByNameInOrgDomain cf.Domain
FindByNameInOrgApiResponse net.ApiResponse
FindByNameInCurrentSpaceName string
FindByNameName string
FindByNameDomain cf.Domain
FindByNameNotFound bool
FindByNameErr bool
CreateDomainDomainToCreate cf.Domain
CreateDomainOwningOrg cf.Organization
MapDomain cf.Domain
MapSpace cf.Space
MapApiResponse net.ApiResponse
UnmapDomain cf.Domain
UnmapSpace cf.Space
UnmapApiResponse net.ApiResponse
DeleteDomain cf.Domain
DeleteApiResponse net.ApiResponse
}
func (*FakeDomainRepository) Create ¶
func (repo *FakeDomainRepository) Create(domainToCreate cf.Domain, owningOrg cf.Organization) (createdDomain cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) CreateSharedDomain ¶
func (repo *FakeDomainRepository) CreateSharedDomain(domain cf.Domain) (apiResponse net.ApiResponse)
func (*FakeDomainRepository) Delete ¶
func (repo *FakeDomainRepository) Delete(domain cf.Domain) (apiResponse net.ApiResponse)
func (*FakeDomainRepository) FindAllByOrg ¶
func (repo *FakeDomainRepository) FindAllByOrg(org cf.Organization) (domains []cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) FindByName ¶
func (repo *FakeDomainRepository) FindByName(name string) (domain cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) FindByNameInCurrentSpace ¶
func (repo *FakeDomainRepository) FindByNameInCurrentSpace(name string) (domain cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) FindByNameInOrg ¶
func (repo *FakeDomainRepository) FindByNameInOrg(name string, owningOrg cf.Organization) (domain cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) FindDefaultAppDomain ¶
func (repo *FakeDomainRepository) FindDefaultAppDomain() (domain cf.Domain, apiResponse net.ApiResponse)
func (*FakeDomainRepository) Map ¶
func (repo *FakeDomainRepository) Map(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
func (*FakeDomainRepository) Unmap ¶
func (repo *FakeDomainRepository) Unmap(domain cf.Domain, space cf.Space) (apiResponse net.ApiResponse)
type FakeEndpointRepo ¶
type FakeEndpointRepo struct {
ConfigRepo testconfig.FakeConfigRepository
Config *configuration.Configuration
UpdateEndpointEndpoint string
UpdateEndpointError bool
GetEndpointEndpoints map[cf.EndpointType]string
}
func (*FakeEndpointRepo) GetEndpoint ¶
func (repo *FakeEndpointRepo) GetEndpoint(name cf.EndpointType) (endpoint string, apiResponse net.ApiResponse)
func (*FakeEndpointRepo) UpdateEndpoint ¶
func (repo *FakeEndpointRepo) UpdateEndpoint(endpoint string) (finalEndpoint string, apiResponse net.ApiResponse)
type FakeLogsRepository ¶
type FakeLogsRepository struct {
AppLogged cf.Application
RecentLogs []logmessage.LogMessage
TailLogMessages []logmessage.LogMessage
TailLogStopCalled bool
}
func (*FakeLogsRepository) RecentLogsFor ¶
func (l *FakeLogsRepository) RecentLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message) (err error)
func (*FakeLogsRepository) TailLogsFor ¶
func (l *FakeLogsRepository) TailLogsFor(app cf.Application, onConnect func(), logChan chan *logmessage.Message, stopLoggingChan chan bool, printInterval time.Duration) (err error)
type FakeOrgRepository ¶
type FakeOrgRepository struct {
Organizations []cf.Organization
CreateName string
CreateOrgExists bool
FindByNameName string
FindByNameErr bool
FindByNameNotFound bool
FindByNameOrganization cf.Organization
RenameOrganization cf.Organization
RenameNewName string
DeletedOrganization cf.Organization
FindQuotaByNameName string
FindQuotaByNameQuota cf.Quota
FindQuotaByNameNotFound bool
FindQuotaByNameErr bool
UpdateQuotaOrg cf.Organization
UpdateQuotaQuota cf.Quota
}
func (*FakeOrgRepository) Create ¶
func (repo *FakeOrgRepository) Create(name string) (apiResponse net.ApiResponse)
func (*FakeOrgRepository) Delete ¶
func (repo *FakeOrgRepository) Delete(org cf.Organization) (apiResponse net.ApiResponse)
func (FakeOrgRepository) FindAll ¶
func (repo FakeOrgRepository) FindAll() (orgs []cf.Organization, apiResponse net.ApiResponse)
func (*FakeOrgRepository) FindByName ¶
func (repo *FakeOrgRepository) FindByName(name string) (org cf.Organization, apiResponse net.ApiResponse)
func (*FakeOrgRepository) FindQuotaByName ¶
func (repo *FakeOrgRepository) FindQuotaByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)
func (*FakeOrgRepository) Rename ¶
func (repo *FakeOrgRepository) Rename(org cf.Organization, newName string) (apiResponse net.ApiResponse)
func (*FakeOrgRepository) UpdateQuota ¶
func (repo *FakeOrgRepository) UpdateQuota(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)
type FakePasswordRepo ¶
type FakePasswordRepo struct {
Score string
ScoredPassword string
UpdateNewPassword string
UpdateOldPassword string
}
func (*FakePasswordRepo) GetScore ¶
func (repo *FakePasswordRepo) GetScore(password string) (score string, apiResponse net.ApiResponse)
func (*FakePasswordRepo) UpdatePassword ¶
func (repo *FakePasswordRepo) UpdatePassword(old string, new string) (apiResponse net.ApiResponse)
type FakeQuotaRepository ¶
type FakeQuotaRepository struct {
FindByNameName string
FindByNameQuota cf.Quota
FindByNameNotFound bool
FindByNameErr bool
FindAllQuotas []cf.Quota
UpdateOrg cf.Organization
UpdateQuota cf.Quota
}
func (*FakeQuotaRepository) FindAll ¶
func (repo *FakeQuotaRepository) FindAll() (quotas []cf.Quota, apiResponse net.ApiResponse)
func (*FakeQuotaRepository) FindByName ¶
func (repo *FakeQuotaRepository) FindByName(name string) (quota cf.Quota, apiResponse net.ApiResponse)
func (*FakeQuotaRepository) Update ¶
func (repo *FakeQuotaRepository) Update(org cf.Organization, quota cf.Quota) (apiResponse net.ApiResponse)
type FakeRouteRepository ¶
type FakeRouteRepository struct {
FindByHostHost string
FindByHostErr bool
FindByHostRoute cf.Route
FindByHostAndDomainHost string
FindByHostAndDomainDomain string
FindByHostAndDomainRoute cf.Route
FindByHostAndDomainErr bool
FindByHostAndDomainNotFound bool
CreatedRoute cf.Route
CreatedRouteDomain cf.Domain
CreateInSpaceRoute cf.Route
CreateInSpaceDomain cf.Domain
CreateInSpaceSpace cf.Space
CreateInSpaceCreatedRoute cf.Route
CreateInSpaceErr bool
BoundRoute cf.Route
BoundApp cf.Application
UnboundRoute cf.Route
UnboundApp cf.Application
FindAllErr bool
FindAllRoutes []cf.Route
DeleteRoute cf.Route
}
func (*FakeRouteRepository) Bind ¶
func (repo *FakeRouteRepository) Bind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
func (*FakeRouteRepository) Create ¶
func (repo *FakeRouteRepository) Create(newRoute cf.Route, domain cf.Domain) (createdRoute cf.Route, apiResponse net.ApiResponse)
func (*FakeRouteRepository) CreateInSpace ¶
func (*FakeRouteRepository) Delete ¶
func (repo *FakeRouteRepository) Delete(route cf.Route) (apiResponse net.ApiResponse)
func (*FakeRouteRepository) FindAll ¶
func (repo *FakeRouteRepository) FindAll() (routes []cf.Route, apiResponse net.ApiResponse)
func (*FakeRouteRepository) FindByHost ¶
func (repo *FakeRouteRepository) FindByHost(host string) (route cf.Route, apiResponse net.ApiResponse)
func (*FakeRouteRepository) FindByHostAndDomain ¶
func (repo *FakeRouteRepository) FindByHostAndDomain(host, domain string) (route cf.Route, apiResponse net.ApiResponse)
func (*FakeRouteRepository) Unbind ¶
func (repo *FakeRouteRepository) Unbind(route cf.Route, app cf.Application) (apiResponse net.ApiResponse)
type FakeServiceBindingRepo ¶
type FakeServiceBindingRepo struct {
CreateServiceInstance cf.ServiceInstance
CreateApplication cf.Application
CreateErrorCode string
DeleteServiceInstance cf.ServiceInstance
DeleteApplication cf.Application
DeleteBindingNotFound bool
}
func (*FakeServiceBindingRepo) Create ¶
func (repo *FakeServiceBindingRepo) Create(instance cf.ServiceInstance, app cf.Application) (apiResponse net.ApiResponse)
func (*FakeServiceBindingRepo) Delete ¶
func (repo *FakeServiceBindingRepo) Delete(instance cf.ServiceInstance, app cf.Application) (found bool, apiResponse net.ApiResponse)
type FakeServiceBrokerRepo ¶
type FakeServiceBrokerRepo struct {
FindByNameName string
FindByNameServiceBroker cf.ServiceBroker
FindByNameNotFound bool
CreatedServiceBroker cf.ServiceBroker
UpdatedServiceBroker cf.ServiceBroker
RenamedServiceBroker cf.ServiceBroker
DeletedServiceBroker cf.ServiceBroker
FindAllServiceBrokers []cf.ServiceBroker
FindAllErr bool
}
func (*FakeServiceBrokerRepo) Create ¶
func (repo *FakeServiceBrokerRepo) Create(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
func (*FakeServiceBrokerRepo) Delete ¶
func (repo *FakeServiceBrokerRepo) Delete(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
func (*FakeServiceBrokerRepo) FindAll ¶
func (repo *FakeServiceBrokerRepo) FindAll() (serviceBrokers []cf.ServiceBroker, apiResponse net.ApiResponse)
func (*FakeServiceBrokerRepo) FindByName ¶
func (repo *FakeServiceBrokerRepo) FindByName(name string) (serviceBroker cf.ServiceBroker, apiResponse net.ApiResponse)
func (*FakeServiceBrokerRepo) Rename ¶
func (repo *FakeServiceBrokerRepo) Rename(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
func (*FakeServiceBrokerRepo) Update ¶
func (repo *FakeServiceBrokerRepo) Update(serviceBroker cf.ServiceBroker) (apiResponse net.ApiResponse)
type FakeServiceRepo ¶
type FakeServiceRepo struct {
ServiceOfferings []cf.ServiceOffering
CreateServiceInstanceName string
CreateServiceInstancePlan cf.ServicePlan
CreateServiceAlreadyExists bool
CreateUserProvidedServiceInstanceName string
CreateUserProvidedServiceInstanceParameters map[string]string
UpdateUserProvidedServiceInstanceServiceInstance cf.ServiceInstance
UpdateUserProvidedServiceInstanceParameters map[string]string
FindInstanceByNameName string
FindInstanceByNameServiceInstance cf.ServiceInstance
FindInstanceByNameErr bool
FindInstanceByNameNotFound bool
DeleteServiceServiceInstance cf.ServiceInstance
RenameServiceServiceInstance cf.ServiceInstance
RenameServiceNewName string
}
func (*FakeServiceRepo) CreateServiceInstance ¶
func (repo *FakeServiceRepo) CreateServiceInstance(name string, plan cf.ServicePlan) (identicalAlreadyExists bool, apiResponse net.ApiResponse)
func (*FakeServiceRepo) CreateUserProvidedServiceInstance ¶
func (repo *FakeServiceRepo) CreateUserProvidedServiceInstance(name string, params map[string]string) (apiResponse net.ApiResponse)
func (*FakeServiceRepo) DeleteService ¶
func (repo *FakeServiceRepo) DeleteService(instance cf.ServiceInstance) (apiResponse net.ApiResponse)
func (*FakeServiceRepo) FindInstanceByName ¶
func (repo *FakeServiceRepo) FindInstanceByName(name string) (instance cf.ServiceInstance, apiResponse net.ApiResponse)
func (*FakeServiceRepo) GetServiceOfferings ¶
func (repo *FakeServiceRepo) GetServiceOfferings() (offerings []cf.ServiceOffering, apiResponse net.ApiResponse)
func (*FakeServiceRepo) RenameService ¶
func (repo *FakeServiceRepo) RenameService(instance cf.ServiceInstance, newName string) (apiResponse net.ApiResponse)
func (*FakeServiceRepo) UpdateUserProvidedServiceInstance ¶
func (repo *FakeServiceRepo) UpdateUserProvidedServiceInstance(serviceInstance cf.ServiceInstance, params map[string]string) (apiResponse net.ApiResponse)
type FakeServiceSummaryRepo ¶
type FakeServiceSummaryRepo struct {
GetSummariesInCurrentSpaceInstances []cf.ServiceInstance
}
func (*FakeServiceSummaryRepo) GetSummariesInCurrentSpace ¶
func (repo *FakeServiceSummaryRepo) GetSummariesInCurrentSpace() (instances []cf.ServiceInstance, apiResponse net.ApiResponse)
type FakeSpaceRepository ¶
type FakeSpaceRepository struct {
CurrentSpace cf.Space
Spaces []cf.Space
FindByNameName string
FindByNameSpace cf.Space
FindByNameErr bool
FindByNameNotFound bool
FindByNameInOrgName string
FindByNameInOrgOrg cf.Organization
FindByNameInOrgSpace cf.Space
SummarySpace cf.Space
CreateSpaceName string
CreateSpaceExists bool
RenameSpace cf.Space
RenameNewName string
DeletedSpace cf.Space
}
func (*FakeSpaceRepository) Create ¶
func (repo *FakeSpaceRepository) Create(name string) (apiResponse net.ApiResponse)
func (*FakeSpaceRepository) Delete ¶
func (repo *FakeSpaceRepository) Delete(space cf.Space) (apiResponse net.ApiResponse)
func (FakeSpaceRepository) FindAll ¶
func (repo FakeSpaceRepository) FindAll() (spaces []cf.Space, apiResponse net.ApiResponse)
func (*FakeSpaceRepository) FindByName ¶
func (repo *FakeSpaceRepository) FindByName(name string) (space cf.Space, apiResponse net.ApiResponse)
func (*FakeSpaceRepository) FindByNameInOrg ¶
func (repo *FakeSpaceRepository) FindByNameInOrg(name string, org cf.Organization) (space cf.Space, apiResponse net.ApiResponse)
func (FakeSpaceRepository) GetCurrentSpace ¶
func (repo FakeSpaceRepository) GetCurrentSpace() (space cf.Space)
func (*FakeSpaceRepository) GetSummary ¶
func (repo *FakeSpaceRepository) GetSummary() (space cf.Space, apiResponse net.ApiResponse)
func (*FakeSpaceRepository) Rename ¶
func (repo *FakeSpaceRepository) Rename(space cf.Space, newName string) (apiResponse net.ApiResponse)
type FakeStackRepository ¶
type FakeStackRepository struct {
FindByNameStack cf.Stack
FindByNameName string
FindAllStacks []cf.Stack
}
func (*FakeStackRepository) FindAll ¶
func (repo *FakeStackRepository) FindAll() (stacks []cf.Stack, apiResponse net.ApiResponse)
func (*FakeStackRepository) FindByName ¶
func (repo *FakeStackRepository) FindByName(name string) (stack cf.Stack, apiResponse net.ApiResponse)
type FakeUserProvidedServiceInstanceRepo ¶
type FakeUserProvidedServiceInstanceRepo struct {
CreateServiceInstance cf.ServiceInstance
UpdateServiceInstance cf.ServiceInstance
}
func (*FakeUserProvidedServiceInstanceRepo) Create ¶
func (repo *FakeUserProvidedServiceInstanceRepo) Create(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)
func (*FakeUserProvidedServiceInstanceRepo) Update ¶
func (repo *FakeUserProvidedServiceInstanceRepo) Update(serviceInstance cf.ServiceInstance) (apiResponse net.ApiResponse)
type FakeUserRepository ¶
type FakeUserRepository struct {
FindByUsernameUsername string
FindByUsernameUser cf.User
FindByUsernameNotFound bool
FindAllInOrgByRoleOrganization cf.Organization
FindAllInOrgByRoleUsersByRole map[string][]cf.User
FindAllInSpaceByRoleSpace cf.Space
FindAllInSpaceByRoleUsersByRole map[string][]cf.User
CreateUserUser cf.User
CreateUserExists bool
DeleteUser cf.User
SetOrgRoleUser cf.User
SetOrgRoleOrganization cf.Organization
SetOrgRoleRole string
UnsetOrgRoleUser cf.User
UnsetOrgRoleOrganization cf.Organization
UnsetOrgRoleRole string
SetSpaceRoleUser cf.User
SetSpaceRoleSpace cf.Space
SetSpaceRoleRole string
UnsetSpaceRoleUser cf.User
UnsetSpaceRoleSpace cf.Space
UnsetSpaceRoleRole string
}
func (*FakeUserRepository) Create ¶
func (repo *FakeUserRepository) Create(user cf.User) (apiResponse net.ApiResponse)
func (*FakeUserRepository) Delete ¶
func (repo *FakeUserRepository) Delete(user cf.User) (apiResponse net.ApiResponse)
func (*FakeUserRepository) FindAllInOrgByRole ¶
func (repo *FakeUserRepository) FindAllInOrgByRole(org cf.Organization) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
func (*FakeUserRepository) FindAllInSpaceByRole ¶
func (repo *FakeUserRepository) FindAllInSpaceByRole(space cf.Space) (usersByRole map[string][]cf.User, apiResponse net.ApiResponse)
func (*FakeUserRepository) FindByUsername ¶
func (repo *FakeUserRepository) FindByUsername(username string) (user cf.User, apiResponse net.ApiResponse)
func (*FakeUserRepository) SetOrgRole ¶
func (repo *FakeUserRepository) SetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
func (*FakeUserRepository) SetSpaceRole ¶
func (repo *FakeUserRepository) SetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)
func (*FakeUserRepository) UnsetOrgRole ¶
func (repo *FakeUserRepository) UnsetOrgRole(user cf.User, org cf.Organization, role string) (apiResponse net.ApiResponse)
func (*FakeUserRepository) UnsetSpaceRole ¶
func (repo *FakeUserRepository) UnsetSpaceRole(user cf.User, space cf.Space, role string) (apiResponse net.ApiResponse)
Source Files
¶
- fake_app_bits_repo.go
- fake_app_events_repo.go
- fake_app_files_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_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.