Documentation ¶
Index ¶
- type AppSummaryRepository
- type ApplicationFromSummary
- type ApplicationSummaries
- type BuildpackBitsRepository
- type BuildpackRepository
- type CCUserProvidedServiceInstanceRepository
- func (repo CCUserProvidedServiceInstanceRepository) Create(name, drainURL string, routeServiceURL string, params map[string]interface{}, ...) (apiErr error)
- func (repo CCUserProvidedServiceInstanceRepository) GetSummaries() (models.UserProvidedServiceSummary, error)
- func (repo CCUserProvidedServiceInstanceRepository) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)
- type ClientRepository
- type CloudControllerAppSummaryRepository
- type CloudControllerBuildpackBitsRepository
- type CloudControllerBuildpackRepository
- func (repo CloudControllerBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error)
- func (repo CloudControllerBuildpackRepository) Delete(buildpackGUID string) (apiErr error)
- func (repo CloudControllerBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr error)
- func (repo CloudControllerBuildpackRepository) FindByNameAndStack(name, stack string) (buildpack models.Buildpack, apiErr error)
- func (repo CloudControllerBuildpackRepository) FindByNameWithNilStack(name string) (buildpack models.Buildpack, apiErr error)
- func (repo CloudControllerBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) error
- func (repo CloudControllerBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error)
- type CloudControllerClientRepository
- type CloudControllerCurlRepository
- type CloudControllerDomainRepository
- func (repo CloudControllerDomainRepository) Create(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, err error)
- func (repo CloudControllerDomainRepository) CreateSharedDomain(domainName string, routerGroupGUID string) error
- func (repo CloudControllerDomainRepository) Delete(domainGUID string) error
- func (repo CloudControllerDomainRepository) DeleteSharedDomain(domainGUID string) error
- func (repo CloudControllerDomainRepository) FindByNameInOrg(name string, orgGUID string) (models.DomainFields, error)
- func (repo CloudControllerDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)
- func (repo CloudControllerDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)
- func (repo CloudControllerDomainRepository) FirstOrDefault(orgGUID string, name *string) (domain models.DomainFields, error error)
- func (repo CloudControllerDomainRepository) ListDomainsForOrg(orgGUID string, cb func(models.DomainFields) bool) error
- type CloudControllerRouteRepository
- func (repo CloudControllerRouteRepository) Bind(routeGUID, appGUID string) (apiErr error)
- func (repo CloudControllerRouteRepository) CheckIfExists(host string, domain models.DomainFields, path string) (bool, error)
- func (repo CloudControllerRouteRepository) Create(host string, domain models.DomainFields, path string, port int, ...) (createdRoute models.Route, apiErr error)
- func (repo CloudControllerRouteRepository) CreateInSpace(host, path, domainGUID, spaceGUID string, port int, randomPort bool) (models.Route, error)
- func (repo CloudControllerRouteRepository) Delete(routeGUID string) (apiErr error)
- func (repo CloudControllerRouteRepository) Find(host string, domain models.DomainFields, path string, port int) (models.Route, error)
- func (repo CloudControllerRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)
- func (repo CloudControllerRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)
- func (repo CloudControllerRouteRepository) Unbind(routeGUID, appGUID string) (apiErr error)
- type CloudControllerRouteServiceBindingRepository
- type CloudControllerServiceAuthTokenRepository
- func (repo CloudControllerServiceAuthTokenRepository) Create(authToken models.ServiceAuthTokenFields) (apiErr error)
- func (repo CloudControllerServiceAuthTokenRepository) Delete(authToken models.ServiceAuthTokenFields) (apiErr error)
- func (repo CloudControllerServiceAuthTokenRepository) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)
- func (repo CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)
- func (repo CloudControllerServiceAuthTokenRepository) Update(authToken models.ServiceAuthTokenFields) (apiErr error)
- type CloudControllerServiceBindingRepository
- func (repo CloudControllerServiceBindingRepository) Create(instanceGUID, appGUID string, paramsMap map[string]interface{}) error
- func (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGUID string) (bool, error)
- func (repo CloudControllerServiceBindingRepository) ListAllForService(instanceGUID string) ([]models.ServiceBindingFields, error)
- type CloudControllerServiceBrokerRepository
- func (repo CloudControllerServiceBrokerRepository) Create(name, url, username, password, spaceGUID string) error
- func (repo CloudControllerServiceBrokerRepository) Delete(guid string) (apiErr error)
- func (repo CloudControllerServiceBrokerRepository) FindByGUID(guid string) (serviceBroker models.ServiceBroker, apiErr error)
- func (repo CloudControllerServiceBrokerRepository) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)
- func (repo CloudControllerServiceBrokerRepository) ListServiceBrokers(callback func(models.ServiceBroker) bool) error
- func (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error)
- func (repo CloudControllerServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error)
- type CloudControllerServiceKeyRepository
- func (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGUID string, keyName string, params map[string]interface{}) error
- func (c CloudControllerServiceKeyRepository) DeleteServiceKey(serviceKeyGUID string) error
- func (c CloudControllerServiceKeyRepository) GetServiceKey(instanceGUID string, keyName string) (models.ServiceKey, error)
- func (c CloudControllerServiceKeyRepository) ListServiceKeys(instanceGUID string) ([]models.ServiceKey, error)
- type CloudControllerServicePlanRepository
- func (repo CloudControllerServicePlanRepository) ListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error)
- func (repo CloudControllerServicePlanRepository) Search(queryParams map[string]string) (plans []models.ServicePlanFields, err error)
- func (repo CloudControllerServicePlanRepository) Update(servicePlan models.ServicePlanFields, serviceGUID string, public bool) error
- type CloudControllerServicePlanVisibilityRepository
- func (repo CloudControllerServicePlanVisibilityRepository) Create(serviceGUID, orgGUID string) error
- func (repo CloudControllerServicePlanVisibilityRepository) Delete(servicePlanGUID string) error
- func (repo CloudControllerServicePlanVisibilityRepository) List() (visibilities []models.ServicePlanVisibilityFields, err error)
- func (repo CloudControllerServicePlanVisibilityRepository) Search(queryParams map[string]string) ([]models.ServicePlanVisibilityFields, error)
- type CloudControllerServiceRepository
- func (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGUID string, params map[string]interface{}, tags []string) (err error)
- func (repo CloudControllerServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error)
- func (repo CloudControllerServiceRepository) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)
- func (repo CloudControllerServiceRepository) FindServiceOfferingByLabelAndProvider(label, provider string) (models.ServiceOffering, error)
- func (repo CloudControllerServiceRepository) FindServiceOfferingsByLabel(label string) (models.ServiceOfferings, error)
- func (repo CloudControllerServiceRepository) FindServiceOfferingsForSpaceByLabel(spaceGUID, name string) (offerings models.ServiceOfferings, err error)
- func (repo CloudControllerServiceRepository) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (string, error)
- func (repo CloudControllerServiceRepository) GetAllServiceOfferings() (models.ServiceOfferings, error)
- func (repo CloudControllerServiceRepository) GetServiceInstanceCountForServicePlan(v1PlanGUID string) (count int, apiErr error)
- func (repo CloudControllerServiceRepository) GetServiceOfferingByGUID(serviceGUID string) (models.ServiceOffering, error)
- func (repo CloudControllerServiceRepository) GetServiceOfferingsForSpace(spaceGUID string) (models.ServiceOfferings, error)
- func (repo CloudControllerServiceRepository) ListServicesFromBroker(brokerGUID string) (offerings []models.ServiceOffering, err error)
- func (repo CloudControllerServiceRepository) ListServicesFromManyBrokers(brokerGUIDs []string) ([]models.ServiceOffering, error)
- func (repo CloudControllerServiceRepository) MigrateServicePlanFromV1ToV2(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error)
- func (repo CloudControllerServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error
- func (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error
- func (repo CloudControllerServiceRepository) RenameService(instance models.ServiceInstance, newName string) (apiErr error)
- func (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGUID, planGUID string, params map[string]interface{}, tags []string) (err error)
- type CloudControllerServiceSummaryRepository
- type CloudControllerUserRepository
- func (repo CloudControllerUserRepository) Create(username, password string) (err error)
- func (repo CloudControllerUserRepository) Delete(userGUID string) (apiErr error)
- func (repo CloudControllerUserRepository) FindAllByUsername(username string) (users []models.UserFields, apiErr error)
- func (repo CloudControllerUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)
- func (repo CloudControllerUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGUID string, roleName models.Role) (users []models.UserFields, apiErr error)
- func (repo CloudControllerUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGUID string, roleName models.Role) (users []models.UserFields, apiErr error)
- func (repo CloudControllerUserRepository) SetOrgRoleByGUID(userGUID string, orgGUID string, role models.Role) (err error)
- func (repo CloudControllerUserRepository) SetOrgRoleByUsername(username string, orgGUID string, role models.Role) error
- func (repo CloudControllerUserRepository) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) error
- func (repo CloudControllerUserRepository) SetSpaceRoleByUsername(username, spaceGUID, orgGUID string, role models.Role) (apiErr error)
- func (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error)
- func (repo CloudControllerUserRepository) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) error
- func (repo CloudControllerUserRepository) UnsetSpaceRoleByGUID(userGUID, spaceGUID string, role models.Role) error
- func (repo CloudControllerUserRepository) UnsetSpaceRoleByUsername(username, spaceGUID string, role models.Role) error
- type CurlRepository
- type DomainRepository
- type DomainSummary
- type LastOperationSummary
- type RemoteInfoRepository
- type RepositoryLocator
- func (locator RepositoryLocator) GetAppEventsRepository() appevents.Repository
- func (locator RepositoryLocator) GetAppFilesRepository() api_appfiles.Repository
- func (locator RepositoryLocator) GetAppInstancesRepository() appinstances.Repository
- func (locator RepositoryLocator) GetAppSummaryRepository() AppSummaryRepository
- func (locator RepositoryLocator) GetApplicationBitsRepository() applicationbits.Repository
- func (locator RepositoryLocator) GetApplicationRepository() applications.Repository
- func (locator RepositoryLocator) GetAuthenticationRepository() authentication.Repository
- func (locator RepositoryLocator) GetBuildpackBitsRepository() BuildpackBitsRepository
- func (locator RepositoryLocator) GetBuildpackRepository() BuildpackRepository
- func (locator RepositoryLocator) GetClientRepository() ClientRepository
- func (locator RepositoryLocator) GetCopyApplicationSourceRepository() copyapplicationsource.Repository
- func (locator RepositoryLocator) GetCurlRepository() CurlRepository
- func (locator RepositoryLocator) GetDomainRepository() DomainRepository
- func (locator RepositoryLocator) GetEndpointRepository() coreconfig.EndpointRepository
- func (locator RepositoryLocator) GetEnvironmentVariableGroupsRepository() environmentvariablegroups.Repository
- func (locator RepositoryLocator) GetFeatureFlagRepository() featureflags.FeatureFlagRepository
- func (locator RepositoryLocator) GetLogsRepository() logs.Repository
- func (locator RepositoryLocator) GetOrganizationRepository() organizations.OrganizationRepository
- func (locator RepositoryLocator) GetPasswordRepository() password.Repository
- func (locator RepositoryLocator) GetQuotaRepository() quotas.QuotaRepository
- func (locator RepositoryLocator) GetRouteRepository() RouteRepository
- func (locator RepositoryLocator) GetRouteServiceBindingRepository() RouteServiceBindingRepository
- func (locator RepositoryLocator) GetRoutingAPIRepository() RoutingAPIRepository
- func (locator RepositoryLocator) GetRunningSecurityGroupsRepository() running.SecurityGroupsRepo
- func (locator RepositoryLocator) GetSecurityGroupRepository() securitygroups.SecurityGroupRepo
- func (locator RepositoryLocator) GetSecurityGroupSpaceBinder() securitygroupspaces.SecurityGroupSpaceBinder
- func (locator RepositoryLocator) GetServiceAuthTokenRepository() ServiceAuthTokenRepository
- func (locator RepositoryLocator) GetServiceBindingRepository() ServiceBindingRepository
- func (locator RepositoryLocator) GetServiceBrokerRepository() ServiceBrokerRepository
- func (locator RepositoryLocator) GetServiceKeyRepository() ServiceKeyRepository
- func (locator RepositoryLocator) GetServicePlanRepository() ServicePlanRepository
- func (locator RepositoryLocator) GetServicePlanVisibilityRepository() ServicePlanVisibilityRepository
- func (locator RepositoryLocator) GetServiceRepository() ServiceRepository
- func (locator RepositoryLocator) GetServiceSummaryRepository() ServiceSummaryRepository
- func (locator RepositoryLocator) GetSpaceQuotaRepository() spacequotas.SpaceQuotaRepository
- func (locator RepositoryLocator) GetSpaceRepository() spaces.SpaceRepository
- func (locator RepositoryLocator) GetStackRepository() stacks.StackRepository
- func (locator RepositoryLocator) GetStagingSecurityGroupsRepository() staging.SecurityGroupsRepo
- func (locator RepositoryLocator) GetUserProvidedServiceInstanceRepository() UserProvidedServiceInstanceRepository
- func (locator RepositoryLocator) GetUserRepository() UserRepository
- func (locator RepositoryLocator) SetAppEventsRepository(repo appevents.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetAppFileRepository(repo api_appfiles.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetAppInstancesRepository(repo appinstances.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetAppSummaryRepository(repo AppSummaryRepository) RepositoryLocator
- func (locator RepositoryLocator) SetApplicationRepository(repo applications.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetAuthenticationRepository(repo authentication.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetBuildpackBitsRepository(repo BuildpackBitsRepository) RepositoryLocator
- func (locator RepositoryLocator) SetBuildpackRepository(repo BuildpackRepository) RepositoryLocator
- func (locator RepositoryLocator) SetClientRepository(repo ClientRepository) RepositoryLocator
- func (locator RepositoryLocator) SetCopyApplicationSourceRepository(repo copyapplicationsource.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetCurlRepository(repo CurlRepository) RepositoryLocator
- func (locator RepositoryLocator) SetDomainRepository(repo DomainRepository) RepositoryLocator
- func (locator RepositoryLocator) SetEndpointRepository(e coreconfig.EndpointRepository) RepositoryLocator
- func (locator RepositoryLocator) SetEnvironmentVariableGroupsRepository(repo environmentvariablegroups.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetFeatureFlagRepository(repo featureflags.FeatureFlagRepository) RepositoryLocator
- func (locator RepositoryLocator) SetLogsRepository(repo logs.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetOrganizationRepository(repo organizations.OrganizationRepository) RepositoryLocator
- func (locator RepositoryLocator) SetPasswordRepository(repo password.Repository) RepositoryLocator
- func (locator RepositoryLocator) SetQuotaRepository(repo quotas.QuotaRepository) RepositoryLocator
- func (locator RepositoryLocator) SetRouteRepository(repo RouteRepository) RepositoryLocator
- func (locator RepositoryLocator) SetRouteServiceBindingRepository(repo RouteServiceBindingRepository) RepositoryLocator
- func (locator RepositoryLocator) SetRoutingAPIRepository(repo RoutingAPIRepository) RepositoryLocator
- func (locator RepositoryLocator) SetRunningSecurityGroupRepository(repo running.SecurityGroupsRepo) RepositoryLocator
- func (locator RepositoryLocator) SetSecurityGroupRepository(repo securitygroups.SecurityGroupRepo) RepositoryLocator
- func (locator RepositoryLocator) SetSecurityGroupSpaceBinder(repo securitygroupspaces.SecurityGroupSpaceBinder) RepositoryLocator
- func (locator RepositoryLocator) SetServiceAuthTokenRepository(repo ServiceAuthTokenRepository) RepositoryLocator
- func (locator RepositoryLocator) SetServiceBindingRepository(repo ServiceBindingRepository) RepositoryLocator
- func (locator RepositoryLocator) SetServiceBrokerRepository(repo ServiceBrokerRepository) RepositoryLocator
- func (locator RepositoryLocator) SetServiceKeyRepository(repo ServiceKeyRepository) RepositoryLocator
- func (locator RepositoryLocator) SetServiceRepository(repo ServiceRepository) RepositoryLocator
- func (locator RepositoryLocator) SetServiceSummaryRepository(repo ServiceSummaryRepository) RepositoryLocator
- func (locator RepositoryLocator) SetSpaceQuotaRepository(repo spacequotas.SpaceQuotaRepository) RepositoryLocator
- func (locator RepositoryLocator) SetSpaceRepository(repo spaces.SpaceRepository) RepositoryLocator
- func (locator RepositoryLocator) SetStackRepository(repo stacks.StackRepository) RepositoryLocator
- func (locator RepositoryLocator) SetStagingSecurityGroupRepository(repo staging.SecurityGroupsRepo) RepositoryLocator
- func (locator RepositoryLocator) SetUserProvidedServiceInstanceRepository(repo UserProvidedServiceInstanceRepository) RepositoryLocator
- func (locator RepositoryLocator) SetUserRepository(repo UserRepository) RepositoryLocator
- type RouteRepository
- type RouteServiceBindingRepository
- type RouteSummary
- type RoutingAPIRepository
- type ServiceAuthTokenRepository
- type ServiceBindingRepository
- type ServiceBrokerRepository
- type ServiceInstanceSummary
- type ServiceInstanceSummaryApp
- type ServiceInstancesSummaries
- type ServiceKeyRepository
- type ServiceOfferingSummary
- type ServicePlanRepository
- type ServicePlanSummary
- type ServicePlanVisibilityRepository
- type ServiceRepository
- type ServiceSummaryRepository
- type UserProvidedServiceInstanceRepository
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSummaryRepository ¶
type AppSummaryRepository interface { GetSummariesInCurrentSpace() (apps []models.Application, apiErr error) GetSummary(appGUID string) (summary models.Application, apiErr error) }
type ApplicationFromSummary ¶
type ApplicationFromSummary struct { GUID string Name string Routes []RouteSummary Services []ServicePlanSummary RunningInstances int `json:"running_instances"` Memory int64 Instances int DiskQuota int64 `json:"disk_quota"` URLs []string EnvironmentVars map[string]interface{} `json:"environment_json,omitempty"` HealthCheckTimeout int `json:"health_check_timeout"` HealthCheckType string `json:"health_check_type"` HealthCheckHTTPEndpoint string `json:"health_check_http_endpoint"` State string DetectedStartCommand string `json:"detected_start_command"` SpaceGUID string `json:"space_guid"` StackGUID string `json:"stack_guid"` Command string `json:"command"` PackageState string `json:"package_state"` PackageUpdatedAt *time.Time `json:"package_updated_at"` Buildpack string }
func (ApplicationFromSummary) ToFields ¶
func (resource ApplicationFromSummary) ToFields() (app models.ApplicationFields)
func (ApplicationFromSummary) ToModel ¶
func (resource ApplicationFromSummary) ToModel() models.Application
type ApplicationSummaries ¶
type ApplicationSummaries struct {
Apps []ApplicationFromSummary
}
func (ApplicationSummaries) ToModels ¶
func (resource ApplicationSummaries) ToModels() (apps []models.ApplicationFields)
type BuildpackBitsRepository ¶
type BuildpackRepository ¶
type BuildpackRepository interface { FindByName(name string) (buildpack models.Buildpack, apiErr error) FindByNameAndStack(name, stack string) (buildpack models.Buildpack, apiErr error) FindByNameWithNilStack(name string) (buildpack models.Buildpack, apiErr error) ListBuildpacks(func(models.Buildpack) bool) error Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error) Delete(buildpackGUID string) (apiErr error) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error) }
type CCUserProvidedServiceInstanceRepository ¶
type CCUserProvidedServiceInstanceRepository struct {
// contains filtered or unexported fields
}
func NewCCUserProvidedServiceInstanceRepository ¶
func NewCCUserProvidedServiceInstanceRepository(config coreconfig.Reader, gateway net.Gateway) (repo CCUserProvidedServiceInstanceRepository)
func (CCUserProvidedServiceInstanceRepository) GetSummaries ¶
func (repo CCUserProvidedServiceInstanceRepository) GetSummaries() (models.UserProvidedServiceSummary, error)
func (CCUserProvidedServiceInstanceRepository) Update ¶
func (repo CCUserProvidedServiceInstanceRepository) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)
type ClientRepository ¶
type CloudControllerAppSummaryRepository ¶
type CloudControllerAppSummaryRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerAppSummaryRepository ¶
func NewCloudControllerAppSummaryRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerAppSummaryRepository)
func (CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace ¶
func (repo CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace() ([]models.Application, error)
func (CloudControllerAppSummaryRepository) GetSummary ¶
func (repo CloudControllerAppSummaryRepository) GetSummary(appGUID string) (summary models.Application, apiErr error)
type CloudControllerBuildpackBitsRepository ¶
type CloudControllerBuildpackBitsRepository struct { TrustedCerts []tls.Certificate // contains filtered or unexported fields }
func NewCloudControllerBuildpackBitsRepository ¶
func NewCloudControllerBuildpackBitsRepository(config coreconfig.Reader, gateway net.Gateway, zipper appfiles.Zipper) (repo CloudControllerBuildpackBitsRepository)
func (CloudControllerBuildpackBitsRepository) CreateBuildpackZipFile ¶
func (CloudControllerBuildpackBitsRepository) UploadBuildpack ¶
type CloudControllerBuildpackRepository ¶
type CloudControllerBuildpackRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerBuildpackRepository ¶
func NewCloudControllerBuildpackRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerBuildpackRepository)
func (CloudControllerBuildpackRepository) Delete ¶
func (repo CloudControllerBuildpackRepository) Delete(buildpackGUID string) (apiErr error)
func (CloudControllerBuildpackRepository) FindByName ¶
func (repo CloudControllerBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr error)
func (CloudControllerBuildpackRepository) FindByNameAndStack ¶
func (repo CloudControllerBuildpackRepository) FindByNameAndStack(name, stack string) (buildpack models.Buildpack, apiErr error)
func (CloudControllerBuildpackRepository) FindByNameWithNilStack ¶
func (repo CloudControllerBuildpackRepository) FindByNameWithNilStack(name string) (buildpack models.Buildpack, apiErr error)
func (CloudControllerBuildpackRepository) ListBuildpacks ¶
func (repo CloudControllerBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) error
type CloudControllerClientRepository ¶
type CloudControllerClientRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerClientRepository ¶
func NewCloudControllerClientRepository(config coreconfig.Reader, uaaGateway net.Gateway) (repo CloudControllerClientRepository)
func (CloudControllerClientRepository) ClientExists ¶
func (repo CloudControllerClientRepository) ClientExists(clientID string) (exists bool, apiErr error)
type CloudControllerCurlRepository ¶
type CloudControllerCurlRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerCurlRepository ¶
func NewCloudControllerCurlRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerCurlRepository)
type CloudControllerDomainRepository ¶
type CloudControllerDomainRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerDomainRepository ¶
func NewCloudControllerDomainRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerDomainRepository
func (CloudControllerDomainRepository) Create ¶
func (repo CloudControllerDomainRepository) Create(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, err error)
func (CloudControllerDomainRepository) CreateSharedDomain ¶
func (repo CloudControllerDomainRepository) CreateSharedDomain(domainName string, routerGroupGUID string) error
func (CloudControllerDomainRepository) Delete ¶
func (repo CloudControllerDomainRepository) Delete(domainGUID string) error
func (CloudControllerDomainRepository) DeleteSharedDomain ¶
func (repo CloudControllerDomainRepository) DeleteSharedDomain(domainGUID string) error
func (CloudControllerDomainRepository) FindByNameInOrg ¶
func (repo CloudControllerDomainRepository) FindByNameInOrg(name string, orgGUID string) (models.DomainFields, error)
func (CloudControllerDomainRepository) FindPrivateByName ¶
func (repo CloudControllerDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)
func (CloudControllerDomainRepository) FindSharedByName ¶
func (repo CloudControllerDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)
func (CloudControllerDomainRepository) FirstOrDefault ¶
func (repo CloudControllerDomainRepository) FirstOrDefault(orgGUID string, name *string) (domain models.DomainFields, error error)
func (CloudControllerDomainRepository) ListDomainsForOrg ¶
func (repo CloudControllerDomainRepository) ListDomainsForOrg(orgGUID string, cb func(models.DomainFields) bool) error
type CloudControllerRouteRepository ¶
type CloudControllerRouteRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerRouteRepository ¶
func NewCloudControllerRouteRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerRouteRepository)
func (CloudControllerRouteRepository) Bind ¶
func (repo CloudControllerRouteRepository) Bind(routeGUID, appGUID string) (apiErr error)
func (CloudControllerRouteRepository) CheckIfExists ¶
func (repo CloudControllerRouteRepository) CheckIfExists(host string, domain models.DomainFields, path string) (bool, error)
func (CloudControllerRouteRepository) Create ¶
func (repo CloudControllerRouteRepository) Create(host string, domain models.DomainFields, path string, port int, useRandomPort bool) (createdRoute models.Route, apiErr error)
func (CloudControllerRouteRepository) CreateInSpace ¶
func (CloudControllerRouteRepository) Delete ¶
func (repo CloudControllerRouteRepository) Delete(routeGUID string) (apiErr error)
func (CloudControllerRouteRepository) Find ¶
func (repo CloudControllerRouteRepository) Find(host string, domain models.DomainFields, path string, port int) (models.Route, error)
func (CloudControllerRouteRepository) ListAllRoutes ¶
func (repo CloudControllerRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)
func (CloudControllerRouteRepository) ListRoutes ¶
func (repo CloudControllerRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)
func (CloudControllerRouteRepository) Unbind ¶
func (repo CloudControllerRouteRepository) Unbind(routeGUID, appGUID string) (apiErr error)
type CloudControllerRouteServiceBindingRepository ¶
type CloudControllerRouteServiceBindingRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerRouteServiceBindingRepository ¶
func NewCloudControllerRouteServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerRouteServiceBindingRepository
type CloudControllerServiceAuthTokenRepository ¶
type CloudControllerServiceAuthTokenRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceAuthTokenRepository ¶
func NewCloudControllerServiceAuthTokenRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceAuthTokenRepository)
func (CloudControllerServiceAuthTokenRepository) Create ¶
func (repo CloudControllerServiceAuthTokenRepository) Create(authToken models.ServiceAuthTokenFields) (apiErr error)
func (CloudControllerServiceAuthTokenRepository) Delete ¶
func (repo CloudControllerServiceAuthTokenRepository) Delete(authToken models.ServiceAuthTokenFields) (apiErr error)
func (CloudControllerServiceAuthTokenRepository) FindAll ¶
func (repo CloudControllerServiceAuthTokenRepository) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)
func (CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider ¶
func (repo CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)
func (CloudControllerServiceAuthTokenRepository) Update ¶
func (repo CloudControllerServiceAuthTokenRepository) Update(authToken models.ServiceAuthTokenFields) (apiErr error)
type CloudControllerServiceBindingRepository ¶
type CloudControllerServiceBindingRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceBindingRepository ¶
func NewCloudControllerServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceBindingRepository)
func (CloudControllerServiceBindingRepository) Create ¶
func (repo CloudControllerServiceBindingRepository) Create(instanceGUID, appGUID string, paramsMap map[string]interface{}) error
func (CloudControllerServiceBindingRepository) Delete ¶
func (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGUID string) (bool, error)
func (CloudControllerServiceBindingRepository) ListAllForService ¶
func (repo CloudControllerServiceBindingRepository) ListAllForService(instanceGUID string) ([]models.ServiceBindingFields, error)
type CloudControllerServiceBrokerRepository ¶
type CloudControllerServiceBrokerRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceBrokerRepository ¶
func NewCloudControllerServiceBrokerRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceBrokerRepository)
func (CloudControllerServiceBrokerRepository) Create ¶
func (repo CloudControllerServiceBrokerRepository) Create(name, url, username, password, spaceGUID string) error
func (CloudControllerServiceBrokerRepository) Delete ¶
func (repo CloudControllerServiceBrokerRepository) Delete(guid string) (apiErr error)
func (CloudControllerServiceBrokerRepository) FindByGUID ¶
func (repo CloudControllerServiceBrokerRepository) FindByGUID(guid string) (serviceBroker models.ServiceBroker, apiErr error)
func (CloudControllerServiceBrokerRepository) FindByName ¶
func (repo CloudControllerServiceBrokerRepository) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)
func (CloudControllerServiceBrokerRepository) ListServiceBrokers ¶
func (repo CloudControllerServiceBrokerRepository) ListServiceBrokers(callback func(models.ServiceBroker) bool) error
func (CloudControllerServiceBrokerRepository) Rename ¶
func (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error)
func (CloudControllerServiceBrokerRepository) Update ¶
func (repo CloudControllerServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error)
type CloudControllerServiceKeyRepository ¶
type CloudControllerServiceKeyRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceKeyRepository ¶
func NewCloudControllerServiceKeyRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceKeyRepository)
func (CloudControllerServiceKeyRepository) CreateServiceKey ¶
func (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGUID string, keyName string, params map[string]interface{}) error
func (CloudControllerServiceKeyRepository) DeleteServiceKey ¶
func (c CloudControllerServiceKeyRepository) DeleteServiceKey(serviceKeyGUID string) error
func (CloudControllerServiceKeyRepository) GetServiceKey ¶
func (c CloudControllerServiceKeyRepository) GetServiceKey(instanceGUID string, keyName string) (models.ServiceKey, error)
func (CloudControllerServiceKeyRepository) ListServiceKeys ¶
func (c CloudControllerServiceKeyRepository) ListServiceKeys(instanceGUID string) ([]models.ServiceKey, error)
type CloudControllerServicePlanRepository ¶
type CloudControllerServicePlanRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServicePlanRepository ¶
func NewCloudControllerServicePlanRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServicePlanRepository
func (CloudControllerServicePlanRepository) ListPlansFromManyServices ¶
func (repo CloudControllerServicePlanRepository) ListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error)
func (CloudControllerServicePlanRepository) Search ¶
func (repo CloudControllerServicePlanRepository) Search(queryParams map[string]string) (plans []models.ServicePlanFields, err error)
func (CloudControllerServicePlanRepository) Update ¶
func (repo CloudControllerServicePlanRepository) Update(servicePlan models.ServicePlanFields, serviceGUID string, public bool) error
type CloudControllerServicePlanVisibilityRepository ¶
type CloudControllerServicePlanVisibilityRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServicePlanVisibilityRepository ¶
func NewCloudControllerServicePlanVisibilityRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServicePlanVisibilityRepository
func (CloudControllerServicePlanVisibilityRepository) Create ¶
func (repo CloudControllerServicePlanVisibilityRepository) Create(serviceGUID, orgGUID string) error
func (CloudControllerServicePlanVisibilityRepository) Delete ¶
func (repo CloudControllerServicePlanVisibilityRepository) Delete(servicePlanGUID string) error
func (CloudControllerServicePlanVisibilityRepository) List ¶
func (repo CloudControllerServicePlanVisibilityRepository) List() (visibilities []models.ServicePlanVisibilityFields, err error)
func (CloudControllerServicePlanVisibilityRepository) Search ¶
func (repo CloudControllerServicePlanVisibilityRepository) Search(queryParams map[string]string) ([]models.ServicePlanVisibilityFields, error)
type CloudControllerServiceRepository ¶
type CloudControllerServiceRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceRepository ¶
func NewCloudControllerServiceRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceRepository)
func (CloudControllerServiceRepository) CreateServiceInstance ¶
func (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGUID string, params map[string]interface{}, tags []string) (err error)
func (CloudControllerServiceRepository) DeleteService ¶
func (repo CloudControllerServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error)
func (CloudControllerServiceRepository) FindInstanceByName ¶
func (repo CloudControllerServiceRepository) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)
func (CloudControllerServiceRepository) FindServiceOfferingByLabelAndProvider ¶
func (repo CloudControllerServiceRepository) FindServiceOfferingByLabelAndProvider(label, provider string) (models.ServiceOffering, error)
func (CloudControllerServiceRepository) FindServiceOfferingsByLabel ¶
func (repo CloudControllerServiceRepository) FindServiceOfferingsByLabel(label string) (models.ServiceOfferings, error)
func (CloudControllerServiceRepository) FindServiceOfferingsForSpaceByLabel ¶
func (repo CloudControllerServiceRepository) FindServiceOfferingsForSpaceByLabel(spaceGUID, name string) (offerings models.ServiceOfferings, err error)
func (CloudControllerServiceRepository) FindServicePlanByDescription ¶
func (repo CloudControllerServiceRepository) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (string, error)
func (CloudControllerServiceRepository) GetAllServiceOfferings ¶
func (repo CloudControllerServiceRepository) GetAllServiceOfferings() (models.ServiceOfferings, error)
func (CloudControllerServiceRepository) GetServiceInstanceCountForServicePlan ¶
func (repo CloudControllerServiceRepository) GetServiceInstanceCountForServicePlan(v1PlanGUID string) (count int, apiErr error)
func (CloudControllerServiceRepository) GetServiceOfferingByGUID ¶
func (repo CloudControllerServiceRepository) GetServiceOfferingByGUID(serviceGUID string) (models.ServiceOffering, error)
func (CloudControllerServiceRepository) GetServiceOfferingsForSpace ¶
func (repo CloudControllerServiceRepository) GetServiceOfferingsForSpace(spaceGUID string) (models.ServiceOfferings, error)
func (CloudControllerServiceRepository) ListServicesFromBroker ¶
func (repo CloudControllerServiceRepository) ListServicesFromBroker(brokerGUID string) (offerings []models.ServiceOffering, err error)
func (CloudControllerServiceRepository) ListServicesFromManyBrokers ¶
func (repo CloudControllerServiceRepository) ListServicesFromManyBrokers(brokerGUIDs []string) ([]models.ServiceOffering, error)
func (CloudControllerServiceRepository) MigrateServicePlanFromV1ToV2 ¶
func (repo CloudControllerServiceRepository) MigrateServicePlanFromV1ToV2(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error)
func (CloudControllerServiceRepository) PurgeServiceInstance ¶
func (repo CloudControllerServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error
func (CloudControllerServiceRepository) PurgeServiceOffering ¶
func (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error
func (CloudControllerServiceRepository) RenameService ¶
func (repo CloudControllerServiceRepository) RenameService(instance models.ServiceInstance, newName string) (apiErr error)
func (CloudControllerServiceRepository) UpdateServiceInstance ¶
func (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGUID, planGUID string, params map[string]interface{}, tags []string) (err error)
type CloudControllerServiceSummaryRepository ¶
type CloudControllerServiceSummaryRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerServiceSummaryRepository ¶
func NewCloudControllerServiceSummaryRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServiceSummaryRepository
func (CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace ¶
func (repo CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace() ([]models.ServiceInstance, error)
type CloudControllerUserRepository ¶
type CloudControllerUserRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerUserRepository ¶
func NewCloudControllerUserRepository(config coreconfig.Reader, uaaGateway net.Gateway, ccGateway net.Gateway) (repo CloudControllerUserRepository)
func (CloudControllerUserRepository) Create ¶
func (repo CloudControllerUserRepository) Create(username, password string) (err error)
func (CloudControllerUserRepository) Delete ¶
func (repo CloudControllerUserRepository) Delete(userGUID string) (apiErr error)
func (CloudControllerUserRepository) FindAllByUsername ¶
func (repo CloudControllerUserRepository) FindAllByUsername(username string) (users []models.UserFields, apiErr error)
func (CloudControllerUserRepository) FindByUsername ¶
func (repo CloudControllerUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)
func (CloudControllerUserRepository) ListUsersInOrgForRoleWithNoUAA ¶
func (repo CloudControllerUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGUID string, roleName models.Role) (users []models.UserFields, apiErr error)
func (CloudControllerUserRepository) ListUsersInSpaceForRoleWithNoUAA ¶
func (repo CloudControllerUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGUID string, roleName models.Role) (users []models.UserFields, apiErr error)
func (CloudControllerUserRepository) SetOrgRoleByGUID ¶
func (CloudControllerUserRepository) SetOrgRoleByUsername ¶
func (CloudControllerUserRepository) SetSpaceRoleByGUID ¶
func (repo CloudControllerUserRepository) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) error
func (CloudControllerUserRepository) SetSpaceRoleByUsername ¶
func (repo CloudControllerUserRepository) SetSpaceRoleByUsername(username, spaceGUID, orgGUID string, role models.Role) (apiErr error)
func (CloudControllerUserRepository) UnsetOrgRoleByGUID ¶
func (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error)
func (CloudControllerUserRepository) UnsetOrgRoleByUsername ¶
func (repo CloudControllerUserRepository) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) error
func (CloudControllerUserRepository) UnsetSpaceRoleByGUID ¶
func (repo CloudControllerUserRepository) UnsetSpaceRoleByGUID(userGUID, spaceGUID string, role models.Role) error
func (CloudControllerUserRepository) UnsetSpaceRoleByUsername ¶
func (repo CloudControllerUserRepository) UnsetSpaceRoleByUsername(username, spaceGUID string, role models.Role) error
type CurlRepository ¶
type DomainRepository ¶
type DomainRepository interface { ListDomainsForOrg(orgGUID string, cb func(models.DomainFields) bool) error FindPrivateByName(name string) (domain models.DomainFields, apiErr error) FindByNameInOrg(name string, owningOrgGUID string) (domain models.DomainFields, apiErr error) Create(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, apiErr error) Delete(domainGUID string) (apiErr error) FirstOrDefault(orgGUID string, name *string) (domain models.DomainFields, error error) }
type DomainSummary ¶
type LastOperationSummary ¶
type RemoteInfoRepository ¶
type RemoteInfoRepository struct {
// contains filtered or unexported fields
}
func NewEndpointRepository ¶
func NewEndpointRepository(gateway net.Gateway) RemoteInfoRepository
func (RemoteInfoRepository) GetCCInfo ¶
func (repo RemoteInfoRepository) GetCCInfo(endpoint string) (*coreconfig.CCInfo, string, error)
type RepositoryLocator ¶
type RepositoryLocator struct {
// contains filtered or unexported fields
}
func NewRepositoryLocator ¶
func NewRepositoryLocator(config coreconfig.ReadWriter, gatewaysByName map[string]net.Gateway, logger trace.Printer, envDialTimeout string) (loc RepositoryLocator)
func (RepositoryLocator) GetAppEventsRepository ¶
func (locator RepositoryLocator) GetAppEventsRepository() appevents.Repository
func (RepositoryLocator) GetAppFilesRepository ¶
func (locator RepositoryLocator) GetAppFilesRepository() api_appfiles.Repository
func (RepositoryLocator) GetAppInstancesRepository ¶
func (locator RepositoryLocator) GetAppInstancesRepository() appinstances.Repository
func (RepositoryLocator) GetAppSummaryRepository ¶
func (locator RepositoryLocator) GetAppSummaryRepository() AppSummaryRepository
func (RepositoryLocator) GetApplicationBitsRepository ¶
func (locator RepositoryLocator) GetApplicationBitsRepository() applicationbits.Repository
func (RepositoryLocator) GetApplicationRepository ¶
func (locator RepositoryLocator) GetApplicationRepository() applications.Repository
func (RepositoryLocator) GetAuthenticationRepository ¶
func (locator RepositoryLocator) GetAuthenticationRepository() authentication.Repository
func (RepositoryLocator) GetBuildpackBitsRepository ¶
func (locator RepositoryLocator) GetBuildpackBitsRepository() BuildpackBitsRepository
func (RepositoryLocator) GetBuildpackRepository ¶
func (locator RepositoryLocator) GetBuildpackRepository() BuildpackRepository
func (RepositoryLocator) GetClientRepository ¶
func (locator RepositoryLocator) GetClientRepository() ClientRepository
func (RepositoryLocator) GetCopyApplicationSourceRepository ¶
func (locator RepositoryLocator) GetCopyApplicationSourceRepository() copyapplicationsource.Repository
func (RepositoryLocator) GetCurlRepository ¶
func (locator RepositoryLocator) GetCurlRepository() CurlRepository
func (RepositoryLocator) GetDomainRepository ¶
func (locator RepositoryLocator) GetDomainRepository() DomainRepository
func (RepositoryLocator) GetEndpointRepository ¶
func (locator RepositoryLocator) GetEndpointRepository() coreconfig.EndpointRepository
func (RepositoryLocator) GetEnvironmentVariableGroupsRepository ¶
func (locator RepositoryLocator) GetEnvironmentVariableGroupsRepository() environmentvariablegroups.Repository
func (RepositoryLocator) GetFeatureFlagRepository ¶
func (locator RepositoryLocator) GetFeatureFlagRepository() featureflags.FeatureFlagRepository
func (RepositoryLocator) GetLogsRepository ¶
func (locator RepositoryLocator) GetLogsRepository() logs.Repository
func (RepositoryLocator) GetOrganizationRepository ¶
func (locator RepositoryLocator) GetOrganizationRepository() organizations.OrganizationRepository
func (RepositoryLocator) GetPasswordRepository ¶
func (locator RepositoryLocator) GetPasswordRepository() password.Repository
func (RepositoryLocator) GetQuotaRepository ¶
func (locator RepositoryLocator) GetQuotaRepository() quotas.QuotaRepository
func (RepositoryLocator) GetRouteRepository ¶
func (locator RepositoryLocator) GetRouteRepository() RouteRepository
func (RepositoryLocator) GetRouteServiceBindingRepository ¶
func (locator RepositoryLocator) GetRouteServiceBindingRepository() RouteServiceBindingRepository
func (RepositoryLocator) GetRoutingAPIRepository ¶
func (locator RepositoryLocator) GetRoutingAPIRepository() RoutingAPIRepository
func (RepositoryLocator) GetRunningSecurityGroupsRepository ¶
func (locator RepositoryLocator) GetRunningSecurityGroupsRepository() running.SecurityGroupsRepo
func (RepositoryLocator) GetSecurityGroupRepository ¶
func (locator RepositoryLocator) GetSecurityGroupRepository() securitygroups.SecurityGroupRepo
func (RepositoryLocator) GetSecurityGroupSpaceBinder ¶
func (locator RepositoryLocator) GetSecurityGroupSpaceBinder() securitygroupspaces.SecurityGroupSpaceBinder
func (RepositoryLocator) GetServiceAuthTokenRepository ¶
func (locator RepositoryLocator) GetServiceAuthTokenRepository() ServiceAuthTokenRepository
func (RepositoryLocator) GetServiceBindingRepository ¶
func (locator RepositoryLocator) GetServiceBindingRepository() ServiceBindingRepository
func (RepositoryLocator) GetServiceBrokerRepository ¶
func (locator RepositoryLocator) GetServiceBrokerRepository() ServiceBrokerRepository
func (RepositoryLocator) GetServiceKeyRepository ¶
func (locator RepositoryLocator) GetServiceKeyRepository() ServiceKeyRepository
func (RepositoryLocator) GetServicePlanRepository ¶
func (locator RepositoryLocator) GetServicePlanRepository() ServicePlanRepository
func (RepositoryLocator) GetServicePlanVisibilityRepository ¶
func (locator RepositoryLocator) GetServicePlanVisibilityRepository() ServicePlanVisibilityRepository
func (RepositoryLocator) GetServiceRepository ¶
func (locator RepositoryLocator) GetServiceRepository() ServiceRepository
func (RepositoryLocator) GetServiceSummaryRepository ¶
func (locator RepositoryLocator) GetServiceSummaryRepository() ServiceSummaryRepository
func (RepositoryLocator) GetSpaceQuotaRepository ¶
func (locator RepositoryLocator) GetSpaceQuotaRepository() spacequotas.SpaceQuotaRepository
func (RepositoryLocator) GetSpaceRepository ¶
func (locator RepositoryLocator) GetSpaceRepository() spaces.SpaceRepository
func (RepositoryLocator) GetStackRepository ¶
func (locator RepositoryLocator) GetStackRepository() stacks.StackRepository
func (RepositoryLocator) GetStagingSecurityGroupsRepository ¶
func (locator RepositoryLocator) GetStagingSecurityGroupsRepository() staging.SecurityGroupsRepo
func (RepositoryLocator) GetUserProvidedServiceInstanceRepository ¶
func (locator RepositoryLocator) GetUserProvidedServiceInstanceRepository() UserProvidedServiceInstanceRepository
func (RepositoryLocator) GetUserRepository ¶
func (locator RepositoryLocator) GetUserRepository() UserRepository
func (RepositoryLocator) SetAppEventsRepository ¶
func (locator RepositoryLocator) SetAppEventsRepository(repo appevents.Repository) RepositoryLocator
func (RepositoryLocator) SetAppFileRepository ¶
func (locator RepositoryLocator) SetAppFileRepository(repo api_appfiles.Repository) RepositoryLocator
func (RepositoryLocator) SetAppInstancesRepository ¶
func (locator RepositoryLocator) SetAppInstancesRepository(repo appinstances.Repository) RepositoryLocator
func (RepositoryLocator) SetAppSummaryRepository ¶
func (locator RepositoryLocator) SetAppSummaryRepository(repo AppSummaryRepository) RepositoryLocator
func (RepositoryLocator) SetApplicationRepository ¶
func (locator RepositoryLocator) SetApplicationRepository(repo applications.Repository) RepositoryLocator
func (RepositoryLocator) SetAuthenticationRepository ¶
func (locator RepositoryLocator) SetAuthenticationRepository(repo authentication.Repository) RepositoryLocator
func (RepositoryLocator) SetBuildpackBitsRepository ¶
func (locator RepositoryLocator) SetBuildpackBitsRepository(repo BuildpackBitsRepository) RepositoryLocator
func (RepositoryLocator) SetBuildpackRepository ¶
func (locator RepositoryLocator) SetBuildpackRepository(repo BuildpackRepository) RepositoryLocator
func (RepositoryLocator) SetClientRepository ¶
func (locator RepositoryLocator) SetClientRepository(repo ClientRepository) RepositoryLocator
func (RepositoryLocator) SetCopyApplicationSourceRepository ¶
func (locator RepositoryLocator) SetCopyApplicationSourceRepository(repo copyapplicationsource.Repository) RepositoryLocator
func (RepositoryLocator) SetCurlRepository ¶
func (locator RepositoryLocator) SetCurlRepository(repo CurlRepository) RepositoryLocator
func (RepositoryLocator) SetDomainRepository ¶
func (locator RepositoryLocator) SetDomainRepository(repo DomainRepository) RepositoryLocator
func (RepositoryLocator) SetEndpointRepository ¶
func (locator RepositoryLocator) SetEndpointRepository(e coreconfig.EndpointRepository) RepositoryLocator
func (RepositoryLocator) SetEnvironmentVariableGroupsRepository ¶
func (locator RepositoryLocator) SetEnvironmentVariableGroupsRepository(repo environmentvariablegroups.Repository) RepositoryLocator
func (RepositoryLocator) SetFeatureFlagRepository ¶
func (locator RepositoryLocator) SetFeatureFlagRepository(repo featureflags.FeatureFlagRepository) RepositoryLocator
func (RepositoryLocator) SetLogsRepository ¶
func (locator RepositoryLocator) SetLogsRepository(repo logs.Repository) RepositoryLocator
func (RepositoryLocator) SetOrganizationRepository ¶
func (locator RepositoryLocator) SetOrganizationRepository(repo organizations.OrganizationRepository) RepositoryLocator
func (RepositoryLocator) SetPasswordRepository ¶
func (locator RepositoryLocator) SetPasswordRepository(repo password.Repository) RepositoryLocator
func (RepositoryLocator) SetQuotaRepository ¶
func (locator RepositoryLocator) SetQuotaRepository(repo quotas.QuotaRepository) RepositoryLocator
func (RepositoryLocator) SetRouteRepository ¶
func (locator RepositoryLocator) SetRouteRepository(repo RouteRepository) RepositoryLocator
func (RepositoryLocator) SetRouteServiceBindingRepository ¶
func (locator RepositoryLocator) SetRouteServiceBindingRepository(repo RouteServiceBindingRepository) RepositoryLocator
func (RepositoryLocator) SetRoutingAPIRepository ¶
func (locator RepositoryLocator) SetRoutingAPIRepository(repo RoutingAPIRepository) RepositoryLocator
func (RepositoryLocator) SetRunningSecurityGroupRepository ¶
func (locator RepositoryLocator) SetRunningSecurityGroupRepository(repo running.SecurityGroupsRepo) RepositoryLocator
func (RepositoryLocator) SetSecurityGroupRepository ¶
func (locator RepositoryLocator) SetSecurityGroupRepository(repo securitygroups.SecurityGroupRepo) RepositoryLocator
func (RepositoryLocator) SetSecurityGroupSpaceBinder ¶
func (locator RepositoryLocator) SetSecurityGroupSpaceBinder(repo securitygroupspaces.SecurityGroupSpaceBinder) RepositoryLocator
func (RepositoryLocator) SetServiceAuthTokenRepository ¶
func (locator RepositoryLocator) SetServiceAuthTokenRepository(repo ServiceAuthTokenRepository) RepositoryLocator
func (RepositoryLocator) SetServiceBindingRepository ¶
func (locator RepositoryLocator) SetServiceBindingRepository(repo ServiceBindingRepository) RepositoryLocator
func (RepositoryLocator) SetServiceBrokerRepository ¶
func (locator RepositoryLocator) SetServiceBrokerRepository(repo ServiceBrokerRepository) RepositoryLocator
func (RepositoryLocator) SetServiceKeyRepository ¶
func (locator RepositoryLocator) SetServiceKeyRepository(repo ServiceKeyRepository) RepositoryLocator
func (RepositoryLocator) SetServiceRepository ¶
func (locator RepositoryLocator) SetServiceRepository(repo ServiceRepository) RepositoryLocator
func (RepositoryLocator) SetServiceSummaryRepository ¶
func (locator RepositoryLocator) SetServiceSummaryRepository(repo ServiceSummaryRepository) RepositoryLocator
func (RepositoryLocator) SetSpaceQuotaRepository ¶
func (locator RepositoryLocator) SetSpaceQuotaRepository(repo spacequotas.SpaceQuotaRepository) RepositoryLocator
func (RepositoryLocator) SetSpaceRepository ¶
func (locator RepositoryLocator) SetSpaceRepository(repo spaces.SpaceRepository) RepositoryLocator
func (RepositoryLocator) SetStackRepository ¶
func (locator RepositoryLocator) SetStackRepository(repo stacks.StackRepository) RepositoryLocator
func (RepositoryLocator) SetStagingSecurityGroupRepository ¶
func (locator RepositoryLocator) SetStagingSecurityGroupRepository(repo staging.SecurityGroupsRepo) RepositoryLocator
func (RepositoryLocator) SetUserProvidedServiceInstanceRepository ¶
func (locator RepositoryLocator) SetUserProvidedServiceInstanceRepository(repo UserProvidedServiceInstanceRepository) RepositoryLocator
func (RepositoryLocator) SetUserRepository ¶
func (locator RepositoryLocator) SetUserRepository(repo UserRepository) RepositoryLocator
type RouteRepository ¶
type RouteRepository interface { ListRoutes(cb func(models.Route) bool) (apiErr error) ListAllRoutes(cb func(models.Route) bool) (apiErr error) Find(host string, domain models.DomainFields, path string, port int) (route models.Route, apiErr error) Create(host string, domain models.DomainFields, path string, port int, useRandomPort bool) (createdRoute models.Route, apiErr error) CheckIfExists(host string, domain models.DomainFields, path string) (found bool, apiErr error) CreateInSpace(host, path, domainGUID, spaceGUID string, port int, randomPort bool) (createdRoute models.Route, apiErr error) Bind(routeGUID, appGUID string) (apiErr error) Unbind(routeGUID, appGUID string) (apiErr error) Delete(routeGUID string) (apiErr error) }
type RouteSummary ¶
type RouteSummary struct { GUID string Host string Path string Port int Domain DomainSummary }
func (RouteSummary) ToModel ¶
func (resource RouteSummary) ToModel() (route models.RouteSummary)
type RoutingAPIRepository ¶
type RoutingAPIRepository interface {
ListRouterGroups(cb func(models.RouterGroup) bool) (apiErr error)
}
func NewRoutingAPIRepository ¶
func NewRoutingAPIRepository(config coreconfig.Reader, gateway net.Gateway) RoutingAPIRepository
type ServiceAuthTokenRepository ¶
type ServiceAuthTokenRepository interface { FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error) Create(authToken models.ServiceAuthTokenFields) (apiErr error) Update(authToken models.ServiceAuthTokenFields) (apiErr error) Delete(authToken models.ServiceAuthTokenFields) (apiErr error) }
type ServiceBrokerRepository ¶
type ServiceBrokerRepository interface { ListServiceBrokers(callback func(models.ServiceBroker) bool) error FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error) FindByGUID(guid string) (serviceBroker models.ServiceBroker, apiErr error) Create(name, url, username, password, spaceGUID string) (apiErr error) Update(serviceBroker models.ServiceBroker) (apiErr error) Rename(guid, name string) (apiErr error) Delete(guid string) (apiErr error) }
type ServiceInstanceSummary ¶
type ServiceInstanceSummary struct { Name string GUID string `json:"guid"` LastOperation LastOperationSummary `json:"last_operation"` ServicePlan ServicePlanSummary `json:"service_plan"` }
type ServiceInstancesSummaries ¶
type ServiceInstancesSummaries struct { Apps []ServiceInstanceSummaryApp ServiceInstances []ServiceInstanceSummary `json:"services"` }
func (ServiceInstancesSummaries) ToModels ¶
func (resource ServiceInstancesSummaries) ToModels() []models.ServiceInstance
type ServiceKeyRepository ¶
type ServiceKeyRepository interface { CreateServiceKey(serviceKeyGUID string, keyName string, params map[string]interface{}) error ListServiceKeys(serviceKeyGUID string) ([]models.ServiceKey, error) GetServiceKey(serviceKeyGUID string, keyName string) (models.ServiceKey, error) DeleteServiceKey(serviceKeyGUID string) error }
type ServiceOfferingSummary ¶
type ServicePlanRepository ¶
type ServicePlanRepository interface { Search(searchParameters map[string]string) ([]models.ServicePlanFields, error) Update(models.ServicePlanFields, string, bool) error ListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error) }
type ServicePlanSummary ¶
type ServicePlanSummary struct { Name string GUID string ServiceOffering ServiceOfferingSummary `json:"service"` }
func (ServicePlanSummary) ToModel ¶
func (resource ServicePlanSummary) ToModel() (route models.ServicePlanSummary)
type ServiceRepository ¶
type ServiceRepository interface { PurgeServiceOffering(offering models.ServiceOffering) error GetServiceOfferingByGUID(serviceGUID string) (offering models.ServiceOffering, apiErr error) FindServiceOfferingsByLabel(name string) (offering models.ServiceOfferings, apiErr error) FindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr error) FindServiceOfferingsForSpaceByLabel(spaceGUID, name string) (offering models.ServiceOfferings, apiErr error) GetAllServiceOfferings() (offerings models.ServiceOfferings, apiErr error) GetServiceOfferingsForSpace(spaceGUID string) (offerings models.ServiceOfferings, apiErr error) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error) PurgeServiceInstance(instance models.ServiceInstance) error CreateServiceInstance(name, planGUID string, params map[string]interface{}, tags []string) (apiErr error) UpdateServiceInstance(instanceGUID, planGUID string, params map[string]interface{}, tags []string) (apiErr error) RenameService(instance models.ServiceInstance, newName string) (apiErr error) DeleteService(instance models.ServiceInstance) (apiErr error) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGUID string, apiErr error) ListServicesFromBroker(brokerGUID string) (services []models.ServiceOffering, err error) ListServicesFromManyBrokers(brokerGUIDs []string) (services []models.ServiceOffering, err error) GetServiceInstanceCountForServicePlan(v1PlanGUID string) (count int, apiErr error) MigrateServicePlanFromV1ToV2(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error) }
type ServiceSummaryRepository ¶
type ServiceSummaryRepository interface {
GetSummariesInCurrentSpace() ([]models.ServiceInstance, error)
}
type UserProvidedServiceInstanceRepository ¶
type UserProvidedServiceInstanceRepository interface { Create(name, drainURL string, routeServiceURL string, params map[string]interface{}, tags []string) (apiErr error) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error) GetSummaries() (models.UserProvidedServiceSummary, error) }
type UserRepository ¶
type UserRepository interface { FindByUsername(username string) (user models.UserFields, apiErr error) FindAllByUsername(username string) (users []models.UserFields, apiErr error) ListUsersInOrgForRoleWithNoUAA(orgGUID string, role models.Role) ([]models.UserFields, error) ListUsersInSpaceForRoleWithNoUAA(spaceGUID string, role models.Role) ([]models.UserFields, error) Create(username, password string) (apiErr error) Delete(userGUID string) (apiErr error) SetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (apiErr error) SetOrgRoleByUsername(username, orgGUID string, role models.Role) (apiErr error) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (apiErr error) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) (apiErr error) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) (apiErr error) SetSpaceRoleByUsername(username, spaceGUID, orgGUID string, role models.Role) (apiErr error) UnsetSpaceRoleByGUID(userGUID, spaceGUID string, role models.Role) (apiErr error) UnsetSpaceRoleByUsername(userGUID, spaceGUID string, role models.Role) (apiErr error) }
Source Files ¶
- app_summary.go
- buildpack_bits.go
- buildpacks.go
- clients.go
- curl.go
- domains.go
- endpoints.go
- repository_locator.go
- resource.go
- route_service_binding_repository.go
- routes.go
- routing_api.go
- service_auth_tokens.go
- service_bindings.go
- service_brokers.go
- service_keys.go
- service_plan.go
- service_plan_visibility.go
- service_summary.go
- services.go
- user_provided_service_instances.go
- users.go
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter Code generated by counterfeiter.
|
This file was generated by counterfeiter Code generated by counterfeiter. |
appeventsfakes
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
appfilesfakes
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
appinstancesfakes
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
applicationbitsfakes
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
applicationsfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
authenticationfakes
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
copyapplicationsourcefakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
environmentvariablegroupsfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
featureflagsfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
logsfakes
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
organizationsfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
passwordfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
quotasfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
defaults/running/runningfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
defaults/staging/stagingfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
securitygroupsfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
spaces/spacesfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
spacequotasfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
spacesfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
stacksfakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.