Versions in this module Expand all Collapse all v8 v8.4.4 Aug 24, 2022 v8.4.3 Aug 24, 2022 Changes in this version + type AppSummaryRepository interface + GetSummariesInCurrentSpace func() (apps []models.Application, apiErr error) + GetSummary func(appGUID string) (summary models.Application, apiErr error) + type ApplicationFromSummary struct + Buildpack string + Command string + DetectedStartCommand string + DiskQuota int64 + EnvironmentVars map[string]interface{} + GUID string + HealthCheckHTTPEndpoint string + HealthCheckTimeout int + HealthCheckType string + Instances int + Memory int64 + Name string + PackageState string + PackageUpdatedAt *time.Time + Routes []RouteSummary + RunningInstances int + Services []ServicePlanSummary + SpaceGUID string + StackGUID string + State string + URLs []string + func (resource ApplicationFromSummary) ToFields() (app models.ApplicationFields) + func (resource ApplicationFromSummary) ToModel() models.Application + type ApplicationSummaries struct + Apps []ApplicationFromSummary + func (resource ApplicationSummaries) ToModels() (apps []models.ApplicationFields) + type BuildpackBitsRepository interface + CreateBuildpackZipFile func(buildpackPath string) (*os.File, string, error) + UploadBuildpack func(buildpack models.Buildpack, buildpackFile *os.File, zipFileName string) error + type BuildpackRepository interface + Create func(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error) + Delete func(buildpackGUID string) (apiErr error) + FindByName func(name string) (buildpack models.Buildpack, apiErr error) + FindByNameAndStack func(name, stack string) (buildpack models.Buildpack, apiErr error) + FindByNameWithNilStack func(name string) (buildpack models.Buildpack, apiErr error) + ListBuildpacks func(func(models.Buildpack) bool) error + Update func(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error) + type CCUserProvidedServiceInstanceRepository struct + func NewCCUserProvidedServiceInstanceRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 interface + ClientExists func(clientID string) (exists bool, apiErr error) + type CloudControllerAppSummaryRepository struct + func NewCloudControllerAppSummaryRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerAppSummaryRepository) + func (repo CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace() ([]models.Application, error) + func (repo CloudControllerAppSummaryRepository) GetSummary(appGUID string) (summary models.Application, apiErr error) + type CloudControllerBuildpackBitsRepository struct + TrustedCerts []tls.Certificate + func NewCloudControllerBuildpackBitsRepository(config coreconfig.Reader, gateway net.Gateway, zipper appfiles.Zipper) (repo CloudControllerBuildpackBitsRepository) + func (repo CloudControllerBuildpackBitsRepository) CreateBuildpackZipFile(buildpackPath string) (*os.File, string, error) + func (repo CloudControllerBuildpackBitsRepository) UploadBuildpack(buildpack models.Buildpack, buildpackFile *os.File, buildpackName string) error + type CloudControllerBuildpackRepository struct + func NewCloudControllerBuildpackRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerClientRepository(config coreconfig.Reader, uaaGateway net.Gateway) (repo CloudControllerClientRepository) + func (repo CloudControllerClientRepository) ClientExists(clientID string) (exists bool, apiErr error) + type CloudControllerCurlRepository struct + func NewCloudControllerCurlRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerCurlRepository) + func (repo CloudControllerCurlRepository) Request(method, path, headerString, body string, failOnHTTPError bool) (resHeaders, resBody string, err error) + type CloudControllerDomainRepository struct + func NewCloudControllerDomainRepository(config coreconfig.Reader, gateway net.Gateway) 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 struct + func NewCloudControllerRouteRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerRouteServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerRouteServiceBindingRepository + func (repo CloudControllerRouteServiceBindingRepository) Bind(instanceGUID string, routeGUID string, userProvided bool, opaqueParams string) error + func (repo CloudControllerRouteServiceBindingRepository) Unbind(instanceGUID, routeGUID string, userProvided bool) error + type CloudControllerServiceAuthTokenRepository struct + func NewCloudControllerServiceAuthTokenRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerServiceBrokerRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerServiceKeyRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerServicePlanRepository(config coreconfig.Reader, gateway net.Gateway) 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 struct + func NewCloudControllerServicePlanVisibilityRepository(config coreconfig.Reader, gateway net.Gateway) 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 struct + func NewCloudControllerServiceRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 struct + func NewCloudControllerServiceSummaryRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServiceSummaryRepository + func (repo CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace() ([]models.ServiceInstance, error) + type CloudControllerUserRepository struct + func NewCloudControllerUserRepository(config coreconfig.Reader, uaaGateway net.Gateway, ccGateway net.Gateway) (repo 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 interface + Request func(method, path, header, body string, failOnHTTPError bool) (resHeaders string, resBody string, apiErr error) + type DomainRepository interface + Create func(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, apiErr error) + CreateSharedDomain func(domainName string, routerGroupGUID string) (apiErr error) + Delete func(domainGUID string) (apiErr error) + DeleteSharedDomain func(domainGUID string) (apiErr error) + FindByNameInOrg func(name string, owningOrgGUID string) (domain models.DomainFields, apiErr error) + FindPrivateByName func(name string) (domain models.DomainFields, apiErr error) + FindSharedByName func(name string) (domain models.DomainFields, apiErr error) + FirstOrDefault func(orgGUID string, name *string) (domain models.DomainFields, error error) + ListDomainsForOrg func(orgGUID string, cb func(models.DomainFields) bool) error + type DomainSummary struct + GUID string + Name string + OwningOrganizationGUID string + type LastOperationSummary struct + Description string + State string + Type string + type RemoteInfoRepository struct + func NewEndpointRepository(gateway net.Gateway) RemoteInfoRepository + func (repo RemoteInfoRepository) GetCCInfo(endpoint string) (*coreconfig.CCInfo, string, error) + type RepositoryLocator struct + func NewRepositoryLocator(config coreconfig.ReadWriter, gatewaysByName map[string]net.Gateway, ...) (loc 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 interface + Bind func(routeGUID, appGUID string) (apiErr error) + CheckIfExists func(host string, domain models.DomainFields, path string) (found bool, apiErr error) + Create func(host string, domain models.DomainFields, path string, port int, ...) (createdRoute models.Route, apiErr error) + CreateInSpace func(host, path, domainGUID, spaceGUID string, port int, randomPort bool) (createdRoute models.Route, apiErr error) + Delete func(routeGUID string) (apiErr error) + Find func(host string, domain models.DomainFields, path string, port int) (route models.Route, apiErr error) + ListAllRoutes func(cb func(models.Route) bool) (apiErr error) + ListRoutes func(cb func(models.Route) bool) (apiErr error) + Unbind func(routeGUID, appGUID string) (apiErr error) + type RouteServiceBindingRepository interface + Bind func(instanceGUID, routeGUID string, userProvided bool, parameters string) error + Unbind func(instanceGUID, routeGUID string, userProvided bool) error + type RouteSummary struct + Domain DomainSummary + GUID string + Host string + Path string + Port int + func (resource RouteSummary) ToModel() (route models.RouteSummary) + type RoutingAPIRepository interface + ListRouterGroups func(cb func(models.RouterGroup) bool) (apiErr error) + func NewRoutingAPIRepository(config coreconfig.Reader, gateway net.Gateway) RoutingAPIRepository + type ServiceAuthTokenRepository interface + Create func(authToken models.ServiceAuthTokenFields) (apiErr error) + Delete func(authToken models.ServiceAuthTokenFields) (apiErr error) + FindAll func() (authTokens []models.ServiceAuthTokenFields, apiErr error) + FindByLabelAndProvider func(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error) + Update func(authToken models.ServiceAuthTokenFields) (apiErr error) + type ServiceBindingRepository interface + Create func(instanceGUID string, appGUID string, paramsMap map[string]interface{}) error + Delete func(instance models.ServiceInstance, appGUID string) (bool, error) + ListAllForService func(instanceGUID string) ([]models.ServiceBindingFields, error) + type ServiceBrokerRepository interface + Create func(name, url, username, password, spaceGUID string) (apiErr error) + Delete func(guid string) (apiErr error) + FindByGUID func(guid string) (serviceBroker models.ServiceBroker, apiErr error) + FindByName func(name string) (serviceBroker models.ServiceBroker, apiErr error) + ListServiceBrokers func(callback func(models.ServiceBroker) bool) error + Rename func(guid, name string) (apiErr error) + Update func(serviceBroker models.ServiceBroker) (apiErr error) + type ServiceInstanceSummary struct + GUID string + LastOperation LastOperationSummary + Name string + ServicePlan ServicePlanSummary + type ServiceInstanceSummaryApp struct + Name string + ServiceNames []string + type ServiceInstancesSummaries struct + Apps []ServiceInstanceSummaryApp + ServiceInstances []ServiceInstanceSummary + func (resource ServiceInstancesSummaries) ToModels() []models.ServiceInstance + type ServiceKeyRepository interface + CreateServiceKey func(serviceKeyGUID string, keyName string, params map[string]interface{}) error + DeleteServiceKey func(serviceKeyGUID string) error + GetServiceKey func(serviceKeyGUID string, keyName string) (models.ServiceKey, error) + ListServiceKeys func(serviceKeyGUID string) ([]models.ServiceKey, error) + type ServiceOfferingSummary struct + Label string + Provider string + Version string + type ServicePlanRepository interface + ListPlansFromManyServices func(serviceGUIDs []string) ([]models.ServicePlanFields, error) + Search func(searchParameters map[string]string) ([]models.ServicePlanFields, error) + Update func(models.ServicePlanFields, string, bool) error + type ServicePlanSummary struct + GUID string + Name string + ServiceOffering ServiceOfferingSummary + func (resource ServicePlanSummary) ToModel() (route models.ServicePlanSummary) + type ServicePlanVisibilityRepository interface + Create func(string, string) error + Delete func(string) error + List func() ([]models.ServicePlanVisibilityFields, error) + Search func(map[string]string) ([]models.ServicePlanVisibilityFields, error) + type ServiceRepository interface + CreateServiceInstance func(name, planGUID string, params map[string]interface{}, tags []string) (apiErr error) + DeleteService func(instance models.ServiceInstance) (apiErr error) + FindInstanceByName func(name string) (instance models.ServiceInstance, apiErr error) + FindServiceOfferingByLabelAndProvider func(name, provider string) (offering models.ServiceOffering, apiErr error) + FindServiceOfferingsByLabel func(name string) (offering models.ServiceOfferings, apiErr error) + FindServiceOfferingsForSpaceByLabel func(spaceGUID, name string) (offering models.ServiceOfferings, apiErr error) + FindServicePlanByDescription func(planDescription resources.ServicePlanDescription) (planGUID string, apiErr error) + GetAllServiceOfferings func() (offerings models.ServiceOfferings, apiErr error) + GetServiceInstanceCountForServicePlan func(v1PlanGUID string) (count int, apiErr error) + GetServiceOfferingByGUID func(serviceGUID string) (offering models.ServiceOffering, apiErr error) + GetServiceOfferingsForSpace func(spaceGUID string) (offerings models.ServiceOfferings, apiErr error) + ListServicesFromBroker func(brokerGUID string) (services []models.ServiceOffering, err error) + ListServicesFromManyBrokers func(brokerGUIDs []string) (services []models.ServiceOffering, err error) + MigrateServicePlanFromV1ToV2 func(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error) + PurgeServiceInstance func(instance models.ServiceInstance) error + PurgeServiceOffering func(offering models.ServiceOffering) error + RenameService func(instance models.ServiceInstance, newName string) (apiErr error) + UpdateServiceInstance func(instanceGUID, planGUID string, params map[string]interface{}, tags *[]string) (apiErr error) + type ServiceSummaryRepository interface + GetSummariesInCurrentSpace func() ([]models.ServiceInstance, error) + type UserProvidedServiceInstanceRepository interface + Create func(name, drainURL string, routeServiceURL string, params map[string]interface{}, ...) (apiErr error) + GetSummaries func() (models.UserProvidedServiceSummary, error) + Update func(serviceInstanceFields models.ServiceInstanceFields) (apiErr error) + type UserRepository interface + Create func(username, password string) (apiErr error) + Delete func(userGUID string) (apiErr error) + FindAllByUsername func(username string) (users []models.UserFields, apiErr error) + FindByUsername func(username string) (user models.UserFields, apiErr error) + ListUsersInOrgForRoleWithNoUAA func(orgGUID string, role models.Role) ([]models.UserFields, error) + ListUsersInSpaceForRoleWithNoUAA func(spaceGUID string, role models.Role) ([]models.UserFields, error) + SetOrgRoleByGUID func(userGUID, orgGUID string, role models.Role) (apiErr error) + SetOrgRoleByUsername func(username, orgGUID string, role models.Role) (apiErr error) + SetSpaceRoleByGUID func(userGUID, spaceGUID, orgGUID string, role models.Role) (apiErr error) + SetSpaceRoleByUsername func(username, spaceGUID, orgGUID string, role models.Role) (apiErr error) + UnsetOrgRoleByGUID func(userGUID, orgGUID string, role models.Role) (apiErr error) + UnsetOrgRoleByUsername func(username, orgGUID string, role models.Role) (apiErr error) + UnsetSpaceRoleByGUID func(userGUID, spaceGUID string, role models.Role) (apiErr error) + UnsetSpaceRoleByUsername func(userGUID, spaceGUID string, role models.Role) (apiErr error) Other modules containing this package github.com/LukasHeimann/cloudfoundrycli