{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.51.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Types\n\n```go\ntype AppSummaryRepository interface {\n\tGetSummariesInCurrentSpace() (apps []models.Application, apiErr error)\n\tGetSummary(appGUID string) (summary models.Application, apiErr error)\n}\n```\n\n```go\ntype ApplicationFromSummary struct {\n\tGUID                    string\n\tName                    string\n\tRoutes                  []RouteSummary\n\tServices                []ServicePlanSummary\n\tRunningInstances        int `json:\"running_instances\"`\n\tMemory                  int64\n\tInstances               int\n\tDiskQuota               int64 `json:\"disk_quota\"`\n\tURLs                    []string\n\tEnvironmentVars         map[string]interface{} `json:\"environment_json,omitempty\"`\n\tHealthCheckTimeout      int                    `json:\"health_check_timeout\"`\n\tHealthCheckType         string                 `json:\"health_check_type\"`\n\tHealthCheckHTTPEndpoint string                 `json:\"health_check_http_endpoint\"`\n\tState                   string\n\tDetectedStartCommand    string     `json:\"detected_start_command\"`\n\tSpaceGUID               string     `json:\"space_guid\"`\n\tStackGUID               string     `json:\"stack_guid\"`\n\tCommand                 string     `json:\"command\"`\n\tPackageState            string     `json:\"package_state\"`\n\tPackageUpdatedAt        *time.Time `json:\"package_updated_at\"`\n\tBuildpack               string\n}\n```\n\n```go\nfunc (resource ApplicationFromSummary) ToFields() (app models.ApplicationFields)\n```\n\n```go\nfunc (resource ApplicationFromSummary) ToModel() models.Application\n```\n\n```go\ntype ApplicationSummaries struct {\n\tApps []ApplicationFromSummary\n}\n```\n\n```go\nfunc (resource ApplicationSummaries) ToModels() (apps []models.ApplicationFields)\n```\n\n```go\ntype BuildpackBitsRepository interface {\n\tUploadBuildpack(buildpack models.Buildpack, buildpackFile *os.File, zipFileName string) error\n\tCreateBuildpackZipFile(buildpackPath string) (*os.File, string, error)\n}\n```\n\n```go\ntype BuildpackRepository interface {\n\tFindByName(name string) (buildpack models.Buildpack, apiErr error)\n\tFindByNameAndStack(name, stack string) (buildpack models.Buildpack, apiErr error)\n\tFindByNameWithNilStack(name string) (buildpack models.Buildpack, apiErr error)\n\tListBuildpacks(func(models.Buildpack) bool) error\n\tCreate(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error)\n\tDelete(buildpackGUID string) (apiErr error)\n\tUpdate(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error)\n}\n```\n\n```go\ntype CCUserProvidedServiceInstanceRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCCUserProvidedServiceInstanceRepository(config coreconfig.Reader, gateway net.Gateway) (repo CCUserProvidedServiceInstanceRepository)\n```\n\n```go\nfunc (repo CCUserProvidedServiceInstanceRepository) Create(name, drainURL string, routeServiceURL string, params map[string]interface{}, tags []string) (apiErr error)\n```\n\n```go\nfunc (repo CCUserProvidedServiceInstanceRepository) GetSummaries() (models.UserProvidedServiceSummary, error)\n```\n\n```go\nfunc (repo CCUserProvidedServiceInstanceRepository) Update(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)\n```\n\n```go\ntype ClientRepository interface {\n\tClientExists(clientID string) (exists bool, apiErr error)\n}\n```\n\n```go\ntype CloudControllerAppSummaryRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerAppSummaryRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerAppSummaryRepository)\n```\n\n```go\nfunc (repo CloudControllerAppSummaryRepository) GetSummariesInCurrentSpace() ([]models.Application, error)\n```\n\n```go\nfunc (repo CloudControllerAppSummaryRepository) GetSummary(appGUID string) (summary models.Application, apiErr error)\n```\n\n```go\ntype CloudControllerBuildpackBitsRepository struct {\n\tTrustedCerts []tls.Certificate\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerBuildpackBitsRepository(config coreconfig.Reader, gateway net.Gateway, zipper appfiles.Zipper) (repo CloudControllerBuildpackBitsRepository)\n```\n\n```go\nfunc (repo CloudControllerBuildpackBitsRepository) CreateBuildpackZipFile(buildpackPath string) (*os.File, string, error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackBitsRepository) UploadBuildpack(buildpack models.Buildpack, buildpackFile *os.File, buildpackName string) error\n```\n\n```go\ntype CloudControllerBuildpackRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerBuildpackRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerBuildpackRepository)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) Delete(buildpackGUID string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) FindByNameAndStack(name, stack string) (buildpack models.Buildpack, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) FindByNameWithNilStack(name string) (buildpack models.Buildpack, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) error\n```\n\n```go\nfunc (repo CloudControllerBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error)\n```\n\n```go\ntype CloudControllerClientRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerClientRepository(config coreconfig.Reader, uaaGateway net.Gateway) (repo CloudControllerClientRepository)\n```\n\n```go\nfunc (repo CloudControllerClientRepository) ClientExists(clientID string) (exists bool, apiErr error)\n```\n\n```go\ntype CloudControllerCurlRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerCurlRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerCurlRepository)\n```\n\n```go\nfunc (repo CloudControllerCurlRepository) Request(method, path, headerString, body string, failOnHTTPError bool) (resHeaders, resBody string, err error)\n```\n\n```go\ntype CloudControllerDomainRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerDomainRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerDomainRepository\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) Create(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, err error)\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) CreateSharedDomain(domainName string, routerGroupGUID string) error\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) Delete(domainGUID string) error\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) DeleteSharedDomain(domainGUID string) error\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) FindByNameInOrg(name string, orgGUID string) (models.DomainFields, error)\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) FindPrivateByName(name string) (domain models.DomainFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) FindSharedByName(name string) (domain models.DomainFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) FirstOrDefault(orgGUID string, name *string) (domain models.DomainFields, error error)\n```\n\n```go\nfunc (repo CloudControllerDomainRepository) ListDomainsForOrg(orgGUID string, cb func(models.DomainFields) bool) error\n```\n\n```go\ntype CloudControllerRouteRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerRouteRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerRouteRepository)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) Bind(routeGUID, appGUID string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) CheckIfExists(host string, domain models.DomainFields, path string) (bool, error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) Create(host string, domain models.DomainFields, path string, port int, useRandomPort bool) (createdRoute models.Route, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) CreateInSpace(host, path, domainGUID, spaceGUID string, port int, randomPort bool) (models.Route, error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) Delete(routeGUID string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) Find(host string, domain models.DomainFields, path string, port int) (models.Route, error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerRouteRepository) Unbind(routeGUID, appGUID string) (apiErr error)\n```\n\n```go\ntype CloudControllerRouteServiceBindingRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerRouteServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerRouteServiceBindingRepository\n```\n\n```go\nfunc (repo CloudControllerRouteServiceBindingRepository) Bind(\n\tinstanceGUID string,\n\trouteGUID string,\n\tuserProvided bool,\n\topaqueParams string,\n) error\n```\n\n```go\nfunc (repo CloudControllerRouteServiceBindingRepository) Unbind(instanceGUID, routeGUID string, userProvided bool) error\n```\n\n```go\ntype CloudControllerServiceAuthTokenRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceAuthTokenRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceAuthTokenRepository)\n```\n\n```go\nfunc (repo CloudControllerServiceAuthTokenRepository) Create(authToken models.ServiceAuthTokenFields) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceAuthTokenRepository) Delete(authToken models.ServiceAuthTokenFields) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceAuthTokenRepository) FindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceAuthTokenRepository) FindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceAuthTokenRepository) Update(authToken models.ServiceAuthTokenFields) (apiErr error)\n```\n\n```go\ntype CloudControllerServiceBindingRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceBindingRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceBindingRepository)\n```\n\n```go\nfunc (repo CloudControllerServiceBindingRepository) Create(instanceGUID, appGUID string, paramsMap map[string]interface{}) error\n```\n\n```go\nfunc (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGUID string) (bool, error)\n```\n\n```go\nfunc (repo CloudControllerServiceBindingRepository) ListAllForService(instanceGUID string) ([]models.ServiceBindingFields, error)\n```\n\n```go\ntype CloudControllerServiceBrokerRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceBrokerRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceBrokerRepository)\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) Create(name, url, username, password, spaceGUID string) error\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) Delete(guid string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) FindByGUID(guid string) (serviceBroker models.ServiceBroker, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) FindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) ListServiceBrokers(callback func(models.ServiceBroker) bool) error\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error)\n```\n\n```go\ntype CloudControllerServiceKeyRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceKeyRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceKeyRepository)\n```\n\n```go\nfunc (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGUID string, keyName string, params map[string]interface{}) error\n```\n\n```go\nfunc (c CloudControllerServiceKeyRepository) DeleteServiceKey(serviceKeyGUID string) error\n```\n\n```go\nfunc (c CloudControllerServiceKeyRepository) GetServiceKey(instanceGUID string, keyName string) (models.ServiceKey, error)\n```\n\n```go\nfunc (c CloudControllerServiceKeyRepository) ListServiceKeys(instanceGUID string) ([]models.ServiceKey, error)\n```\n\n```go\ntype CloudControllerServicePlanRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServicePlanRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServicePlanRepository\n```\n\n```go\nfunc (repo CloudControllerServicePlanRepository) ListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error)\n```\n\n```go\nfunc (repo CloudControllerServicePlanRepository) Search(queryParams map[string]string) (plans []models.ServicePlanFields, err error)\n```\n\n```go\nfunc (repo CloudControllerServicePlanRepository) Update(servicePlan models.ServicePlanFields, serviceGUID string, public bool) error\n```\n\n```go\ntype CloudControllerServicePlanVisibilityRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServicePlanVisibilityRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServicePlanVisibilityRepository\n```\n\n```go\nfunc (repo CloudControllerServicePlanVisibilityRepository) Create(serviceGUID, orgGUID string) error\n```\n\n```go\nfunc (repo CloudControllerServicePlanVisibilityRepository) Delete(servicePlanGUID string) error\n```\n\n```go\nfunc (repo CloudControllerServicePlanVisibilityRepository) List() (visibilities []models.ServicePlanVisibilityFields, err error)\n```\n\n```go\nfunc (repo CloudControllerServicePlanVisibilityRepository) Search(queryParams map[string]string) ([]models.ServicePlanVisibilityFields, error)\n```\n\n```go\ntype CloudControllerServiceRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceRepository)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGUID string, params map[string]interface{}, tags []string) (err error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) FindServiceOfferingByLabelAndProvider(label, provider string) (models.ServiceOffering, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) FindServiceOfferingsByLabel(label string) (models.ServiceOfferings, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) FindServiceOfferingsForSpaceByLabel(spaceGUID, name string) (offerings models.ServiceOfferings, err error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (string, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) GetAllServiceOfferings() (models.ServiceOfferings, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) GetServiceInstanceCountForServicePlan(v1PlanGUID string) (count int, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) GetServiceOfferingByGUID(serviceGUID string) (models.ServiceOffering, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) GetServiceOfferingsForSpace(spaceGUID string) (models.ServiceOfferings, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) ListServicesFromBroker(brokerGUID string) (offerings []models.ServiceOffering, err error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) ListServicesFromManyBrokers(brokerGUIDs []string) ([]models.ServiceOffering, error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) MigrateServicePlanFromV1ToV2(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) RenameService(instance models.ServiceInstance, newName string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGUID, planGUID string, params map[string]interface{}, tags []string) (err error)\n```\n\n```go\ntype CloudControllerServiceSummaryRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerServiceSummaryRepository(config coreconfig.Reader, gateway net.Gateway) CloudControllerServiceSummaryRepository\n```\n\n```go\nfunc (repo CloudControllerServiceSummaryRepository) GetSummariesInCurrentSpace() ([]models.ServiceInstance, error)\n```\n\n```go\ntype CloudControllerUserRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerUserRepository(config coreconfig.Reader, uaaGateway net.Gateway, ccGateway net.Gateway) (repo CloudControllerUserRepository)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) Create(username, password string) (err error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) Delete(userGUID string) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) FindAllByUsername(username string) (users []models.UserFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) ListUsersInOrgForRoleWithNoUAA(orgGUID string, roleName models.Role) (users []models.UserFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) ListUsersInSpaceForRoleWithNoUAA(spaceGUID string, roleName models.Role) (users []models.UserFields, apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) SetOrgRoleByGUID(userGUID string, orgGUID string, role models.Role) (err error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) SetOrgRoleByUsername(username string, orgGUID string, role models.Role) error\n```\n\n```go\nfunc (repo CloudControllerUserRepository) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) error\n```\n\n```go\nfunc (repo CloudControllerUserRepository) SetSpaceRoleByUsername(username, spaceGUID, orgGUID string, role models.Role) (apiErr error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error)\n```\n\n```go\nfunc (repo CloudControllerUserRepository) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) error\n```\n\n```go\nfunc (repo CloudControllerUserRepository) UnsetSpaceRoleByGUID(userGUID, spaceGUID string, role models.Role) error\n```\n\n```go\nfunc (repo CloudControllerUserRepository) UnsetSpaceRoleByUsername(username, spaceGUID string, role models.Role) error\n```\n\n```go\ntype CurlRepository interface {\n\tRequest(method, path, header, body string, failOnHTTPError bool) (resHeaders string, resBody string, apiErr error)\n}\n```\n\n```go\ntype DomainRepository interface {\n\tListDomainsForOrg(orgGUID string, cb func(models.DomainFields) bool) error\n\tFindSharedByName(name string) (domain models.DomainFields, apiErr error)\n\tFindPrivateByName(name string) (domain models.DomainFields, apiErr error)\n\tFindByNameInOrg(name string, owningOrgGUID string) (domain models.DomainFields, apiErr error)\n\tCreate(domainName string, owningOrgGUID string) (createdDomain models.DomainFields, apiErr error)\n\tCreateSharedDomain(domainName string, routerGroupGUID string) (apiErr error)\n\tDelete(domainGUID string) (apiErr error)\n\tDeleteSharedDomain(domainGUID string) (apiErr error)\n\tFirstOrDefault(orgGUID string, name *string) (domain models.DomainFields, error error)\n}\n```\n\n```go\ntype DomainSummary struct {\n\tGUID                   string\n\tName                   string\n\tOwningOrganizationGUID string\n}\n```\n\n```go\ntype LastOperationSummary struct {\n\tType        string `json:\"type\"`\n\tState       string `json:\"state\"`\n\tDescription string `json:\"description\"`\n}\n```\n\n```go\ntype RemoteInfoRepository struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEndpointRepository(gateway net.Gateway) RemoteInfoRepository\n```\n\n```go\nfunc (repo RemoteInfoRepository) GetCCInfo(endpoint string) (*coreconfig.CCInfo, string, error)\n```\n\n```go\ntype RepositoryLocator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRepositoryLocator(config coreconfig.ReadWriter, gatewaysByName map[string]net.Gateway, logger trace.Printer, envDialTimeout string) (loc RepositoryLocator)\n```\n\n```go\nfunc (locator RepositoryLocator) GetAppEventsRepository() appevents.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetAppFilesRepository() api_appfiles.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetAppInstancesRepository() appinstances.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetAppSummaryRepository() AppSummaryRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetApplicationBitsRepository() applicationbits.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetApplicationRepository() applications.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetAuthenticationRepository() authentication.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetBuildpackBitsRepository() BuildpackBitsRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetBuildpackRepository() BuildpackRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetClientRepository() ClientRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetCopyApplicationSourceRepository() copyapplicationsource.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetCurlRepository() CurlRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetDomainRepository() DomainRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetEndpointRepository() coreconfig.EndpointRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetEnvironmentVariableGroupsRepository() environmentvariablegroups.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetFeatureFlagRepository() featureflags.FeatureFlagRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetLogsRepository() logs.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetOrganizationRepository() organizations.OrganizationRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetPasswordRepository() password.Repository\n```\n\n```go\nfunc (locator RepositoryLocator) GetQuotaRepository() quotas.QuotaRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetRouteRepository() RouteRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetRouteServiceBindingRepository() RouteServiceBindingRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetRoutingAPIRepository() RoutingAPIRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetRunningSecurityGroupsRepository() running.SecurityGroupsRepo\n```\n\n```go\nfunc (locator RepositoryLocator) GetSecurityGroupRepository() securitygroups.SecurityGroupRepo\n```\n\n```go\nfunc (locator RepositoryLocator) GetSecurityGroupSpaceBinder() securitygroupspaces.SecurityGroupSpaceBinder\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceAuthTokenRepository() ServiceAuthTokenRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceBindingRepository() ServiceBindingRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceBrokerRepository() ServiceBrokerRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceKeyRepository() ServiceKeyRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServicePlanRepository() ServicePlanRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServicePlanVisibilityRepository() ServicePlanVisibilityRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceRepository() ServiceRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetServiceSummaryRepository() ServiceSummaryRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetSpaceQuotaRepository() spacequotas.SpaceQuotaRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetSpaceRepository() spaces.SpaceRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetStackRepository() stacks.StackRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetStagingSecurityGroupsRepository() staging.SecurityGroupsRepo\n```\n\n```go\nfunc (locator RepositoryLocator) GetUserProvidedServiceInstanceRepository() UserProvidedServiceInstanceRepository\n```\n\n```go\nfunc (locator RepositoryLocator) GetUserRepository() UserRepository\n```\n\n```go\nfunc (locator RepositoryLocator) SetAppEventsRepository(repo appevents.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetAppFileRepository(repo api_appfiles.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetAppInstancesRepository(repo appinstances.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetAppSummaryRepository(repo AppSummaryRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetApplicationRepository(repo applications.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetAuthenticationRepository(repo authentication.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetBuildpackBitsRepository(repo BuildpackBitsRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetBuildpackRepository(repo BuildpackRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetClientRepository(repo ClientRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetCopyApplicationSourceRepository(repo copyapplicationsource.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetCurlRepository(repo CurlRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetDomainRepository(repo DomainRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetEndpointRepository(e coreconfig.EndpointRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetEnvironmentVariableGroupsRepository(repo environmentvariablegroups.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetFeatureFlagRepository(repo featureflags.FeatureFlagRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetLogsRepository(repo logs.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetOrganizationRepository(repo organizations.OrganizationRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetPasswordRepository(repo password.Repository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetQuotaRepository(repo quotas.QuotaRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetRouteRepository(repo RouteRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetRouteServiceBindingRepository(repo RouteServiceBindingRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetRoutingAPIRepository(repo RoutingAPIRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetRunningSecurityGroupRepository(repo running.SecurityGroupsRepo) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetSecurityGroupRepository(repo securitygroups.SecurityGroupRepo) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetSecurityGroupSpaceBinder(repo securitygroupspaces.SecurityGroupSpaceBinder) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceAuthTokenRepository(repo ServiceAuthTokenRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceBindingRepository(repo ServiceBindingRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceBrokerRepository(repo ServiceBrokerRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceKeyRepository(repo ServiceKeyRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceRepository(repo ServiceRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetServiceSummaryRepository(repo ServiceSummaryRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetSpaceQuotaRepository(repo spacequotas.SpaceQuotaRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetSpaceRepository(repo spaces.SpaceRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetStackRepository(repo stacks.StackRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetStagingSecurityGroupRepository(repo staging.SecurityGroupsRepo) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetUserProvidedServiceInstanceRepository(repo UserProvidedServiceInstanceRepository) RepositoryLocator\n```\n\n```go\nfunc (locator RepositoryLocator) SetUserRepository(repo UserRepository) RepositoryLocator\n```\n\n```go\ntype RouteRepository interface {\n\tListRoutes(cb func(models.Route) bool) (apiErr error)\n\tListAllRoutes(cb func(models.Route) bool) (apiErr error)\n\tFind(host string, domain models.DomainFields, path string, port int) (route models.Route, apiErr error)\n\tCreate(host string, domain models.DomainFields, path string, port int, useRandomPort bool) (createdRoute models.Route, apiErr error)\n\tCheckIfExists(host string, domain models.DomainFields, path string) (found bool, apiErr error)\n\tCreateInSpace(host, path, domainGUID, spaceGUID string, port int, randomPort bool) (createdRoute models.Route, apiErr error)\n\tBind(routeGUID, appGUID string) (apiErr error)\n\tUnbind(routeGUID, appGUID string) (apiErr error)\n\tDelete(routeGUID string) (apiErr error)\n}\n```\n\n```go\ntype RouteServiceBindingRepository interface {\n\tBind(instanceGUID, routeGUID string, userProvided bool, parameters string) error\n\tUnbind(instanceGUID, routeGUID string, userProvided bool) error\n}\n```\n\n```go\ntype RouteSummary struct {\n\tGUID   string\n\tHost   string\n\tPath   string\n\tPort   int\n\tDomain DomainSummary\n}\n```\n\n```go\nfunc (resource RouteSummary) ToModel() (route models.RouteSummary)\n```\n\n```go\ntype RoutingAPIRepository interface {\n\tListRouterGroups(cb func(models.RouterGroup) bool) (apiErr error)\n}\n```\n\n```go\nfunc NewRoutingAPIRepository(config coreconfig.Reader, gateway net.Gateway) RoutingAPIRepository\n```\n\n```go\ntype ServiceAuthTokenRepository interface {\n\tFindAll() (authTokens []models.ServiceAuthTokenFields, apiErr error)\n\tFindByLabelAndProvider(label, provider string) (authToken models.ServiceAuthTokenFields, apiErr error)\n\tCreate(authToken models.ServiceAuthTokenFields) (apiErr error)\n\tUpdate(authToken models.ServiceAuthTokenFields) (apiErr error)\n\tDelete(authToken models.ServiceAuthTokenFields) (apiErr error)\n}\n```\n\n```go\ntype ServiceBindingRepository interface {\n\tCreate(instanceGUID string, appGUID string, paramsMap map[string]interface{}) error\n\tDelete(instance models.ServiceInstance, appGUID string) (bool, error)\n\tListAllForService(instanceGUID string) ([]models.ServiceBindingFields, error)\n}\n```\n\n```go\ntype ServiceBrokerRepository interface {\n\tListServiceBrokers(callback func(models.ServiceBroker) bool) error\n\tFindByName(name string) (serviceBroker models.ServiceBroker, apiErr error)\n\tFindByGUID(guid string) (serviceBroker models.ServiceBroker, apiErr error)\n\tCreate(name, url, username, password, spaceGUID string) (apiErr error)\n\tUpdate(serviceBroker models.ServiceBroker) (apiErr error)\n\tRename(guid, name string) (apiErr error)\n\tDelete(guid string) (apiErr error)\n}\n```\n\n```go\ntype ServiceInstanceSummary struct {\n\tName          string\n\tGUID          string               `json:\"guid\"`\n\tLastOperation LastOperationSummary `json:\"last_operation\"`\n\tServicePlan   ServicePlanSummary   `json:\"service_plan\"`\n}\n```\n\n```go\ntype ServiceInstanceSummaryApp struct {\n\tName         string\n\tServiceNames []string `json:\"service_names\"`\n}\n```\n\n```go\ntype ServiceInstancesSummaries struct {\n\tApps             []ServiceInstanceSummaryApp\n\tServiceInstances []ServiceInstanceSummary `json:\"services\"`\n}\n```\n\n```go\nfunc (resource ServiceInstancesSummaries) ToModels() []models.ServiceInstance\n```\n\n```go\ntype ServiceKeyRepository interface {\n\tCreateServiceKey(serviceKeyGUID string, keyName string, params map[string]interface{}) error\n\tListServiceKeys(serviceKeyGUID string) ([]models.ServiceKey, error)\n\tGetServiceKey(serviceKeyGUID string, keyName string) (models.ServiceKey, error)\n\tDeleteServiceKey(serviceKeyGUID string) error\n}\n```\n\n```go\ntype ServiceOfferingSummary struct {\n\tLabel    string\n\tProvider string\n\tVersion  string\n}\n```\n\n```go\ntype ServicePlanRepository interface {\n\tSearch(searchParameters map[string]string) ([]models.ServicePlanFields, error)\n\tUpdate(models.ServicePlanFields, string, bool) error\n\tListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error)\n}\n```\n\n```go\ntype ServicePlanSummary struct {\n\tName            string\n\tGUID            string\n\tServiceOffering ServiceOfferingSummary `json:\"service\"`\n}\n```\n\n```go\nfunc (resource ServicePlanSummary) ToModel() (route models.ServicePlanSummary)\n```\n\n```go\ntype ServicePlanVisibilityRepository interface {\n\tCreate(string, string) error\n\tList() ([]models.ServicePlanVisibilityFields, error)\n\tDelete(string) error\n\tSearch(map[string]string) ([]models.ServicePlanVisibilityFields, error)\n}\n```\n\n```go\ntype ServiceRepository interface {\n\tPurgeServiceOffering(offering models.ServiceOffering) error\n\tGetServiceOfferingByGUID(serviceGUID string) (offering models.ServiceOffering, apiErr error)\n\tFindServiceOfferingsByLabel(name string) (offering models.ServiceOfferings, apiErr error)\n\tFindServiceOfferingByLabelAndProvider(name, provider string) (offering models.ServiceOffering, apiErr error)\n\n\tFindServiceOfferingsForSpaceByLabel(spaceGUID, name string) (offering models.ServiceOfferings, apiErr error)\n\n\tGetAllServiceOfferings() (offerings models.ServiceOfferings, apiErr error)\n\tGetServiceOfferingsForSpace(spaceGUID string) (offerings models.ServiceOfferings, apiErr error)\n\tFindInstanceByName(name string) (instance models.ServiceInstance, apiErr error)\n\tPurgeServiceInstance(instance models.ServiceInstance) error\n\tCreateServiceInstance(name, planGUID string, params map[string]interface{}, tags []string) (apiErr error)\n\tUpdateServiceInstance(instanceGUID, planGUID string, params map[string]interface{}, tags []string) (apiErr error)\n\tRenameService(instance models.ServiceInstance, newName string) (apiErr error)\n\tDeleteService(instance models.ServiceInstance) (apiErr error)\n\tFindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGUID string, apiErr error)\n\tListServicesFromBroker(brokerGUID string) (services []models.ServiceOffering, err error)\n\tListServicesFromManyBrokers(brokerGUIDs []string) (services []models.ServiceOffering, err error)\n\tGetServiceInstanceCountForServicePlan(v1PlanGUID string) (count int, apiErr error)\n\tMigrateServicePlanFromV1ToV2(v1PlanGUID, v2PlanGUID string) (changedCount int, apiErr error)\n}\n```\n\n```go\ntype ServiceSummaryRepository interface {\n\tGetSummariesInCurrentSpace() ([]models.ServiceInstance, error)\n}\n```\n\n```go\ntype UserProvidedServiceInstanceRepository interface {\n\tCreate(name, drainURL string, routeServiceURL string, params map[string]interface{}, tags []string) (apiErr error)\n\tUpdate(serviceInstanceFields models.ServiceInstanceFields) (apiErr error)\n\tGetSummaries() (models.UserProvidedServiceSummary, error)\n}\n```\n\n```go\ntype UserRepository interface {\n\tFindByUsername(username string) (user models.UserFields, apiErr error)\n\tFindAllByUsername(username string) (users []models.UserFields, apiErr error)\n\tListUsersInOrgForRoleWithNoUAA(orgGUID string, role models.Role) ([]models.UserFields, error)\n\tListUsersInSpaceForRoleWithNoUAA(spaceGUID string, role models.Role) ([]models.UserFields, error)\n\tCreate(username, password string) (apiErr error)\n\tDelete(userGUID string) (apiErr error)\n\tSetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (apiErr error)\n\tSetOrgRoleByUsername(username, orgGUID string, role models.Role) (apiErr error)\n\tUnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (apiErr error)\n\tUnsetOrgRoleByUsername(username, orgGUID string, role models.Role) (apiErr error)\n\tSetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) (apiErr error)\n\tSetSpaceRoleByUsername(username, spaceGUID, orgGUID string, role models.Role) (apiErr error)\n\tUnsetSpaceRoleByGUID(userGUID, spaceGUID string, role models.Role) (apiErr error)\n\tUnsetSpaceRoleByUsername(userGUID, spaceGUID string, role models.Role) (apiErr error)\n}\n```\n\n","path":"code.cloudfoundry.org/cli-sapi/cf/api","name":"api","synopsis":"","isRedistributable":true}
