Documentation ¶
Index ¶
- Constants
- Variables
- func IsAppBitsCopyInvalidError(err error) bool
- func IsAppBitsUploadInvalidError(err error) bool
- func IsAppInvalidError(err error) bool
- func IsAppMemoryInvalidError(err error) bool
- func IsAppMemoryQuotaExceededError(err error) bool
- func IsAppNameTakenError(err error) bool
- func IsAppNotFoundError(err error) bool
- func IsAppPackageInvalidError(err error) bool
- func IsAppPackageNotFoundError(err error) bool
- func IsAppPortMappingRequiresDiegoError(err error) bool
- func IsAppResourcesFileModeInvalidError(err error) bool
- func IsAppResourcesFilePathInvalidError(err error) bool
- func IsAppStoppedStatsError(err error) bool
- func IsAssociationNotEmptyError(err error) bool
- func IsAsyncServiceInstanceOperationInProgressError(err error) bool
- func IsBackendSelectionNotAuthorizedError(err error) bool
- func IsBadQueryParameterError(err error) bool
- func IsBitsServiceError(err error) bool
- func IsBlobstoreError(err error) bool
- func IsBlobstoreNotLocalError(err error) bool
- func IsBlobstoreUnavailableError(err error) bool
- func IsBuildpackBitsUploadInvalidError(err error) bool
- func IsBuildpackCompileFailedError(err error) bool
- func IsBuildpackInvalidError(err error) bool
- func IsBuildpackLockedError(err error) bool
- func IsBuildpackNameTakenError(err error) bool
- func IsBuildpackReleaseFailedError(err error) bool
- func IsCustomBuildpacksDisabledError(err error) bool
- func IsDatabaseError(err error) bool
- func IsDiegoDisabledError(err error) bool
- func IsDiegoDockerBuildpackConflictError(err error) bool
- func IsDockerAppToDeaError(err error) bool
- func IsDockerDisabledError(err error) bool
- func IsDockerImageMissingError(err error) bool
- func IsDomainInvalidError(err error) bool
- func IsDomainNameTakenError(err error) bool
- func IsDomainNotFoundError(err error) bool
- func IsDropletUploadInvalidError(err error) bool
- func IsEnvironmentVariableGroupInvalidError(err error) bool
- func IsEventNotFoundError(err error) bool
- func IsFeatureDisabledError(err error) bool
- func IsFeatureFlagInvalidError(err error) bool
- func IsFeatureFlagNotFoundError(err error) bool
- func IsFileError(err error) bool
- func IsFrameworkInvalidError(err error) bool
- func IsFrameworkNameTakenError(err error) bool
- func IsFrameworkNotFoundError(err error) bool
- func IsInstancesError(err error) bool
- func IsInstancesUnavailableError(err error) bool
- func IsInsufficientResourcesError(err error) bool
- func IsInsufficientRunningResourcesAvailableError(err error) bool
- func IsInsufficientScopeError(err error) bool
- func IsInvalidAuthTokenError(err error) bool
- func IsInvalidContentTypeError(err error) bool
- func IsInvalidLoggingServiceBindingError(err error) bool
- func IsInvalidRelationError(err error) bool
- func IsInvalidRequestError(err error) bool
- func IsInvalidServiceInstanceSharingTargetSpaceError(err error) bool
- func IsInvalidTaskAddressError(err error) bool
- func IsInvalidTaskRequestError(err error) bool
- func IsJobTimeoutError(err error) bool
- func IsLastBillingManagerInOrgError(err error) bool
- func IsLastManagerInOrgError(err error) bool
- func IsLastUserInOrgError(err error) bool
- func IsLegacyApiWithoutDefaultSpaceError(err error) bool
- func IsMessageParseError(err error) bool
- func IsMultipleAppPortsMappedDiegoToDeaError(err error) bool
- func IsNoAppDetectedError(err error) bool
- func IsNoBuildpacksFoundError(err error) bool
- func IsNoCompatibleCellError(err error) bool
- func IsNonrecursiveSpaceDeletionFailedError(err error) bool
- func IsNotAuthenticatedError(err error) bool
- func IsNotAuthorizedError(err error) bool
- func IsNotFoundError(err error) bool
- func IsNotStagedError(err error) bool
- func IsOrderByParameterInvalidError(err error) bool
- func IsOrgQuotaTotalReservedRoutePortsExceededError(err error) bool
- func IsOrgQuotaTotalRoutesExceededError(err error) bool
- func IsOrganizationAlreadySetError(err error) bool
- func IsOrganizationDeleteTimeoutError(err error) bool
- func IsOrganizationDeletionFailedError(err error) bool
- func IsOrganizationInvalidError(err error) bool
- func IsOrganizationNameTakenError(err error) bool
- func IsOrganizationNotFoundError(err error) bool
- func IsOrganizationRolesDeletionFailedError(err error) bool
- func IsOutOfRouterGroupPortsError(err error) bool
- func IsPackageBitsAlreadyUploadedError(err error) bool
- func IsPathInvalidError(err error) bool
- func IsPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError(err error) bool
- func IsProcessInvalidError(err error) bool
- func IsProcessNotFoundError(err error) bool
- func IsQuotaDefinitionInvalidError(err error) bool
- func IsQuotaDefinitionMemoryLimitNegativeError(err error) bool
- func IsQuotaDefinitionNameTakenError(err error) bool
- func IsQuotaDefinitionNotFoundError(err error) bool
- func IsQuotaInstanceLimitExceededError(err error) bool
- func IsQuotaInstanceMemoryLimitExceededError(err error) bool
- func IsRateLimitExceededError(err error) bool
- func IsResourceNotFoundError(err error) bool
- func IsRouteAlreadyBoundToServiceInstanceError(err error) bool
- func IsRouteHostTakenError(err error) bool
- func IsRouteInvalidError(err error) bool
- func IsRouteMappingNotFoundError(err error) bool
- func IsRouteMappingTakenError(err error) bool
- func IsRouteNotFoundError(err error) bool
- func IsRoutePathTakenError(err error) bool
- func IsRoutePortNotEnabledOnAppError(err error) bool
- func IsRoutePortTakenError(err error) bool
- func IsRouteServiceInstanceSharingNotSupportedError(err error) bool
- func IsRouterGroupNotFoundError(err error) bool
- func IsRoutingApiDisabledError(err error) bool
- func IsRoutingApiUnavailableError(err error) bool
- func IsRunnerError(err error) bool
- func IsRunnerInvalidRequestError(err error) bool
- func IsRunnerUnavailableError(err error) bool
- func IsRuntimeInvalidError(err error) bool
- func IsRuntimeNameTakenError(err error) bool
- func IsRuntimeNotFoundError(err error) bool
- func IsSDSNotAvailableError(err error) bool
- func IsSecurityGroupInvalidError(err error) bool
- func IsSecurityGroupNameTakenError(err error) bool
- func IsSecurityGroupNotFoundError(err error) bool
- func IsSecurityGroupRunningDefaultInvalidError(err error) bool
- func IsSecurityGroupStagingDefaultInvalidError(err error) bool
- func IsServerError(err error) bool
- func IsServiceBindingAppServiceTakenError(err error) bool
- func IsServiceBindingDifferentSpacesError(err error) bool
- func IsServiceBindingInvalidError(err error) bool
- func IsServiceBindingNotFoundError(err error) bool
- func IsServiceBrokerAsyncRequiredError(err error) bool
- func IsServiceBrokerCatalogInvalidError(err error) bool
- func IsServiceBrokerDashboardClientFailureError(err error) bool
- func IsServiceBrokerInvalidError(err error) bool
- func IsServiceBrokerNameTakenError(err error) bool
- func IsServiceBrokerNotFoundError(err error) bool
- func IsServiceBrokerNotRemovableError(err error) bool
- func IsServiceBrokerUrlInvalidError(err error) bool
- func IsServiceBrokerUrlTakenError(err error) bool
- func IsServiceDashboardClientMissingUrlError(err error) bool
- func IsServiceDoesNotSupportRoutesError(err error) bool
- func IsServiceGatewayError(err error) bool
- func IsServiceInstanceAlreadyBoundToSameRouteError(err error) bool
- func IsServiceInstanceDeletionSharesExistsError(err error) bool
- func IsServiceInstanceDeprovisionFailedError(err error) bool
- func IsServiceInstanceDuplicateNotAllowedError(err error) bool
- func IsServiceInstanceInvalidError(err error) bool
- func IsServiceInstanceNameEmptyError(err error) bool
- func IsServiceInstanceNameTakenError(err error) bool
- func IsServiceInstanceNameTooLongError(err error) bool
- func IsServiceInstanceNotFoundError(err error) bool
- func IsServiceInstanceOrganizationNotAuthorizedError(err error) bool
- func IsServiceInstanceQuotaExceededError(err error) bool
- func IsServiceInstanceRouteBindingSpaceMismatchError(err error) bool
- func IsServiceInstanceRouteServiceDisabledError(err error) bool
- func IsServiceInstanceRouteServiceRequiresDiegoError(err error) bool
- func IsServiceInstanceRouteServiceURLInvalidError(err error) bool
- func IsServiceInstanceServicePlanNotAllowedBySpaceQuotaError(err error) bool
- func IsServiceInstanceServicePlanNotAllowedError(err error) bool
- func IsServiceInstanceSpaceChangeNotAllowedError(err error) bool
- func IsServiceInstanceSpaceNotAuthorizedError(err error) bool
- func IsServiceInstanceSpaceQuotaExceededError(err error) bool
- func IsServiceInstanceTagsTooLongError(err error) bool
- func IsServiceInstanceUnshareFailedError(err error) bool
- func IsServiceInvalidError(err error) bool
- func IsServiceKeyCredentialStoreUnavailableError(err error) bool
- func IsServiceKeyInvalidError(err error) bool
- func IsServiceKeyNameTakenError(err error) bool
- func IsServiceKeyNotFoundError(err error) bool
- func IsServiceKeyNotSupportedError(err error) bool
- func IsServiceLabelTakenError(err error) bool
- func IsServiceNotFoundError(err error) bool
- func IsServiceNotImplementedError(err error) bool
- func IsServicePlanInvalidError(err error) bool
- func IsServicePlanNameTakenError(err error) bool
- func IsServicePlanNotFoundError(err error) bool
- func IsServicePlanNotUpdateableError(err error) bool
- func IsServicePlanVisibilityAlreadyExistsError(err error) bool
- func IsServicePlanVisibilityInvalidError(err error) bool
- func IsServicePlanVisibilityNotFoundError(err error) bool
- func IsServiceShareIsDisabledError(err error) bool
- func IsSharedServiceInstanceNameTakenError(err error) bool
- func IsSpaceDeleteTimeoutError(err error) bool
- func IsSpaceDeletionFailedError(err error) bool
- func IsSpaceInvalidError(err error) bool
- func IsSpaceNameTakenError(err error) bool
- func IsSpaceNotFoundError(err error) bool
- func IsSpaceQuotaDefinitionInvalidError(err error) bool
- func IsSpaceQuotaDefinitionNameTakenError(err error) bool
- func IsSpaceQuotaDefinitionNotFoundError(err error) bool
- func IsSpaceQuotaInstanceLimitExceededError(err error) bool
- func IsSpaceQuotaInstanceMemoryLimitExceededError(err error) bool
- func IsSpaceQuotaMemoryLimitExceededError(err error) bool
- func IsSpaceQuotaTotalReservedRoutePortsExceededError(err error) bool
- func IsSpaceQuotaTotalRoutesExceededError(err error) bool
- func IsSpaceRolesDeletionFailedError(err error) bool
- func IsSpaceRolesDeletionTimeoutError(err error) bool
- func IsSpaceUserNotInOrgError(err error) bool
- func IsStackInvalidError(err error) bool
- func IsStackNameTakenError(err error) bool
- func IsStackNotFoundError(err error) bool
- func IsStagerError(err error) bool
- func IsStagerUnavailableError(err error) bool
- func IsStagingBackendInvalidError(err error) bool
- func IsStagingError(err error) bool
- func IsStagingInProgressError(err error) bool
- func IsStagingTimeExpiredError(err error) bool
- func IsStatsError(err error) bool
- func IsStatsUnavailableError(err error) bool
- func IsTaskError(err error) bool
- func IsTaskWorkersUnavailableError(err error) bool
- func IsTotalPrivateDomainsExceededError(err error) bool
- func IsUaaEndpointDisabledError(err error) bool
- func IsUaaIdTakenError(err error) bool
- func IsUaaUnavailableError(err error) bool
- func IsUnableToDeleteError(err error) bool
- func IsUnableToPerformError(err error) bool
- func IsUnbindableServiceError(err error) bool
- func IsUnprocessableEntityError(err error) bool
- func IsUserInvalidError(err error) bool
- func IsUserIsInMultipleOriginsError(err error) bool
- func IsUserNotFoundError(err error) bool
- func IsUserProvidedServiceInstanceHandlerNeededError(err error) bool
- func IsUserProvidedServiceInstanceNotFoundError(err error) bool
- func IsUserProvidedServiceInstanceSharingNotSupportedError(err error) bool
- func IsUserWithOriginNotFoundError(err error) bool
- func IsVolumeMountServiceDisabledError(err error) bool
- type App
- type AppEnv
- type AppEventEntity
- type AppEventQuery
- type AppEventResource
- type AppEventResponse
- type AppInstance
- type AppResource
- type AppResponse
- type AppStats
- type AppSummary
- type BillingManagerResponse
- type Buildpack
- type BuildpackResource
- type BuildpackResponse
- type Client
- func (c *Client) AppByGuid(guid string) (App, error)
- func (c *Client) AppByName(appName, spaceGuid, orgGuid string) (app App, err error)
- func (c *Client) AssociateOrgAuditor(orgGUID, userGUID string) (Org, error)
- func (c *Client) AssociateOrgAuditorByUsername(orgGUID, name string) (Org, error)
- func (c *Client) AssociateOrgManager(orgGUID, userGUID string) (Org, error)
- func (c *Client) AssociateOrgManagerByUsername(orgGUID, name string) (Org, error)
- func (c *Client) AssociateOrgUser(orgGUID, userGUID string) (Org, error)
- func (c *Client) AssociateOrgUserByUsername(orgGUID, name string) (Org, error)
- func (c *Client) AssociateSpaceAuditorByUsername(spaceGUID, name string) (Space, error)
- func (c *Client) AssociateSpaceDeveloperByUsername(spaceGUID, name string) (Space, error)
- func (c *Client) BindRunningSecGroup(secGUID string) error
- func (c *Client) BindSecGroup(secGUID, spaceGUID string) error
- func (c *Client) BindStagingSecGroup(secGUID string) error
- func (c *Client) CreateDomain(name, orgGuid string) (*Domain, error)
- func (c *Client) CreateIsolationSegment(name string) (*IsolationSegment, error)
- func (c *Client) CreateOrg(req OrgRequest) (Org, error)
- func (c *Client) CreateSecGroup(name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)
- func (c *Client) CreateServiceBroker(csb CreateServiceBrokerRequest) (ServiceBroker, error)
- func (c *Client) CreateServiceInstance(req ServiceInstanceRequest) (ServiceInstance, error)
- func (c *Client) CreateServiceKey(csr CreateServiceKeyRequest) (ServiceKey, error)
- func (c *Client) CreateServicePlanVisibility(servicePlanGuid string, organizationGuid string) (ServicePlanVisibility, error)
- func (c *Client) CreateServicePlanVisibilityByUniqueId(uniqueId string, organizationGuid string) (ServicePlanVisibility, error)
- func (c *Client) CreateSpace(req SpaceRequest) (Space, error)
- func (c *Client) CreateTask(tr TaskRequest) (task Task, err error)
- func (c *Client) CreateTcpRoute(routeRequest RouteRequest) (Route, error)
- func (c *Client) CreateUser(req UserRequest) (User, error)
- func (c *Client) DeleteApp(guid string) error
- func (c *Client) DeleteDomain(guid string) error
- func (c *Client) DeleteIsolationSegmentByGUID(guid string) error
- func (c *Client) DeleteOrg(guid string, recursive, async bool) error
- func (c *Client) DeleteRoute(guid string) error
- func (c *Client) DeleteSecGroup(guid string) error
- func (c *Client) DeleteServiceBroker(guid string) error
- func (c *Client) DeleteServicePlanVisibility(guid string, async bool) error
- func (c *Client) DeleteServicePlanVisibilityByPlanAndOrg(servicePlanGuid string, organizationGuid string, async bool) error
- func (c *Client) DeleteSpace(guid string, recursive, async bool) error
- func (c *Client) DeleteUser(userGuid string) error
- func (c *Client) DoRequest(r *request) (*http.Response, error)
- func (c *Client) GetAppByGuid(guid string) (App, error)
- func (c *Client) GetAppByGuidNoInlineCall(guid string) (App, error)
- func (c *Client) GetAppEnv(guid string) (AppEnv, error)
- func (c *Client) GetAppInstances(guid string) (map[string]AppInstance, error)
- func (c *Client) GetAppRoutes(guid string) ([]Route, error)
- func (c *Client) GetAppStats(guid string) (map[string]AppStats, error)
- func (c *Client) GetBuildpackByGuid(buidpackGUID string) (Buildpack, error)
- func (c *Client) GetDomainByName(name string) (Domain, error)
- func (c *Client) GetIsolationSegmentByGUID(guid string) (*IsolationSegment, error)
- func (c *Client) GetOrgByGuid(guid string) (Org, error)
- func (c *Client) GetOrgByName(name string) (Org, error)
- func (c *Client) GetOrgQuotaByName(name string) (OrgQuota, error)
- func (c *Client) GetSecGroup(guid string) (*SecGroup, error)
- func (c *Client) GetSecGroupByName(name string) (secGroup SecGroup, err error)
- func (c *Client) GetServiceBindingByGuid(guid string) (ServiceBinding, error)
- func (c *Client) GetServiceBrokerByGuid(guid string) (ServiceBroker, error)
- func (c *Client) GetServiceBrokerByName(name string) (ServiceBroker, error)
- func (c *Client) GetServiceByGuid(guid string) (Service, error)
- func (c *Client) GetServiceInstanceByGuid(guid string) (ServiceInstance, error)
- func (c *Client) GetServiceKeyByInstanceGuid(guid string) (ServiceKey, error)
- func (c *Client) GetServiceKeyByName(name string) (ServiceKey, error)
- func (c *Client) GetServiceKeysByInstanceGuid(guid string) ([]ServiceKey, error)
- func (c *Client) GetServicePlanVisibilityByGuid(guid string) (ServicePlanVisibility, error)
- func (c *Client) GetSharedDomainByName(name string) (SharedDomain, error)
- func (c *Client) GetSpaceByGuid(spaceGUID string) (Space, error)
- func (c *Client) GetSpaceByName(spaceName string, orgGuid string) (space Space, err error)
- func (c *Client) GetSpaceQuotaByName(name string) (SpaceQuota, error)
- func (c *Client) GetTaskByGuid(guid string) (task Task, err error)
- func (c *Client) GetToken() (string, error)
- func (c *Client) GetUserByGUID(guid string) (User, error)
- func (c *Client) GetUserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)
- func (c *Client) KillAppInstance(guid string, index string) error
- func (c *Client) ListAppEvents(eventType string) ([]AppEventEntity, error)
- func (c *Client) ListAppEventsByQuery(eventType string, queries []AppEventQuery) ([]AppEventEntity, error)
- func (c *Client) ListApps() ([]App, error)
- func (c *Client) ListAppsByQuery(query url.Values) ([]App, error)
- func (c *Client) ListAppsByQueryWithLimits(query url.Values, totalPages int) ([]App, error)
- func (c *Client) ListAppsByRoute(routeGuid string) ([]App, error)
- func (c *Client) ListBillingManagers(orgGUID string) ([]User, error)
- func (c *Client) ListBillingManagersByQuery(orgGUID string, query url.Values) ([]User, error)
- func (c *Client) ListBuildpacks() ([]Buildpack, error)
- func (c *Client) ListDomains() ([]Domain, error)
- func (c *Client) ListDomainsByQuery(query url.Values) ([]Domain, error)
- func (c *Client) ListEvents() ([]Event, error)
- func (c *Client) ListEventsByQuery(query url.Values) ([]Event, error)
- func (c *Client) ListIsolationSegments() ([]IsolationSegment, error)
- func (c *Client) ListOrgAuditors(orgGUID string) ([]User, error)
- func (c *Client) ListOrgAuditorsByQuery(orgGUID string, query url.Values) ([]User, error)
- func (c *Client) ListOrgManagers(orgGUID string) ([]User, error)
- func (c *Client) ListOrgManagersByQuery(orgGUID string, query url.Values) ([]User, error)
- func (c *Client) ListOrgQuotas() ([]OrgQuota, error)
- func (c *Client) ListOrgQuotasByQuery(query url.Values) ([]OrgQuota, error)
- func (c *Client) ListOrgUsers(orgGUID string) ([]User, error)
- func (c *Client) ListOrgUsersByQuery(orgGUID string, query url.Values) ([]User, error)
- func (c *Client) ListOrgs() ([]Org, error)
- func (c *Client) ListOrgsByQuery(query url.Values) ([]Org, error)
- func (c *Client) ListRoutes() ([]Route, error)
- func (c *Client) ListRoutesByQuery(query url.Values) ([]Route, error)
- func (c *Client) ListSecGroups() (secGroups []SecGroup, err error)
- func (c *Client) ListServiceBindings() ([]ServiceBinding, error)
- func (c *Client) ListServiceBindingsByQuery(query url.Values) ([]ServiceBinding, error)
- func (c *Client) ListServiceBrokers() ([]ServiceBroker, error)
- func (c *Client) ListServiceBrokersByQuery(query url.Values) ([]ServiceBroker, error)
- func (c *Client) ListServiceInstances() ([]ServiceInstance, error)
- func (c *Client) ListServiceInstancesByQuery(query url.Values) ([]ServiceInstance, error)
- func (c *Client) ListServiceKeys() ([]ServiceKey, error)
- func (c *Client) ListServiceKeysByQuery(query url.Values) ([]ServiceKey, error)
- func (c *Client) ListServicePlanVisibilities() ([]ServicePlanVisibility, error)
- func (c *Client) ListServicePlanVisibilitiesByQuery(query url.Values) ([]ServicePlanVisibility, error)
- func (c *Client) ListServicePlans() ([]ServicePlan, error)
- func (c *Client) ListServicePlansByQuery(query url.Values) ([]ServicePlan, error)
- func (c *Client) ListServices() ([]Service, error)
- func (c *Client) ListServicesByQuery(query url.Values) ([]Service, error)
- func (c *Client) ListSharedDomains() ([]SharedDomain, error)
- func (c *Client) ListSharedDomainsByQuery(query url.Values) ([]SharedDomain, error)
- func (c *Client) ListSpaceAuditors(spaceGUID string) ([]User, error)
- func (c *Client) ListSpaceAuditorsByQuery(spaceGUID string, query url.Values) ([]User, error)
- func (c *Client) ListSpaceDevelopers(spaceGUID string) ([]User, error)
- func (c *Client) ListSpaceDevelopersByQuery(spaceGUID string, query url.Values) ([]User, error)
- func (c *Client) ListSpaceManagers(spaceGUID string) ([]User, error)
- func (c *Client) ListSpaceManagersByQuery(spaceGUID string, query url.Values) ([]User, error)
- func (c *Client) ListSpaceQuotas() ([]SpaceQuota, error)
- func (c *Client) ListSpaceQuotasByQuery(query url.Values) ([]SpaceQuota, error)
- func (c *Client) ListSpaces() ([]Space, error)
- func (c *Client) ListSpacesByQuery(query url.Values) ([]Space, error)
- func (c *Client) ListStacks() ([]Stack, error)
- func (c *Client) ListStacksByQuery(query url.Values) ([]Stack, error)
- func (c *Client) ListTasks() ([]Task, error)
- func (c *Client) ListTasksByQuery(query url.Values) ([]Task, error)
- func (c *Client) ListUserAuditedOrgs(userGuid string) ([]Org, error)
- func (c *Client) ListUserAuditedSpaces(userGuid string) ([]Space, error)
- func (c *Client) ListUserBillingManagedOrgs(userGuid string) ([]Org, error)
- func (c *Client) ListUserManagedOrgs(userGuid string) ([]Org, error)
- func (c *Client) ListUserManagedSpaces(userGuid string) ([]Space, error)
- func (c *Client) ListUserOrgs(userGuid string) ([]Org, error)
- func (c *Client) ListUserProvidedServiceInstances() ([]UserProvidedServiceInstance, error)
- func (c *Client) ListUserProvidedServiceInstancesByQuery(query url.Values) ([]UserProvidedServiceInstance, error)
- func (c *Client) ListUserSpaces(userGuid string) ([]Space, error)
- func (c *Client) ListUsers() (Users, error)
- func (c *Client) ListUsersByQuery(query url.Values) (Users, error)
- func (c *Client) NewRequest(method, path string) *request
- func (c *Client) NewRequestWithBody(method, path string, body io.Reader) *request
- func (c *Client) OrgSpaces(guid string) ([]Space, error)
- func (c *Client) RemoveOrgAuditor(orgGUID, userGUID string) error
- func (c *Client) RemoveOrgAuditorByUsername(orgGUID, name string) error
- func (c *Client) RemoveOrgManager(orgGUID, userGUID string) error
- func (c *Client) RemoveOrgManagerByUsername(orgGUID, name string) error
- func (c *Client) RemoveOrgUser(orgGUID, userGUID string) error
- func (c *Client) RemoveOrgUserByUsername(orgGUID, name string) error
- func (c *Client) RemoveSpaceAuditorByUsername(spaceGUID, name string) error
- func (c *Client) RemoveSpaceDeveloperByUsername(spaceGUID, name string) error
- func (c *Client) ServiceBindingByGuid(guid string) (ServiceBinding, error)
- func (c *Client) ServiceInstanceByGuid(guid string) (ServiceInstance, error)
- func (c *Client) TaskByGuid(guid string) (task Task, err error)
- func (c *Client) TasksByApp(guid string) ([]Task, error)
- func (c *Client) TasksByAppByQuery(guid string, query url.Values) ([]Task, error)
- func (c *Client) TerminateTask(guid string) error
- func (c *Client) TotalEvents() (int, error)
- func (c *Client) TotalEventsByQuery(query url.Values) (int, error)
- func (c *Client) UnbindSecGroup(secGUID, spaceGUID string) error
- func (c *Client) UpdateSecGroup(guid, name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)
- func (c *Client) UpdateServiceBroker(guid string, usb UpdateServiceBrokerRequest) (ServiceBroker, error)
- func (c *Client) UpdateServicePlanVisibility(guid string, servicePlanGuid string, organizationGuid string) (ServicePlanVisibility, error)
- func (c *Client) UserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)
- type CloudFoundryError
- type CloudFoundryErrors
- type Config
- type CreateServiceBrokerRequest
- type CreateServiceKeyRequest
- type Domain
- type DomainResource
- type DomainsResponse
- type Endpoint
- type Event
- type EventResource
- type EventsResponse
- type IsolationSegementResponse
- type IsolationSegment
- type LastOperation
- type ListIsolationSegmentsResponse
- type Meta
- type Org
- func (o *Org) AssociateAuditor(userGUID string) (Org, error)
- func (o *Org) AssociateAuditorByUsername(name string) (Org, error)
- func (o *Org) AssociateManager(userGUID string) (Org, error)
- func (o *Org) AssociateManagerByUsername(name string) (Org, error)
- func (o *Org) AssociateUser(userGUID string) (Org, error)
- func (o *Org) AssociateUserByUsername(name string) (Org, error)
- func (o *Org) Quota() (*OrgQuota, error)
- func (o *Org) RemoveAuditor(userGUID string) error
- func (o *Org) RemoveAuditorByUsername(name string) error
- func (o *Org) RemoveManager(userGUID string) error
- func (o *Org) RemoveManagerByUsername(name string) error
- func (o *Org) RemoveUser(userGUID string) error
- func (o *Org) RemoveUserByUsername(name string) error
- func (o *Org) Summary() (OrgSummary, error)
- type OrgAuditorResponse
- type OrgManagerResponse
- type OrgQuota
- type OrgQuotasResource
- type OrgQuotasResponse
- type OrgRequest
- type OrgResource
- type OrgResponse
- type OrgSummary
- type OrgSummarySpaces
- type Pagination
- type Route
- type RouteRequest
- type RoutesResource
- type RoutesResponse
- type SecGroup
- type SecGroupCreateResponse
- type SecGroupResource
- type SecGroupResponse
- type SecGroupRule
- type Service
- type ServiceBinding
- type ServiceBindingResource
- type ServiceBindingsResponse
- type ServiceBroker
- type ServiceBrokerResource
- type ServiceBrokerResponse
- type ServiceInstance
- type ServiceInstanceRequest
- type ServiceInstanceResource
- type ServiceInstancesResponse
- type ServiceKey
- type ServiceKeyResource
- type ServiceKeysResponse
- type ServiceOfferingEntity
- type ServiceOfferingExtra
- type ServiceOfferingResource
- type ServiceOfferingResponse
- type ServicePlan
- type ServicePlanEntity
- type ServicePlanResource
- type ServicePlanVisibilitiesResponse
- type ServicePlanVisibility
- type ServicePlanVisibilityResource
- type ServicePlansResponse
- type ServiceSummary
- type ServicesResource
- type ServicesResponse
- type SharedDomain
- type SharedDomainResource
- type SharedDomainsResponse
- type Space
- func (s *Space) AssociateAuditorByUsername(name string) (Space, error)
- func (s *Space) AssociateDeveloperByUsername(name string) (Space, error)
- func (s *Space) GetServiceOfferings() (ServiceOfferingResponse, error)
- func (s *Space) Org() (Org, error)
- func (s *Space) Quota() (*SpaceQuota, error)
- func (s *Space) RemoveAuditorByUsername(name string) error
- func (s *Space) RemoveDeveloperByUsername(name string) error
- func (s *Space) Roles() ([]SpaceRole, error)
- func (s *Space) Summary() (SpaceSummary, error)
- type SpaceAuditorResponse
- type SpaceDeveloperResponse
- type SpaceManagerResponse
- type SpaceQuota
- type SpaceQuotasResource
- type SpaceQuotasResponse
- type SpaceRequest
- type SpaceResource
- type SpaceResponse
- type SpaceRole
- type SpaceRoleResource
- type SpaceRoleResponse
- type SpaceSummary
- type Stack
- type StacksResource
- type StacksResponse
- type Task
- type TaskListResponse
- type TaskRequest
- type UpdateServiceBrokerRequest
- type User
- type UserProvidedServiceInstance
- type UserProvidedServiceInstanceResource
- type UserProvidedServiceInstancesResponse
- type UserRequest
- type UserResource
- type UserResponse
- type Users
Constants ¶
const ( //AppCrash app.crash event const AppCrash = "app.crash" //AppStart audit.app.start event const AppStart = "audit.app.start" //AppStop audit.app.stop event const AppStop = "audit.app.stop" //AppUpdate audit.app.update event const AppUpdate = "audit.app.update" //AppCreate audit.app.create event const AppCreate = "audit.app.create" //AppDelete audit.app.delete-request event const AppDelete = "audit.app.delete-request" //AppSSHAuth audit.app.ssh-authorized event const AppSSHAuth = "audit.app.ssh-authorized" //AppSSHUnauth audit.app.ssh-unauthorized event const AppSSHUnauth = "audit.app.ssh-unauthorized" //AppRestage audit.app.restage event const AppRestage = "audit.app.restage" //AppMapRoute audit.app.map-route event const AppMapRoute = "audit.app.map-route" //AppUnmapRoute audit.app.unmap-route event const AppUnmapRoute = "audit.app.unmap-route" //FilterTimestamp const for query filter timestamp FilterTimestamp = "timestamp" //FilterActee const for query filter actee FilterActee = "actee" )
Variables ¶
var ValidOperators = []string{":", ">=", "<=", "<", ">", "IN"}
ValidOperators const for all valid operators in a query
Functions ¶
func IsAppBitsCopyInvalidError ¶
IsAppBitsCopyInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 160002 - HTTP code: 400 - message: "The app copy is invalid: %s"
func IsAppBitsUploadInvalidError ¶
IsAppBitsUploadInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 160001 - HTTP code: 400 - message: "The app upload is invalid: %s"
func IsAppInvalidError ¶
IsAppInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100001 - HTTP code: 400 - message: "The app is invalid: %s"
func IsAppMemoryInvalidError ¶
IsAppMemoryInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100006 - HTTP code: 400 - message: "You have specified an invalid amount of memory for your application."
func IsAppMemoryQuotaExceededError ¶
IsAppMemoryQuotaExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100005 - HTTP code: 400 - message: "You have exceeded your organization's memory limit: %s"
func IsAppNameTakenError ¶
IsAppNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100002 - HTTP code: 400 - message: "The app name is taken: %s"
func IsAppNotFoundError ¶
IsAppNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100004 - HTTP code: 404 - message: "The app could not be found: %s"
func IsAppPackageInvalidError ¶
IsAppPackageInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150001 - HTTP code: 400 - message: "The app package is invalid: %s"
func IsAppPackageNotFoundError ¶
IsAppPackageNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150002 - HTTP code: 404 - message: "The app package could not be found: %s"
func IsAppPortMappingRequiresDiegoError ¶
IsAppPortMappingRequiresDiegoError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60022 - HTTP code: 400 - message: "App ports are supported for Diego apps only."
func IsAppResourcesFileModeInvalidError ¶
IsAppResourcesFileModeInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 160003 - HTTP code: 400 - message: "The resource file mode is invalid: %s"
func IsAppResourcesFilePathInvalidError ¶
IsAppResourcesFilePathInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 160004 - HTTP code: 400 - message: "The resource file path is invalid: %s"
func IsAppStoppedStatsError ¶
IsAppStoppedStatsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 200003 - HTTP code: 400 - message: "Could not fetch stats for stopped app: %s"
func IsAssociationNotEmptyError ¶
IsAssociationNotEmptyError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10006 - HTTP code: 400 - message: "Please delete the %s associations for your %s."
func IsAsyncServiceInstanceOperationInProgressError ¶
IsAsyncServiceInstanceOperationInProgressError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60016 - HTTP code: 409 - message: "An operation for service instance %s is in progress."
func IsBackendSelectionNotAuthorizedError ¶
IsBackendSelectionNotAuthorizedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320005 - HTTP code: 403 - message: "You cannot select the backend on which to run this application"
func IsBadQueryParameterError ¶
IsBadQueryParameterError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10005 - HTTP code: 400 - message: "The query parameter is invalid: %s"
func IsBitsServiceError ¶
IsBitsServiceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290012 - HTTP code: 500 - message: "The bits service returned an error: %s"
func IsBlobstoreError ¶
IsBlobstoreError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150007 - HTTP code: 500 - message: "Failed to perform blobstore operation after three retries."
func IsBlobstoreNotLocalError ¶
IsBlobstoreNotLocalError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150005 - HTTP code: 400 - message: "Downloading blobs can only be done directly to the blobstore."
func IsBlobstoreUnavailableError ¶
IsBlobstoreUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150006 - HTTP code: 502 - message: "Failed to perform operation due to blobstore unavailability."
func IsBuildpackBitsUploadInvalidError ¶
IsBuildpackBitsUploadInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290002 - HTTP code: 400 - message: "The buildpack upload is invalid: %s"
func IsBuildpackCompileFailedError ¶
IsBuildpackCompileFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170004 - HTTP code: 400 - message: "App staging failed in the buildpack compile phase"
func IsBuildpackInvalidError ¶
IsBuildpackInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290003 - HTTP code: 400 - message: "Buildpack is invalid: %s"
func IsBuildpackLockedError ¶
IsBuildpackLockedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290005 - HTTP code: 409 - message: "The buildpack is locked"
func IsBuildpackNameTakenError ¶
IsBuildpackNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290001 - HTTP code: 400 - message: "The buildpack name is already in use: %s"
func IsBuildpackReleaseFailedError ¶
IsBuildpackReleaseFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170005 - HTTP code: 400 - message: "App staging failed in the buildpack release phase"
func IsCustomBuildpacksDisabledError ¶
IsCustomBuildpacksDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290004 - HTTP code: 400 - message: "Custom buildpacks are disabled"
func IsDatabaseError ¶
IsDatabaseError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10011 - HTTP code: 500 - message: "Database error"
func IsDiegoDisabledError ¶
IsDiegoDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320001 - HTTP code: 400 - message: "Diego has not been enabled."
func IsDiegoDockerBuildpackConflictError ¶
IsDiegoDockerBuildpackConflictError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320002 - HTTP code: 400 - message: "You cannot specify a custom buildpack and a docker image at the same time."
func IsDockerAppToDeaError ¶
IsDockerAppToDeaError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60026 - HTTP code: 400 - message: "Docker apps cannot run on DEAs"
func IsDockerDisabledError ¶
IsDockerDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320003 - HTTP code: 400 - message: "Docker support has not been enabled."
func IsDockerImageMissingError ¶
IsDockerImageMissingError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150008 - HTTP code: 400 - message: "Docker credentials can only be supplied for apps with a 'docker_image'"
func IsDomainInvalidError ¶
IsDomainInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130001 - HTTP code: 400 - message: "The domain is invalid: %s"
func IsDomainNameTakenError ¶
IsDomainNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130003 - HTTP code: 400 - message: "The domain name is taken: %s"
func IsDomainNotFoundError ¶
IsDomainNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130002 - HTTP code: 404 - message: "The domain could not be found: %s"
func IsDropletUploadInvalidError ¶
IsDropletUploadInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 380002 - HTTP code: 400 - message: "The droplet upload is invalid: %s"
func IsEnvironmentVariableGroupInvalidError ¶
IsEnvironmentVariableGroupInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 380001 - HTTP code: 400 - message: "The Environment Variable Group is invalid: %s"
func IsEventNotFoundError ¶
IsEventNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 230002 - HTTP code: 404 - message: "Event could not be found: %s"
func IsFeatureDisabledError ¶
IsFeatureDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 330002 - HTTP code: 403 - message: "Feature Disabled: %s"
func IsFeatureFlagInvalidError ¶
IsFeatureFlagInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 330001 - HTTP code: 400 - message: "The feature flag is invalid: %s"
func IsFeatureFlagNotFoundError ¶
IsFeatureFlagNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 330000 - HTTP code: 404 - message: "The feature flag could not be found: %s"
func IsFileError ¶
IsFileError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 190001 - HTTP code: 400 - message: "File error: %s"
func IsFrameworkInvalidError ¶
IsFrameworkInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 80001 - HTTP code: 400 - message: "The framework is invalid: %s"
func IsFrameworkNameTakenError ¶
IsFrameworkNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 80002 - HTTP code: 400 - message: "The framework name is taken: %s"
func IsFrameworkNotFoundError ¶
IsFrameworkNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 80003 - HTTP code: 404 - message: "The framework could not be found: %s"
func IsInstancesError ¶
IsInstancesError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 220001 - HTTP code: 400 - message: "Instances error: %s"
func IsInstancesUnavailableError ¶
IsInstancesUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 220002 - HTTP code: 503 - message: "Instances information unavailable: %s"
func IsInsufficientResourcesError ¶
IsInsufficientResourcesError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170008 - HTTP code: 400 - message: "Insufficient resources"
func IsInsufficientRunningResourcesAvailableError ¶
IsInsufficientRunningResourcesAvailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150003 - HTTP code: 503 - message: "One or more instances could not be started because of insufficient running resources."
func IsInsufficientScopeError ¶
IsInsufficientScopeError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10007 - HTTP code: 403 - message: "Your token lacks the necessary scopes to access this resource."
func IsInvalidAuthTokenError ¶
IsInvalidAuthTokenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 1000 - HTTP code: 401 - message: "Invalid Auth Token"
func IsInvalidContentTypeError ¶
IsInvalidContentTypeError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 1003 - HTTP code: 400 - message: "Invalid content type, expected: %s"
func IsInvalidLoggingServiceBindingError ¶
IsInvalidLoggingServiceBindingError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90006 - HTTP code: 502 - message: "The service is attempting to stream logs from your application, but is not registered as a logging service. Please contact the service provider."
func IsInvalidRelationError ¶
IsInvalidRelationError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 1002 - HTTP code: 400 - message: "%s"
func IsInvalidRequestError ¶
IsInvalidRequestError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10004 - HTTP code: 400 - message: "The request is invalid"
func IsInvalidServiceInstanceSharingTargetSpaceError ¶
IsInvalidServiceInstanceSharingTargetSpaceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390007 - HTTP code: 422 - message: "Service instances cannot be shared into the space where they were created"
func IsInvalidTaskAddressError ¶
IsInvalidTaskAddressError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170018 - HTTP code: 500 - message: "Invalid config: %s"
func IsInvalidTaskRequestError ¶
IsInvalidTaskRequestError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170021 - HTTP code: 422 - message: "The task request is invalid: %s"
func IsJobTimeoutError ¶
IsJobTimeoutError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290006 - HTTP code: 524 - message: "The job execution has timed out."
func IsLastBillingManagerInOrgError ¶
IsLastBillingManagerInOrgError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30005 - HTTP code: 403 - message: "Cannot remove last Billing Manager in org"
func IsLastManagerInOrgError ¶
IsLastManagerInOrgError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30004 - HTTP code: 403 - message: "Cannot remove last Org Manager in org"
func IsLastUserInOrgError ¶
IsLastUserInOrgError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30006 - HTTP code: 403 - message: "Cannot remove last User in org"
func IsLegacyApiWithoutDefaultSpaceError ¶
IsLegacyApiWithoutDefaultSpaceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 140001 - HTTP code: 400 - message: "A legacy api call requiring a default app space was called, but no default app space is set for the user."
func IsMessageParseError ¶
IsMessageParseError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 1001 - HTTP code: 400 - message: "Request invalid due to parse error: %s"
func IsMultipleAppPortsMappedDiegoToDeaError ¶
IsMultipleAppPortsMappedDiegoToDeaError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60024 - HTTP code: 400 - message: "The app has routes mapped to multiple ports. Multiple ports are supported for Diego only. Please unmap routes from all but one app port. Multiple routes can be mapped to the same port if desired."
func IsNoAppDetectedError ¶
IsNoAppDetectedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170003 - HTTP code: 400 - message: "An app was not successfully detected by any available buildpack"
func IsNoBuildpacksFoundError ¶
IsNoBuildpacksFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170006 - HTTP code: 400 - message: "There are no buildpacks available"
func IsNoCompatibleCellError ¶
IsNoCompatibleCellError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170009 - HTTP code: 400 - message: "Found no compatible cell"
func IsNonrecursiveSpaceDeletionFailedError ¶
IsNonrecursiveSpaceDeletionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290011 - HTTP code: 400 - message: "Resource inside space %s must first be deleted, or specify recursive delete."
func IsNotAuthenticatedError ¶
IsNotAuthenticatedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10002 - HTTP code: 401 - message: "Authentication error"
func IsNotAuthorizedError ¶
IsNotAuthorizedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10003 - HTTP code: 403 - message: "You are not authorized to perform the requested action"
func IsNotFoundError ¶
IsNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10000 - HTTP code: 404 - message: "Unknown request"
func IsNotStagedError ¶
IsNotStagedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170002 - HTTP code: 400 - message: "App has not finished staging"
func IsOrderByParameterInvalidError ¶
IsOrderByParameterInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10012 - HTTP code: 500 - message: "Cannot order by: %s"
func IsOrgQuotaTotalReservedRoutePortsExceededError ¶
IsOrgQuotaTotalReservedRoutePortsExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310009 - HTTP code: 400 - message: "You have exceeded the total reserved route ports for your organization's quota."
func IsOrgQuotaTotalRoutesExceededError ¶
IsOrgQuotaTotalRoutesExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310006 - HTTP code: 400 - message: "You have exceeded the total routes for your organization's quota."
func IsOrganizationAlreadySetError ¶
IsOrganizationAlreadySetError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30007 - HTTP code: 400 - message: "Cannot change organization"
func IsOrganizationDeleteTimeoutError ¶
IsOrganizationDeleteTimeoutError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290009 - HTTP code: 524 - message: "Delete of organization %s timed out before all resources within could be deleted"
func IsOrganizationDeletionFailedError ¶
IsOrganizationDeletionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290010 - HTTP code: 502 - message: "Deletion of organization %s failed because one or more resources within could not be deleted.\n\n%s"
func IsOrganizationInvalidError ¶
IsOrganizationInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30001 - HTTP code: 400 - message: "The organization info is invalid: %s"
func IsOrganizationNameTakenError ¶
IsOrganizationNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30002 - HTTP code: 400 - message: "The organization name is taken: %s"
func IsOrganizationNotFoundError ¶
IsOrganizationNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 30003 - HTTP code: 404 - message: "The organization could not be found: %s"
func IsOrganizationRolesDeletionFailedError ¶
IsOrganizationRolesDeletionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290014 - HTTP code: 502 - message: "Failed to delete one or more roles for organization %s"
func IsOutOfRouterGroupPortsError ¶
IsOutOfRouterGroupPortsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 21008 - HTTP code: 403 - message: "There are no more ports available for router group: %s. Please contact your administrator for more information."
func IsPackageBitsAlreadyUploadedError ¶
IsPackageBitsAlreadyUploadedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150004 - HTTP code: 400 - message: "Bits may be uploaded only once. Create a new package to upload different bits."
func IsPathInvalidError ¶
IsPathInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130004 - HTTP code: 400 - message: "The path is invalid: %s"
func IsPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError ¶
IsPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60006 - HTTP code: 400 - message: "You have exceeded your organization's services limit."
func IsProcessInvalidError ¶
IsProcessInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 350001 - HTTP code: 400 - message: "The process is invalid: %s"
func IsProcessNotFoundError ¶
IsProcessNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 350003 - HTTP code: 404 - message: "The process could not be found: %s"
func IsQuotaDefinitionInvalidError ¶
IsQuotaDefinitionInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 240003 - HTTP code: 400 - message: "Quota Definition is invalid: %s"
func IsQuotaDefinitionMemoryLimitNegativeError ¶
IsQuotaDefinitionMemoryLimitNegativeError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 240004 - HTTP code: 400 - message: "Quota Definition memory limit cannot be negative"
func IsQuotaDefinitionNameTakenError ¶
IsQuotaDefinitionNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 240002 - HTTP code: 400 - message: "Quota Definition is taken: %s"
func IsQuotaDefinitionNotFoundError ¶
IsQuotaDefinitionNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 240001 - HTTP code: 404 - message: "Quota Definition could not be found: %s"
func IsQuotaInstanceLimitExceededError ¶
IsQuotaInstanceLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100008 - HTTP code: 400 - message: "You have exceeded the instance limit for your organization's quota."
func IsQuotaInstanceMemoryLimitExceededError ¶
IsQuotaInstanceMemoryLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100007 - HTTP code: 400 - message: "You have exceeded the instance memory limit for your organization's quota."
func IsRateLimitExceededError ¶
IsRateLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10013 - HTTP code: 429 - message: "Rate Limit Exceeded"
func IsResourceNotFoundError ¶
IsResourceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10010 - HTTP code: 404 - message: "%s"
func IsRouteAlreadyBoundToServiceInstanceError ¶
IsRouteAlreadyBoundToServiceInstanceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130007 - HTTP code: 400 - message: "A route may only be bound to a single service instance"
func IsRouteHostTakenError ¶
IsRouteHostTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210003 - HTTP code: 400 - message: "The host is taken: %s"
func IsRouteInvalidError ¶
IsRouteInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210001 - HTTP code: 400 - message: "The route is invalid: %s"
func IsRouteMappingNotFoundError ¶
IsRouteMappingNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210007 - HTTP code: 404 - message: "The route mapping could not be found: %s"
func IsRouteMappingTakenError ¶
IsRouteMappingTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210006 - HTTP code: 400 - message: "The route mapping is taken: %s"
func IsRouteNotFoundError ¶
IsRouteNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210002 - HTTP code: 404 - message: "The route could not be found: %s"
func IsRoutePathTakenError ¶
IsRoutePathTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210004 - HTTP code: 400 - message: "The path is taken: %s"
func IsRoutePortNotEnabledOnAppError ¶
IsRoutePortNotEnabledOnAppError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60023 - HTTP code: 400 - message: "Routes can only be mapped to ports already enabled for the application."
func IsRoutePortTakenError ¶
IsRoutePortTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210005 - HTTP code: 400 - message: "The port is taken: %s"
func IsRouteServiceInstanceSharingNotSupportedError ¶
IsRouteServiceInstanceSharingNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390005 - HTTP code: 400 - message: "Route services cannot be shared"
func IsRouterGroupNotFoundError ¶
IsRouterGroupNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 210009 - HTTP code: 404 - message: "The router group could not be found: %s"
func IsRoutingApiDisabledError ¶
IsRoutingApiDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 370003 - HTTP code: 403 - message: "Routing API is disabled"
func IsRoutingApiUnavailableError ¶
IsRoutingApiUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 370001 - HTTP code: 503 - message: "The Routing API is currently unavailable"
func IsRunnerError ¶
IsRunnerError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170016 - HTTP code: 500 - message: "Runner error: %s"
func IsRunnerInvalidRequestError ¶
IsRunnerInvalidRequestError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170014 - HTTP code: 500 - message: "Runner invalid request: %s"
func IsRunnerUnavailableError ¶
IsRunnerUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170015 - HTTP code: 503 - message: "Runner is unavailable: %s"
func IsRuntimeInvalidError ¶
IsRuntimeInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 70001 - HTTP code: 400 - message: "The runtime is invalid: %s"
func IsRuntimeNameTakenError ¶
IsRuntimeNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 70002 - HTTP code: 400 - message: "The runtime name is taken: %s"
func IsRuntimeNotFoundError ¶
IsRuntimeNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 70003 - HTTP code: 404 - message: "The runtime could not be found: %s"
func IsSDSNotAvailableError ¶
IsSDSNotAvailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 180004 - HTTP code: 501 - message: "No serialization service backends available"
func IsSecurityGroupInvalidError ¶
IsSecurityGroupInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 300001 - HTTP code: 400 - message: "The security group is invalid: %s"
func IsSecurityGroupNameTakenError ¶
IsSecurityGroupNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 300005 - HTTP code: 400 - message: "The security group name is taken: %s"
func IsSecurityGroupNotFoundError ¶
IsSecurityGroupNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 300002 - HTTP code: 404 - message: "The security group could not be found: %s"
func IsSecurityGroupRunningDefaultInvalidError ¶
IsSecurityGroupRunningDefaultInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 300004 - HTTP code: 400 - message: "The security group could not be found: %s"
func IsSecurityGroupStagingDefaultInvalidError ¶
IsSecurityGroupStagingDefaultInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 300003 - HTTP code: 400 - message: "The security group could not be found: %s"
func IsServerError ¶
IsServerError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10001 - HTTP code: 500 - message: "Server error"
func IsServiceBindingAppServiceTakenError ¶
IsServiceBindingAppServiceTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90003 - HTTP code: 400 - message: "%s"
func IsServiceBindingDifferentSpacesError ¶
IsServiceBindingDifferentSpacesError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90002 - HTTP code: 400 - message: "The app and the service are not in the same app space: %s"
func IsServiceBindingInvalidError ¶
IsServiceBindingInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90001 - HTTP code: 400 - message: "The service binding is invalid: %s"
func IsServiceBindingNotFoundError ¶
IsServiceBindingNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90004 - HTTP code: 404 - message: "The service binding could not be found: %s"
func IsServiceBrokerAsyncRequiredError ¶
IsServiceBrokerAsyncRequiredError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270014 - HTTP code: 400 - message: "This service plan requires client support for asynchronous service operations."
func IsServiceBrokerCatalogInvalidError ¶
IsServiceBrokerCatalogInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270012 - HTTP code: 502 - message: "Service broker catalog is invalid: %s"
func IsServiceBrokerDashboardClientFailureError ¶
IsServiceBrokerDashboardClientFailureError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270013 - HTTP code: 502 - message: "Service broker dashboard clients could not be modified: %s"
func IsServiceBrokerInvalidError ¶
IsServiceBrokerInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270001 - HTTP code: 400 - message: "Service broker is invalid: %s"
func IsServiceBrokerNameTakenError ¶
IsServiceBrokerNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270002 - HTTP code: 400 - message: "The service broker name is taken"
func IsServiceBrokerNotFoundError ¶
IsServiceBrokerNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270004 - HTTP code: 404 - message: "The service broker was not found: %s"
func IsServiceBrokerNotRemovableError ¶
IsServiceBrokerNotRemovableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270010 - HTTP code: 400 - message: "Can not remove brokers that have associated service instances: %s"
func IsServiceBrokerUrlInvalidError ¶
IsServiceBrokerUrlInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270011 - HTTP code: 400 - message: "%s is not a valid URL"
func IsServiceBrokerUrlTakenError ¶
IsServiceBrokerUrlTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270003 - HTTP code: 400 - message: "The service broker url is taken: %s"
func IsServiceDashboardClientMissingUrlError ¶
IsServiceDashboardClientMissingUrlError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270015 - HTTP code: 502 - message: "Service broker returned dashboard client configuration without a dashboard URL"
func IsServiceDoesNotSupportRoutesError ¶
IsServiceDoesNotSupportRoutesError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130006 - HTTP code: 400 - message: "This service does not support route binding."
func IsServiceGatewayError ¶
IsServiceGatewayError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 180002 - HTTP code: 503 - message: "Service gateway internal error: %s"
func IsServiceInstanceAlreadyBoundToSameRouteError ¶
IsServiceInstanceAlreadyBoundToSameRouteError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130008 - HTTP code: 400 - message: "The route and service instance are already bound."
func IsServiceInstanceDeletionSharesExistsError ¶
IsServiceInstanceDeletionSharesExistsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390002 - HTTP code: 400 - message: "Service instances must be unshared before they can be deleted. Unsharing %s will automatically delete any bindings that have been made to applications in other spaces."
func IsServiceInstanceDeprovisionFailedError ¶
IsServiceInstanceDeprovisionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60011 - HTTP code: 409 - message: "The service broker reported an error during deprovisioning: %s"
func IsServiceInstanceDuplicateNotAllowedError ¶
IsServiceInstanceDuplicateNotAllowedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60008 - HTTP code: 400 - message: "An instance of this service is already present in this space. Some services only support one instance per space."
func IsServiceInstanceInvalidError ¶
IsServiceInstanceInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60003 - HTTP code: 400 - message: "The service instance is invalid: %s"
func IsServiceInstanceNameEmptyError ¶
IsServiceInstanceNameEmptyError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60001 - HTTP code: 400 - message: "Service instance name is required."
func IsServiceInstanceNameTakenError ¶
IsServiceInstanceNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60002 - HTTP code: 400 - message: "The service instance name is taken: %s"
func IsServiceInstanceNameTooLongError ¶
IsServiceInstanceNameTooLongError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60009 - HTTP code: 400 - message: "You have requested an invalid service instance name. Names are limited to 50 characters."
func IsServiceInstanceNotFoundError ¶
IsServiceInstanceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60004 - HTTP code: 404 - message: "The service instance could not be found: %s"
func IsServiceInstanceOrganizationNotAuthorizedError ¶
IsServiceInstanceOrganizationNotAuthorizedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60010 - HTTP code: 403 - message: "A service instance for the selected plan cannot be created in this organization. The plan is visible because another organization you belong to has access to it."
func IsServiceInstanceQuotaExceededError ¶
IsServiceInstanceQuotaExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60005 - HTTP code: 400 - message: "You have exceeded your organization's services limit."
func IsServiceInstanceRouteBindingSpaceMismatchError ¶
IsServiceInstanceRouteBindingSpaceMismatchError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60017 - HTTP code: 400 - message: "The service instance and the route are in different spaces."
func IsServiceInstanceRouteServiceDisabledError ¶
IsServiceInstanceRouteServiceDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60021 - HTTP code: 403 - message: "Support for route services is disabled"
func IsServiceInstanceRouteServiceRequiresDiegoError ¶
IsServiceInstanceRouteServiceRequiresDiegoError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60020 - HTTP code: 400 - message: "Route services are only supported for apps on Diego. Unbind the service instance from the route or enable Diego for the app."
func IsServiceInstanceRouteServiceURLInvalidError ¶
IsServiceInstanceRouteServiceURLInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60019 - HTTP code: 400 - message: "The route service URL is invalid: %s"
func IsServiceInstanceServicePlanNotAllowedBySpaceQuotaError ¶
IsServiceInstanceServicePlanNotAllowedBySpaceQuotaError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60013 - HTTP code: 400 - message: "The service instance cannot be created because paid service plans are not allowed for your space."
func IsServiceInstanceServicePlanNotAllowedError ¶
IsServiceInstanceServicePlanNotAllowedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60007 - HTTP code: 400 - message: "The service instance cannot be created because paid service plans are not allowed."
func IsServiceInstanceSpaceChangeNotAllowedError ¶
IsServiceInstanceSpaceChangeNotAllowedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60014 - HTTP code: 400 - message: "Cannot update space for service instance."
func IsServiceInstanceSpaceNotAuthorizedError ¶
IsServiceInstanceSpaceNotAuthorizedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60018 - HTTP code: 403 - message: "A service instance for the selected plan cannot be created in this space."
func IsServiceInstanceSpaceQuotaExceededError ¶
IsServiceInstanceSpaceQuotaExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60012 - HTTP code: 400 - message: "You have exceeded your space's services limit."
func IsServiceInstanceTagsTooLongError ¶
IsServiceInstanceTagsTooLongError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60015 - HTTP code: 400 - message: "Combined length of tags for service %s must be 2048 characters or less."
func IsServiceInstanceUnshareFailedError ¶
IsServiceInstanceUnshareFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390001 - HTTP code: 502 - message: "Unshare of service instance failed because one or more bindings could not be deleted.\n\n%s"
func IsServiceInvalidError ¶
IsServiceInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 120001 - HTTP code: 400 - message: "The service is invalid: %s"
func IsServiceKeyCredentialStoreUnavailableError ¶
IsServiceKeyCredentialStoreUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 360005 - HTTP code: 503 - message: "Credential store is unavailable"
func IsServiceKeyInvalidError ¶
IsServiceKeyInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 360002 - HTTP code: 400 - message: "The service key is invalid: %s"
func IsServiceKeyNameTakenError ¶
IsServiceKeyNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 360001 - HTTP code: 400 - message: "The service key name is taken: %s"
func IsServiceKeyNotFoundError ¶
IsServiceKeyNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 360003 - HTTP code: 404 - message: "The service key could not be found: %s"
func IsServiceKeyNotSupportedError ¶
IsServiceKeyNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 360004 - HTTP code: 400 - message: "%s"
func IsServiceLabelTakenError ¶
IsServiceLabelTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 120002 - HTTP code: 400 - message: "The service label is taken: %s"
func IsServiceNotFoundError ¶
IsServiceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 120003 - HTTP code: 404 - message: "The service could not be found: %s"
func IsServiceNotImplementedError ¶
IsServiceNotImplementedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 180003 - HTTP code: 501 - message: "Operation not supported for service"
func IsServicePlanInvalidError ¶
IsServicePlanInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 110001 - HTTP code: 400 - message: "The service plan is invalid: %s"
func IsServicePlanNameTakenError ¶
IsServicePlanNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 110002 - HTTP code: 400 - message: "The service plan name is taken: %s"
func IsServicePlanNotFoundError ¶
IsServicePlanNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 110003 - HTTP code: 404 - message: "The service plan could not be found: %s"
func IsServicePlanNotUpdateableError ¶
IsServicePlanNotUpdateableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 110004 - HTTP code: 400 - message: "The service does not support changing plans."
func IsServicePlanVisibilityAlreadyExistsError ¶
IsServicePlanVisibilityAlreadyExistsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 260002 - HTTP code: 400 - message: "This combination of ServicePlan and Organization is already taken: %s"
func IsServicePlanVisibilityInvalidError ¶
IsServicePlanVisibilityInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 260001 - HTTP code: 400 - message: "Service Plan Visibility is invalid: %s"
func IsServicePlanVisibilityNotFoundError ¶
IsServicePlanVisibilityNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 260003 - HTTP code: 404 - message: "The service plan visibility could not be found: %s"
func IsServiceShareIsDisabledError ¶
IsServiceShareIsDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390003 - HTTP code: 400 - message: "The %s service does not support service instance sharing."
func IsSharedServiceInstanceNameTakenError ¶
IsSharedServiceInstanceNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390006 - HTTP code: 400 - message: "A service instance called %s already exists in %s"
func IsSpaceDeleteTimeoutError ¶
IsSpaceDeleteTimeoutError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290007 - HTTP code: 524 - message: "Deletion of space %s timed out before all resources within could be deleted"
func IsSpaceDeletionFailedError ¶
IsSpaceDeletionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290008 - HTTP code: 502 - message: "Deletion of space %s failed because one or more resources within could not be deleted.\n\n%s"
func IsSpaceInvalidError ¶
IsSpaceInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 40001 - HTTP code: 400 - message: "The app space info is invalid: %s"
func IsSpaceNameTakenError ¶
IsSpaceNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 40002 - HTTP code: 400 - message: "The app space name is taken: %s"
func IsSpaceNotFoundError ¶
IsSpaceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 40004 - HTTP code: 404 - message: "The app space could not be found: %s"
func IsSpaceQuotaDefinitionInvalidError ¶
IsSpaceQuotaDefinitionInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310001 - HTTP code: 400 - message: "Space Quota Definition is invalid: %s"
func IsSpaceQuotaDefinitionNameTakenError ¶
IsSpaceQuotaDefinitionNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310002 - HTTP code: 400 - message: "The space quota definition name is taken: %s"
func IsSpaceQuotaDefinitionNotFoundError ¶
IsSpaceQuotaDefinitionNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310007 - HTTP code: 404 - message: "Space Quota Definition could not be found: %s"
func IsSpaceQuotaInstanceLimitExceededError ¶
IsSpaceQuotaInstanceLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310008 - HTTP code: 400 - message: "You have exceeded the instance limit for your space's quota."
func IsSpaceQuotaInstanceMemoryLimitExceededError ¶
IsSpaceQuotaInstanceMemoryLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310004 - HTTP code: 400 - message: "You have exceeded the instance memory limit for your space's quota."
func IsSpaceQuotaMemoryLimitExceededError ¶
IsSpaceQuotaMemoryLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310003 - HTTP code: 400 - message: "You have exceeded your space's memory limit: %s"
func IsSpaceQuotaTotalReservedRoutePortsExceededError ¶
IsSpaceQuotaTotalReservedRoutePortsExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310010 - HTTP code: 400 - message: "You have exceeded the total reserved route ports for your space's quota."
func IsSpaceQuotaTotalRoutesExceededError ¶
IsSpaceQuotaTotalRoutesExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310005 - HTTP code: 400 - message: "You have exceeded the total routes for your space's quota."
func IsSpaceRolesDeletionFailedError ¶
IsSpaceRolesDeletionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290016 - HTTP code: 502 - message: "Failed to delete one or more roles for space %s"
func IsSpaceRolesDeletionTimeoutError ¶
IsSpaceRolesDeletionTimeoutError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290013 - HTTP code: 524 - message: "Deletion of roles for space %s timed out before all roles could be deleted"
func IsSpaceUserNotInOrgError ¶
IsSpaceUserNotInOrgError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 40003 - HTTP code: 400 - message: "The app space and the user are not in the same org: %s"
func IsStackInvalidError ¶
IsStackInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 250001 - HTTP code: 400 - message: "The stack is invalid: %s"
func IsStackNameTakenError ¶
IsStackNameTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 250002 - HTTP code: 400 - message: "The stack name is taken: %s"
func IsStackNotFoundError ¶
IsStackNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 250003 - HTTP code: 404 - message: "The stack could not be found: %s"
func IsStagerError ¶
IsStagerError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170011 - HTTP code: 500 - message: "Stager error: %s"
func IsStagerUnavailableError ¶
IsStagerUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170010 - HTTP code: 503 - message: "Stager is unavailable: %s"
func IsStagingBackendInvalidError ¶
IsStagingBackendInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320004 - HTTP code: 403 - message: "The request staging completion endpoint only handles apps desired to stage on the Diego backend."
func IsStagingError ¶
IsStagingError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170001 - HTTP code: 400 - message: "Staging error: %s"
func IsStagingInProgressError ¶
IsStagingInProgressError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170017 - HTTP code: 422 - message: "Only one build can be STAGING at a time per application."
func IsStagingTimeExpiredError ¶
IsStagingTimeExpiredError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170007 - HTTP code: 504 - message: "Staging time expired: %s"
func IsStatsError ¶
IsStatsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 200001 - HTTP code: 400 - message: "Stats error: %s"
func IsStatsUnavailableError ¶
IsStatsUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 200002 - HTTP code: 503 - message: "Stats unavailable: %s"
func IsTaskError ¶
IsTaskError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170019 - HTTP code: 500 - message: "Task failed: %s"
func IsTaskWorkersUnavailableError ¶
IsTaskWorkersUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 170020 - HTTP code: 503 - message: "Task workers are unavailable: %s"
func IsTotalPrivateDomainsExceededError ¶
IsTotalPrivateDomainsExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130005 - HTTP code: 400 - message: "The number of private domains exceeds the quota for organization: %s"
func IsUaaEndpointDisabledError ¶
IsUaaEndpointDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20005 - HTTP code: 501 - message: "The UAA endpoint needed is disabled"
func IsUaaIdTakenError ¶
IsUaaIdTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20002 - HTTP code: 400 - message: "The UAA ID is taken: %s"
func IsUaaUnavailableError ¶
IsUaaUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20004 - HTTP code: 503 - message: "The UAA service is currently unavailable"
func IsUnableToDeleteError ¶
IsUnableToDeleteError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 350002 - HTTP code: 400 - message: "Unable to perform delete action: %s"
func IsUnableToPerformError ¶
IsUnableToPerformError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10009 - HTTP code: 400 - message: "%s could not be completed: %s"
func IsUnbindableServiceError ¶
IsUnbindableServiceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90005 - HTTP code: 400 - message: "The service instance doesn't support binding."
func IsUnprocessableEntityError ¶
IsUnprocessableEntityError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10008 - HTTP code: 422 - message: "%s"
func IsUserInvalidError ¶
IsUserInvalidError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20001 - HTTP code: 400 - message: "The user info is invalid: %s"
func IsUserIsInMultipleOriginsError ¶
IsUserIsInMultipleOriginsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20006 - HTTP code: 400 - message: "The user exists in multiple origins. Specify an origin for the requested user from: %s"
func IsUserNotFoundError ¶
IsUserNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20003 - HTTP code: 404 - message: "The user could not be found: %s"
func IsUserProvidedServiceInstanceHandlerNeededError ¶
IsUserProvidedServiceInstanceHandlerNeededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 340002 - HTTP code: 400 - message: "Please use the User Provided Services API to manage this resource."
func IsUserProvidedServiceInstanceNotFoundError ¶
IsUserProvidedServiceInstanceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 340001 - HTTP code: 404 - message: "The service instance could not be found: %s"
func IsUserProvidedServiceInstanceSharingNotSupportedError ¶
IsUserProvidedServiceInstanceSharingNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390004 - HTTP code: 400 - message: "User-provided services cannot be shared"
func IsUserWithOriginNotFoundError ¶
IsUserWithOriginNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 20007 - HTTP code: 404 - message: "The user could not be found, %s"
func IsVolumeMountServiceDisabledError ¶
IsVolumeMountServiceDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60025 - HTTP code: 403 - message: "Support for volume mount services is disabled"
Types ¶
type App ¶
type App struct { Guid string `json:"guid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Name string `json:"name"` Memory int `json:"memory"` Instances int `json:"instances"` DiskQuota int `json:"disk_quota"` SpaceGuid string `json:"space_guid"` StackGuid string `json:"stack_guid"` State string `json:"state"` PackageState string `json:"package_state"` Command string `json:"command"` Buildpack string `json:"buildpack"` DetectedBuildpack string `json:"detected_buildpack"` DetectedBuildpackGuid string `json:"detected_buildpack_guid"` HealthCheckHttpEndpoint string `json:"health_check_http_endpoint"` HealthCheckType string `json:"health_check_type"` HealthCheckTimeout int `json:"health_check_timeout"` Diego bool `json:"diego"` EnableSSH bool `json:"enable_ssh"` DetectedStartCommand string `json:"detected_start_command"` DockerImage string `json:"docker_image"` DockerCredentials map[string]interface{} `json:"docker_credentials_json"` Environment map[string]interface{} `json:"environment_json"` StagingFailedReason string `json:"staging_failed_reason"` StagingFailedDescription string `json:"staging_failed_description"` Ports []int `json:"ports"` SpaceURL string `json:"space_url"` SpaceData SpaceResource `json:"space"` PackageUpdatedAt string `json:"package_updated_at"` // contains filtered or unexported fields }
type AppEnv ¶
type AppEnv struct { // These can have arbitrary JSON so need to map to interface{} Environment map[string]interface{} `json:"environment_json"` StagingEnv map[string]interface{} `json:"staging_env_json"` RunningEnv map[string]interface{} `json:"running_env_json"` SystemEnv map[string]interface{} `json:"system_env_json"` ApplicationEnv map[string]interface{} `json:"application_env_json"` }
type AppEventEntity ¶
type AppEventEntity struct { //EventTypes are app.crash, audit.app.start, audit.app.stop, audit.app.update, audit.app.create, audit.app.delete-request EventType string `json:"type"` //The GUID of the actor. Actor string `json:"actor"` //The actor type, user or app ActorType string `json:"actor_type"` //The name of the actor. ActorName string `json:"actor_name"` //The GUID of the actee. Actee string `json:"actee"` //The actee type, space, app or v3-app ActeeType string `json:"actee_type"` //The name of the actee. ActeeName string `json:"actee_name"` //Timestamp format "2016-02-26T13:29:44Z". The event creation time. Timestamp time.Time `json:"timestamp"` MetaData struct { //app.crash event fields ExitDescription string `json:"exit_description,omitempty"` ExitReason string `json:"reason,omitempty"` ExitStatus string `json:"exit_status,omitempty"` Request struct { Name string `json:"name,omitempty"` Instances float64 `json:"instances,omitempty"` State string `json:"state,omitempty"` Memory float64 `json:"memory,omitempty"` EnvironmentVars string `json:"environment_json,omitempty"` DockerCredentials string `json:"docker_credentials_json,omitempty"` //audit.app.create event fields Console bool `json:"console,omitempty"` Buildpack string `json:"buildpack,omitempty"` Space string `json:"space_guid,omitempty"` HealthcheckType string `json:"health_check_type,omitempty"` HealthcheckTimeout float64 `json:"health_check_timeout,omitempty"` Production bool `json:"production,omitempty"` //app.crash event fields Index float64 `json:"index,omitempty"` } `json:"request"` } `json:"metadata"` }
The AppEventEntity the actual app event body
type AppEventQuery ¶
AppEventQuery a struct for defining queries like 'q=filter>value' or 'q=filter IN a,b,c'
type AppEventResource ¶
type AppEventResource struct { Meta Meta `json:"metadata"` Entity AppEventEntity `json:"entity"` }
AppEventResource the event resources
type AppEventResponse ¶
type AppEventResponse struct { Results int `json:"total_results"` Pages int `json:"total_pages"` PrevURL string `json:"prev_url"` NextURL string `json:"next_url"` Resources []AppEventResource `json:"resources"` }
AppEventResponse the entire response
type AppInstance ¶
type AppInstance struct { State string `json:"state"` Since sinceTime `json:"since"` }
type AppResource ¶
type AppResponse ¶
type AppResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []AppResource `json:"resources"` }
type AppStats ¶
type AppStats struct { State string `json:"state"` Stats struct { Name string `json:"name"` Uris []string `json:"uris"` Host string `json:"host"` Port int `json:"port"` Uptime int `json:"uptime"` MemQuota int `json:"mem_quota"` DiskQuota int `json:"disk_quota"` FdsQuota int `json:"fds_quota"` Usage struct { Time statTime `json:"time"` CPU float64 `json:"cpu"` Mem int `json:"mem"` Disk int `json:"disk"` } `json:"usage"` } `json:"stats"` }
type AppSummary ¶
type AppSummary struct { Guid string `json:"guid"` Name string `json:"name"` ServiceCount int `json:"service_count"` RunningInstances int `json:"running_instances"` SpaceGuid string `json:"space_guid"` StackGuid string `json:"stack_guid"` Buildpack string `json:"buildpack"` DetectedBuildpack string `json:"detected_buildpack"` Environment map[string]interface{} `json:"environment_json"` Memory int `json:"memory"` Instances int `json:"instances"` DiskQuota int `json:"disk_quota"` State string `json:"state"` Command string `json:"command"` PackageState string `json:"package_state"` HealthCheckType string `json:"health_check_type"` HealthCheckTimeout int `json:"health_check_timeout"` StagingFailedReason string `json:"staging_failed_reason"` StagingFailedDescription string `json:"staging_failed_description"` Diego bool `json:"diego"` DockerImage string `json:"docker_image"` DetectedStartCommand string `json:"detected_start_command"` EnableSSH bool `json:"enable_ssh"` DockerCredentials map[string]interface{} `json:"docker_credentials_json"` }
type BillingManagerResponse ¶
type BillingManagerResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type BuildpackResource ¶
type BuildpackResponse ¶
type BuildpackResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []BuildpackResource `json:"resources"` }
type Client ¶
Client used to communicate with Cloud Foundry
func (*Client) AppByName ¶
AppByName takes an appName, and GUIDs for a space and org, and performs the API lookup with those query parameters set to return you the desired App object.
func (*Client) AssociateOrgAuditor ¶
func (*Client) AssociateOrgAuditorByUsername ¶
func (*Client) AssociateOrgManager ¶
func (*Client) AssociateOrgManagerByUsername ¶
func (*Client) AssociateOrgUser ¶
func (*Client) AssociateOrgUserByUsername ¶
func (*Client) AssociateSpaceAuditorByUsername ¶
func (*Client) AssociateSpaceDeveloperByUsername ¶
func (*Client) BindRunningSecGroup ¶
BindRunningSecGroup contacts the CF endpoint to associate a security group secGUID: identifies the security group to add a space to
func (*Client) BindSecGroup ¶
BindSecGroup contacts the CF endpoint to associate a space with a security group secGUID: identifies the security group to add a space to spaceGUID: identifies the space to associate
func (*Client) BindStagingSecGroup ¶
BindStagingSecGroup contacts the CF endpoint to associate a space with a security group secGUID: identifies the security group to add a space to
func (*Client) CreateIsolationSegment ¶
func (c *Client) CreateIsolationSegment(name string) (*IsolationSegment, error)
func (*Client) CreateSecGroup ¶
func (c *Client) CreateSecGroup(name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)
CreateSecGroup contacts the CF endpoint for creating a new security group. name: the name to give to the created security group rules: A slice of rule objects that describe the rules that this security group enforces.
This can technically be nil or an empty slice - we won't judge you
spaceGuids: The security group will be associated with the spaces specified by the contents of this slice.
If nil, the security group will not be associated with any spaces initially.
func (*Client) CreateServiceBroker ¶
func (c *Client) CreateServiceBroker(csb CreateServiceBrokerRequest) (ServiceBroker, error)
func (*Client) CreateServiceInstance ¶
func (c *Client) CreateServiceInstance(req ServiceInstanceRequest) (ServiceInstance, error)
func (*Client) CreateServiceKey ¶
func (c *Client) CreateServiceKey(csr CreateServiceKeyRequest) (ServiceKey, error)
CreateServiceKey creates a service key from the request. If a service key exists already, it returns an error containing `CF-ServiceKeyNameTaken`
func (*Client) CreateServicePlanVisibility ¶
func (c *Client) CreateServicePlanVisibility(servicePlanGuid string, organizationGuid string) (ServicePlanVisibility, error)
func (*Client) CreateServicePlanVisibilityByUniqueId ¶
func (c *Client) CreateServicePlanVisibilityByUniqueId(uniqueId string, organizationGuid string) (ServicePlanVisibility, error)
a uniqueID is the id of the service in the catalog and not in cf internal db
func (*Client) CreateSpace ¶
func (c *Client) CreateSpace(req SpaceRequest) (Space, error)
func (*Client) CreateTask ¶
func (c *Client) CreateTask(tr TaskRequest) (task Task, err error)
CreateTask creates a new task in CF system and returns its structure.
func (*Client) CreateTcpRoute ¶
func (c *Client) CreateTcpRoute(routeRequest RouteRequest) (Route, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(req UserRequest) (User, error)
func (*Client) DeleteDomain ¶
func (*Client) DeleteIsolationSegmentByGUID ¶
func (*Client) DeleteRoute ¶
func (*Client) DeleteSecGroup ¶
DeleteSecGroup contacts the CF endpoint to delete an existing security group. guid: Indentifies the security group to be deleted.
func (*Client) DeleteServiceBroker ¶
func (*Client) DeleteServicePlanVisibility ¶
func (*Client) DeleteServicePlanVisibilityByPlanAndOrg ¶
func (*Client) DeleteUser ¶
func (*Client) GetAppByGuidNoInlineCall ¶
GetAppByGuidNoInlineCall will fetch app info including space and orgs information Without using inline-relations-depth=2 call
func (*Client) GetAppInstances ¶
func (c *Client) GetAppInstances(guid string) (map[string]AppInstance, error)
func (*Client) GetBuildpackByGuid ¶
func (*Client) GetIsolationSegmentByGUID ¶
func (c *Client) GetIsolationSegmentByGUID(guid string) (*IsolationSegment, error)
func (*Client) GetOrgQuotaByName ¶
func (*Client) GetSecGroup ¶
GetSecGroup contacts the CF endpoint for fetching the info for a particular security group. guid: Identifies the security group to fetch information from
func (*Client) GetSecGroupByName ¶
func (*Client) GetServiceBindingByGuid ¶
func (c *Client) GetServiceBindingByGuid(guid string) (ServiceBinding, error)
func (*Client) GetServiceBrokerByGuid ¶
func (c *Client) GetServiceBrokerByGuid(guid string) (ServiceBroker, error)
func (*Client) GetServiceBrokerByName ¶
func (c *Client) GetServiceBrokerByName(name string) (ServiceBroker, error)
func (*Client) GetServiceInstanceByGuid ¶
func (c *Client) GetServiceInstanceByGuid(guid string) (ServiceInstance, error)
func (*Client) GetServiceKeyByInstanceGuid ¶
func (c *Client) GetServiceKeyByInstanceGuid(guid string) (ServiceKey, error)
GetServiceKeyByInstanceGuid is deprecated in favor of GetServiceKeysByInstanceGuid
func (*Client) GetServiceKeyByName ¶
func (c *Client) GetServiceKeyByName(name string) (ServiceKey, error)
func (*Client) GetServiceKeysByInstanceGuid ¶
func (c *Client) GetServiceKeysByInstanceGuid(guid string) ([]ServiceKey, error)
GetServiceKeysByInstanceGuid returns the service keys for a service instance. If none are found, it returns an error.
func (*Client) GetServicePlanVisibilityByGuid ¶
func (c *Client) GetServicePlanVisibilityByGuid(guid string) (ServicePlanVisibility, error)
func (*Client) GetSharedDomainByName ¶
func (c *Client) GetSharedDomainByName(name string) (SharedDomain, error)
func (*Client) GetSpaceByName ¶
func (*Client) GetSpaceQuotaByName ¶
func (c *Client) GetSpaceQuotaByName(name string) (SpaceQuota, error)
func (*Client) GetTaskByGuid ¶
GetTaskByGuid returns a task structure by requesting it with the tasks GUID.
func (*Client) GetUserByGUID ¶
GetUserByGUID retrieves the user with the provided guid.
func (*Client) GetUserProvidedServiceInstanceByGuid ¶
func (c *Client) GetUserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)
func (*Client) ListAppEvents ¶
func (c *Client) ListAppEvents(eventType string) ([]AppEventEntity, error)
ListAppEvents returns all app events based on eventType
func (*Client) ListAppEventsByQuery ¶
func (c *Client) ListAppEventsByQuery(eventType string, queries []AppEventQuery) ([]AppEventEntity, error)
ListAppEventsByQuery returns all app events based on eventType and queries
func (*Client) ListAppsByQueryWithLimits ¶
ListAppsByQueryWithLimits queries totalPages app info. When totalPages is less and equal than 0, it queries all app info When there are no more than totalPages apps on server side, all apps info will be returned
func (*Client) ListBillingManagers ¶
func (*Client) ListBillingManagersByQuery ¶
func (*Client) ListBuildpacks ¶
func (*Client) ListDomains ¶
func (*Client) ListDomainsByQuery ¶
func (*Client) ListEvents ¶
ListEvents lists all unfiltered events.
func (*Client) ListEventsByQuery ¶
ListEventsByQuery lists all events matching the provided query.
func (*Client) ListIsolationSegments ¶
func (c *Client) ListIsolationSegments() ([]IsolationSegment, error)
func (*Client) ListOrgAuditorsByQuery ¶
func (*Client) ListOrgManagersByQuery ¶
func (*Client) ListOrgQuotas ¶
func (*Client) ListOrgQuotasByQuery ¶
func (*Client) ListOrgUsersByQuery ¶
func (*Client) ListRoutes ¶
func (*Client) ListRoutesByQuery ¶
func (*Client) ListSecGroups ¶
func (*Client) ListServiceBindings ¶
func (c *Client) ListServiceBindings() ([]ServiceBinding, error)
func (*Client) ListServiceBindingsByQuery ¶
func (c *Client) ListServiceBindingsByQuery(query url.Values) ([]ServiceBinding, error)
func (*Client) ListServiceBrokers ¶
func (c *Client) ListServiceBrokers() ([]ServiceBroker, error)
func (*Client) ListServiceBrokersByQuery ¶
func (c *Client) ListServiceBrokersByQuery(query url.Values) ([]ServiceBroker, error)
func (*Client) ListServiceInstances ¶
func (c *Client) ListServiceInstances() ([]ServiceInstance, error)
func (*Client) ListServiceInstancesByQuery ¶
func (c *Client) ListServiceInstancesByQuery(query url.Values) ([]ServiceInstance, error)
func (*Client) ListServiceKeys ¶
func (c *Client) ListServiceKeys() ([]ServiceKey, error)
func (*Client) ListServiceKeysByQuery ¶
func (c *Client) ListServiceKeysByQuery(query url.Values) ([]ServiceKey, error)
func (*Client) ListServicePlanVisibilities ¶
func (c *Client) ListServicePlanVisibilities() ([]ServicePlanVisibility, error)
func (*Client) ListServicePlanVisibilitiesByQuery ¶
func (c *Client) ListServicePlanVisibilitiesByQuery(query url.Values) ([]ServicePlanVisibility, error)
func (*Client) ListServicePlans ¶
func (c *Client) ListServicePlans() ([]ServicePlan, error)
func (*Client) ListServicePlansByQuery ¶
func (c *Client) ListServicePlansByQuery(query url.Values) ([]ServicePlan, error)
func (*Client) ListServices ¶
func (*Client) ListServicesByQuery ¶
func (*Client) ListSharedDomains ¶
func (c *Client) ListSharedDomains() ([]SharedDomain, error)
func (*Client) ListSharedDomainsByQuery ¶
func (c *Client) ListSharedDomainsByQuery(query url.Values) ([]SharedDomain, error)
func (*Client) ListSpaceAuditors ¶
func (*Client) ListSpaceAuditorsByQuery ¶
func (*Client) ListSpaceDevelopers ¶
func (*Client) ListSpaceDevelopersByQuery ¶
func (*Client) ListSpaceManagers ¶
func (*Client) ListSpaceManagersByQuery ¶
func (*Client) ListSpaceQuotas ¶
func (c *Client) ListSpaceQuotas() ([]SpaceQuota, error)
func (*Client) ListSpaceQuotasByQuery ¶
func (c *Client) ListSpaceQuotasByQuery(query url.Values) ([]SpaceQuota, error)
func (*Client) ListSpaces ¶
func (*Client) ListSpacesByQuery ¶
func (*Client) ListStacks ¶
func (*Client) ListStacksByQuery ¶
func (*Client) ListTasks ¶
ListTasks returns all tasks the user has access to. See http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks
func (*Client) ListTasksByQuery ¶
ListTasksByQuery returns all tasks the user has access to, with query parameters. See http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks
func (*Client) ListUserAuditedOrgs ¶
func (*Client) ListUserAuditedSpaces ¶
func (*Client) ListUserBillingManagedOrgs ¶
func (*Client) ListUserManagedOrgs ¶
func (*Client) ListUserManagedSpaces ¶
func (*Client) ListUserProvidedServiceInstances ¶
func (c *Client) ListUserProvidedServiceInstances() ([]UserProvidedServiceInstance, error)
func (*Client) ListUserProvidedServiceInstancesByQuery ¶
func (c *Client) ListUserProvidedServiceInstancesByQuery(query url.Values) ([]UserProvidedServiceInstance, error)
func (*Client) ListUsersByQuery ¶
func (*Client) NewRequest ¶
NewRequest is used to create a new request
func (*Client) NewRequestWithBody ¶
NewRequestWithBody is used to create a new request with arbigtrary body io.Reader.
func (*Client) RemoveOrgAuditor ¶
func (*Client) RemoveOrgAuditorByUsername ¶
func (*Client) RemoveOrgManager ¶
func (*Client) RemoveOrgManagerByUsername ¶
func (*Client) RemoveOrgUser ¶
func (*Client) RemoveOrgUserByUsername ¶
func (*Client) RemoveSpaceAuditorByUsername ¶
func (*Client) RemoveSpaceDeveloperByUsername ¶
func (*Client) ServiceBindingByGuid ¶
func (c *Client) ServiceBindingByGuid(guid string) (ServiceBinding, error)
func (*Client) ServiceInstanceByGuid ¶
func (c *Client) ServiceInstanceByGuid(guid string) (ServiceInstance, error)
func (*Client) TasksByApp ¶
TasksByApp returns task structures which aligned to an app identified by the given guid. See: http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks-for-an-app
func (*Client) TasksByAppByQuery ¶
TasksByAppByQuery returns task structures which aligned to an app identified by the given guid and filtered by the given query parameters. See: http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks-for-an-app
func (*Client) TerminateTask ¶
TerminateTask cancels a task identified by its GUID.
func (*Client) TotalEvents ¶
TotalEvents returns the number of unfiltered events.
func (*Client) TotalEventsByQuery ¶
TotalEventsByQuery returns the number of events matching the provided query.
func (*Client) UnbindSecGroup ¶
UnbindSecGroup contacts the CF endpoint to dissociate a space from a security group secGUID: identifies the security group to remove a space from spaceGUID: identifies the space to dissociate from the security group
func (*Client) UpdateSecGroup ¶
func (c *Client) UpdateSecGroup(guid, name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)
UpdateSecGroup contacts the CF endpoint to update an existing security group. guid: identifies the security group that you would like to update. name: the new name to give to the security group rules: A slice of rule objects that describe the rules that this security group enforces.
If this is left nil, the rules will not be changed.
spaceGuids: The security group will be associated with the spaces specified by the contents of this slice.
If nil, the space associations will not be changed.
func (*Client) UpdateServiceBroker ¶
func (c *Client) UpdateServiceBroker(guid string, usb UpdateServiceBrokerRequest) (ServiceBroker, error)
func (*Client) UpdateServicePlanVisibility ¶
func (*Client) UserProvidedServiceInstanceByGuid ¶
func (c *Client) UserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)
type CloudFoundryError ¶
type CloudFoundryError struct { Code int `json:"code"` ErrorCode string `json:"error_code"` Description string `json:"description"` }
func (CloudFoundryError) Error ¶
func (cfErr CloudFoundryError) Error() string
type CloudFoundryErrors ¶
type CloudFoundryErrors struct {
Errors []CloudFoundryError `json:"errors"`
}
func (CloudFoundryErrors) Error ¶
func (cfErrs CloudFoundryErrors) Error() string
type Config ¶
type Config struct { ApiAddress string `json:"api_url"` Username string `json:"user"` Password string `json:"password"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` SkipSslValidation bool `json:"skip_ssl_validation"` HttpClient *http.Client Token string `json:"auth_token"` TokenSource oauth2.TokenSource UserAgent string `json:"user_agent"` // contains filtered or unexported fields }
Config is used to configure the creation of a client
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig configuration for client Keep LoginAdress for backward compatibility Need to be remove in close future
type CreateServiceKeyRequest ¶
type DomainResource ¶
type DomainsResponse ¶
type DomainsResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []DomainResource `json:"resources"` }
type Endpoint ¶
type Endpoint struct { DopplerEndpoint string `json:"doppler_logging_endpoint"` LoggingEndpoint string `json:"logging_endpoint"` AuthEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` }
func DefaultEndpoint ¶
func DefaultEndpoint() *Endpoint
type Event ¶
type Event struct { GUID string `json:"guid"` Type string `json:"type"` CreatedAt string `json:"created_at"` Actor string `json:"actor"` ActorType string `json:"actor_type"` ActorName string `json:"actor_name"` ActorUsername string `json:"actor_username"` Actee string `json:"actee"` ActeeType string `json:"actee_type"` ActeeName string `json:"actee_name"` OrganizationGUID string `json:"organization_guid"` SpaceGUID string `json:"space_guid"` // contains filtered or unexported fields }
Event is a type that contains event data.
type EventResource ¶
EventResource is a type that contains metadata and the entity for an event.
type EventsResponse ¶
type EventsResponse struct { TotalResults int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []EventResource `json:"resources"` }
EventsResponse is a type that wraps a collection of event resources.
type IsolationSegementResponse ¶
type IsolationSegementResponse struct { GUID string `json:"guid"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Links struct { Self struct { Href string `json:"href"` } `json:"self"` Spaces struct { Href string `json:"href"` } `json:"spaces"` Organizations struct { Href string `json:"href"` } `json:"organizations"` } `json:"links"` }
type IsolationSegment ¶
type IsolationSegment struct { GUID string `json:"guid"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` // contains filtered or unexported fields }
func (*IsolationSegment) AddOrg ¶
func (i *IsolationSegment) AddOrg(orgGuid string) error
func (*IsolationSegment) AddSpace ¶
func (i *IsolationSegment) AddSpace(spaceGuid string) error
func (*IsolationSegment) Delete ¶
func (i *IsolationSegment) Delete() error
func (*IsolationSegment) RemoveOrg ¶
func (i *IsolationSegment) RemoveOrg(orgGuid string) error
func (*IsolationSegment) RemoveSpace ¶
func (i *IsolationSegment) RemoveSpace(spaceGuid string) error
type LastOperation ¶
type ListIsolationSegmentsResponse ¶
type ListIsolationSegmentsResponse struct { Pagination Pagination `json:"pagination"` Resources []IsolationSegementResponse `json:"resources"` }
type Org ¶
type Org struct { Guid string `json:"guid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Name string `json:"name"` QuotaDefinitionGuid string `json:"quota_definition_guid"` // contains filtered or unexported fields }
func (*Org) AssociateAuditorByUsername ¶
func (*Org) AssociateManagerByUsername ¶
func (*Org) AssociateUserByUsername ¶
func (*Org) RemoveAuditor ¶
func (*Org) RemoveAuditorByUsername ¶
func (*Org) RemoveManager ¶
func (*Org) RemoveManagerByUsername ¶
func (*Org) RemoveUser ¶
func (*Org) RemoveUserByUsername ¶
func (*Org) Summary ¶
func (o *Org) Summary() (OrgSummary, error)
type OrgAuditorResponse ¶
type OrgAuditorResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type OrgManagerResponse ¶
type OrgManagerResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type OrgQuota ¶
type OrgQuota struct { Guid string `json:"guid"` Name string `json:"name"` NonBasicServicesAllowed bool `json:"non_basic_services_allowed"` TotalServices int `json:"total_services"` TotalRoutes int `json:"total_routes"` TotalPrivateDomains int `json:"total_private_domains"` MemoryLimit int `json:"memory_limit"` TrialDBAllowed bool `json:"trial_db_allowed"` InstanceMemoryLimit int `json:"instance_memory_limit"` AppInstanceLimit int `json:"app_instance_limit"` AppTaskLimit int `json:"app_task_limit"` TotalServiceKeys int `json:"total_service_keys"` TotalReservedRoutePorts int `json:"total_reserved_route_ports"` // contains filtered or unexported fields }
type OrgQuotasResource ¶
type OrgQuotasResponse ¶
type OrgQuotasResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []OrgQuotasResource `json:"resources"` }
type OrgRequest ¶
type OrgResource ¶
type OrgResponse ¶
type OrgResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []OrgResource `json:"resources"` }
type OrgSummary ¶
type OrgSummary struct { Guid string `json:"guid"` Name string `json:"name"` Status string `json:"status"` Spaces []OrgSummarySpaces `json:"spaces"` }
type OrgSummarySpaces ¶
type Pagination ¶
type RouteRequest ¶
type RoutesResource ¶
type RoutesResponse ¶
type RoutesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []RoutesResource `json:"resources"` }
type SecGroup ¶
type SecGroup struct { Guid string `json:"guid"` Name string `json:"name"` Rules []SecGroupRule `json:"rules"` Running bool `json:"running_default"` Staging bool `json:"staging_default"` SpacesURL string `json:"spaces_url"` SpacesData []SpaceResource `json:"spaces"` // contains filtered or unexported fields }
func (*SecGroup) ListSpaceResources ¶
func (secGroup *SecGroup) ListSpaceResources() ([]SpaceResource, error)
type SecGroupCreateResponse ¶
type SecGroupResource ¶
type SecGroupResponse ¶
type SecGroupResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []SecGroupResource `json:"resources"` }
type SecGroupRule ¶
type SecGroupRule struct { Protocol string `json:"protocol"` Ports string `json:"ports,omitempty"` //e.g. "4000-5000,9142" Destination string `json:"destination"` //CIDR Format Description string `json:"description,omitempty"` //Optional description Code int `json:"code"` // ICMP code Type int `json:"type"` //ICMP type. Only valid if Protocol=="icmp" Log bool `json:"log,omitempty"` //If true, log this rule }
type Service ¶
type Service struct { Guid string `json:"guid"` Label string `json:"label"` Description string `json:"description"` Active bool `json:"active"` Bindable bool `json:"bindable"` ServiceBrokerGuid string `json:"service_broker_guid"` PlanUpdateable bool `json:"plan_updateable"` Tags []string `json:"tags"` // contains filtered or unexported fields }
type ServiceBinding ¶
type ServiceBinding struct { Guid string `json:"guid"` AppGuid string `json:"app_guid"` ServiceInstanceGuid string `json:"service_instance_guid"` Credentials interface{} `json:"credentials"` BindingOptions interface{} `json:"binding_options"` GatewayData interface{} `json:"gateway_data"` GatewayName string `json:"gateway_name"` SyslogDrainUrl string `json:"syslog_drain_url"` VolumeMounts interface{} `json:"volume_mounts"` AppUrl string `json:"app_url"` ServiceInstanceUrl string `json:"service_instance_url"` // contains filtered or unexported fields }
type ServiceBindingResource ¶
type ServiceBindingResource struct { Meta Meta `json:"metadata"` Entity ServiceBinding `json:"entity"` }
type ServiceBindingsResponse ¶
type ServiceBindingsResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` Resources []ServiceBindingResource `json:"resources"` NextUrl string `json:"next_url"` }
type ServiceBroker ¶
type ServiceBrokerResource ¶
type ServiceBrokerResource struct { Meta Meta `json:"metadata"` Entity ServiceBroker `json:"entity"` }
type ServiceBrokerResponse ¶
type ServiceBrokerResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []ServiceBrokerResource `json:"resources"` }
type ServiceInstance ¶
type ServiceInstance struct { Name string `json:"name"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Credentials map[string]interface{} `json:"credentials"` ServicePlanGuid string `json:"service_plan_guid"` SpaceGuid string `json:"space_guid"` DashboardUrl string `json:"dashboard_url"` Type string `json:"type"` LastOperation LastOperation `json:"last_operation"` Tags []string `json:"tags"` ServiceGuid string `json:"service_guid"` SpaceUrl string `json:"space_url"` ServicePlanUrl string `json:"service_plan_url"` ServiceBindingsUrl string `json:"service_bindings_url"` ServiceKeysUrl string `json:"service_keys_url"` RoutesUrl string `json:"routes_url"` ServiceUrl string `json:"service_url"` Guid string `json:"guid"` // contains filtered or unexported fields }
type ServiceInstanceRequest ¶
type ServiceInstanceResource ¶
type ServiceInstanceResource struct { Meta Meta `json:"metadata"` Entity ServiceInstance `json:"entity"` }
type ServiceInstancesResponse ¶
type ServiceInstancesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []ServiceInstanceResource `json:"resources"` }
type ServiceKey ¶
type ServiceKeyResource ¶
type ServiceKeyResource struct { Meta Meta `json:"metadata"` Entity ServiceKey `json:"entity"` }
type ServiceKeysResponse ¶
type ServiceKeysResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` Resources []ServiceKeyResource `json:"resources"` }
type ServiceOfferingEntity ¶
type ServiceOfferingExtra ¶
type ServiceOfferingExtra struct { DisplayName string `json:"displayName"` DocumentationURL string `json:"documentationURL"` LongDescription string `json:"longDescription"` }
func (*ServiceOfferingExtra) UnmarshalJSON ¶
func (resource *ServiceOfferingExtra) UnmarshalJSON(rawData []byte) error
type ServiceOfferingResource ¶
type ServiceOfferingResource struct { Metadata Meta Entity ServiceOfferingEntity }
type ServiceOfferingResponse ¶
type ServiceOfferingResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` PrevUrl string `json:"prev_url"` Resources []ServiceOfferingResource `json:"resources"` }
type ServicePlan ¶
type ServicePlan struct { Name string `json:"name"` Guid string `json:"guid"` Free bool `json:"free"` Description string `json:"description"` ServiceGuid string `json:"service_guid"` Extra interface{} `json:"extra"` UniqueId string `json:"unique_id"` Public bool `json:"public"` Active bool `json:"active"` Bindable bool `json:"bindable"` ServiceUrl string `json:"service_url"` ServiceInstancesUrl string `json:"service_instances_url"` // contains filtered or unexported fields }
type ServicePlanEntity ¶
type ServicePlanResource ¶
type ServicePlanResource struct { Meta Meta `json:"metadata"` Entity ServicePlan `json:"entity"` }
type ServicePlanVisibilitiesResponse ¶
type ServicePlanVisibilitiesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []ServicePlanVisibilityResource `json:"resources"` }
type ServicePlanVisibility ¶
type ServicePlanVisibility struct { Guid string `json:"guid"` ServicePlanGuid string `json:"service_plan_guid"` OrganizationGuid string `json:"organization_guid"` ServicePlanUrl string `json:"service_plan_url"` OrganizationUrl string `json:"organization_url"` // contains filtered or unexported fields }
type ServicePlanVisibilityResource ¶
type ServicePlanVisibilityResource struct { Meta Meta `json:"metadata"` Entity ServicePlanVisibility `json:"entity"` }
type ServicePlansResponse ¶
type ServicePlansResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []ServicePlanResource `json:"resources"` }
type ServiceSummary ¶
type ServicesResource ¶
type ServicesResponse ¶
type ServicesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []ServicesResource `json:"resources"` }
type SharedDomain ¶
type SharedDomain struct { // contains filtered or unexported fields }
type SharedDomainResource ¶
type SharedDomainResource struct {}
type SharedDomainsResponse ¶
type SharedDomainsResponse struct {}
type Space ¶
type Space struct { Guid string `json:"guid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Name string `json:"name"` OrganizationGuid string `json:"organization_guid"` OrgURL string `json:"organization_url"` OrgData OrgResource `json:"organization"` QuotaDefinitionGuid string `json:"space_quota_definition_guid"` AllowSSH bool `json:"allow_ssh"` // contains filtered or unexported fields }
func (*Space) AssociateAuditorByUsername ¶
func (*Space) AssociateDeveloperByUsername ¶
func (*Space) GetServiceOfferings ¶
func (s *Space) GetServiceOfferings() (ServiceOfferingResponse, error)
func (*Space) Quota ¶
func (s *Space) Quota() (*SpaceQuota, error)
func (*Space) RemoveAuditorByUsername ¶
func (*Space) RemoveDeveloperByUsername ¶
func (*Space) Summary ¶
func (s *Space) Summary() (SpaceSummary, error)
type SpaceAuditorResponse ¶
type SpaceAuditorResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type SpaceDeveloperResponse ¶
type SpaceDeveloperResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type SpaceManagerResponse ¶
type SpaceManagerResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextURL string `json:"next_url"` Resources []UserResource `json:"resources"` }
type SpaceQuota ¶
type SpaceQuota struct { Guid string `json:"guid"` Name string `json:"name"` OrganizationGuid string `json:"organization_guid"` NonBasicServicesAllowed bool `json:"non_basic_services_allowed"` TotalServices int `json:"total_services"` TotalRoutes int `json:"total_routes"` MemoryLimit int `json:"memory_limit"` InstanceMemoryLimit int `json:"instance_memory_limit"` AppInstanceLimit int `json:"app_instance_limit"` AppTaskLimit int `json:"app_task_limit"` TotalServiceKeys int `json:"total_service_keys"` TotalReservedRoutePorts int `json:"total_reserved_route_ports"` // contains filtered or unexported fields }
type SpaceQuotasResource ¶
type SpaceQuotasResource struct { Meta Meta `json:"metadata"` Entity SpaceQuota `json:"entity"` }
type SpaceQuotasResponse ¶
type SpaceQuotasResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []SpaceQuotasResource `json:"resources"` }
type SpaceRequest ¶
type SpaceRequest struct { Name string `json:"name"` OrganizationGuid string `json:"organization_guid"` DeveloperGuid []string `json:"developer_guids,omitempty"` ManagerGuid []string `json:"manager_guids,omitempty"` AuditorGuid []string `json:"auditor_guids,omitempty"` DomainGuid []string `json:"domain_guids,omitempty"` SecurityGroupGuids []string `json:"security_group_guids,omitempty"` SpaceQuotaDefGuid string `json:"space_quota_definition_guid,omitempty"` AllowSSH bool `json:"allow_ssh,omitempty"` }
type SpaceResource ¶
type SpaceResponse ¶
type SpaceResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []SpaceResource `json:"resources"` }
type SpaceRole ¶
type SpaceRole struct { Guid string `json:"guid"` Admin bool `json:"admin"` Active bool `json:"active"` DefaultSpaceGuid string `json:"default_space_guid"` Username string `json:"username"` SpaceRoles []string `json:"space_roles"` SpacesUrl string `json:"spaces_url"` OrganizationsUrl string `json:"organizations_url"` ManagedOrganizationsUrl string `json:"managed_organizations_url"` BillingManagedOrganizationsUrl string `json:"billing_managed_organizations_url"` AuditedOrganizationsUrl string `json:"audited_organizations_url"` ManagedSpacesUrl string `json:"managed_spaces_url"` AuditedSpacesUrl string `json:"audited_spaces_url"` // contains filtered or unexported fields }
type SpaceRoleResource ¶
type SpaceRoleResponse ¶
type SpaceRoleResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []SpaceRoleResource `json:"resources"` }
type SpaceSummary ¶
type SpaceSummary struct { Guid string `json:"guid"` Name string `json:"name"` Apps []AppSummary `json:"apps"` Services []ServiceSummary `json:"services"` }
type StacksResource ¶
type StacksResponse ¶
type StacksResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []StacksResource `json:"resources"` }
type Task ¶
type Task struct { GUID string `json:"guid"` SequenceID int `json:"sequence_id"` Name string `json:"name"` Command string `json:"command"` State string `json:"state"` MemoryInMb int `json:"memory_in_mb"` DiskInMb int `json:"disk_in_mb"` Result struct { FailureReason string `json:"failure_reason"` } `json:"result"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DropletGUID string `json:"droplet_guid"` Links struct { Self struct { Href string `json:"href"` } `json:"self"` App struct { Href string `json:"href"` } `json:"app"` Droplet struct { Href string `json:"href"` } `json:"droplet"` } `json:"links"` }
Task is a description of a task element.
type TaskListResponse ¶
type TaskListResponse struct { Pagination struct { TotalResults int `json:"total_results"` TotalPages int `json:"total_pages"` First struct { Href string `json:"href"` } `json:"first"` Last struct { Href string `json:"href"` } `json:"last"` Next interface{} `json:"next"` Previous interface{} `json:"previous"` } `json:"pagination"` Tasks []Task `json:"resources"` }
TaskListResponse is the JSON response from the API.
type TaskRequest ¶
type TaskRequest struct { Command string `json:"command"` Name string `json:"name"` MemoryInMegabyte int `json:"memory_in_mb"` DiskInMegabyte int `json:"disk_in_mb"` DropletGUID string `json:"droplet_guid"` }
TaskRequest is a v3 JSON object as described in: http://v3-apidocs.cloudfoundry.org/version/3.0.0/index.html#create-a-task
type User ¶
type User struct { Guid string `json:"guid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Admin bool `json:"admin"` Active bool `json:"active"` DefaultSpaceGUID string `json:"default_space_guid"` Username string `json:"username"` SpacesURL string `json:"spaces_url"` OrgsURL string `json:"organizations_url"` ManagedOrgsURL string `json:"managed_organizations_url"` BillingManagedOrgsURL string `json:"billing_managed_organizations_url"` AuditedOrgsURL string `json:"audited_organizations_url"` ManagedSpacesURL string `json:"managed_spaces_url"` AuditedSpacesURL string `json:"audited_spaces_url"` // contains filtered or unexported fields }
type UserProvidedServiceInstance ¶
type UserProvidedServiceInstance struct { Name string `json:"name"` Credentials map[string]interface{} `json:"credentials"` SpaceGuid string `json:"space_guid"` Type string `json:"type"` Tags []string `json:"tags"` SpaceUrl string `json:"space_url"` ServiceBindingsUrl string `json:"service_bindings_url"` RoutesUrl string `json:"routes_url"` RouteServiceUrl string `json:"route_service_url"` SyslogDrainUrl string `json:"syslog_drain_url"` Guid string `json:"guid"` // contains filtered or unexported fields }
type UserProvidedServiceInstanceResource ¶
type UserProvidedServiceInstanceResource struct { Meta Meta `json:"metadata"` Entity UserProvidedServiceInstance `json:"entity"` }
type UserProvidedServiceInstancesResponse ¶
type UserProvidedServiceInstancesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []UserProvidedServiceInstanceResource `json:"resources"` }
type UserRequest ¶
type UserResource ¶
type UserResponse ¶
type UserResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []UserResource `json:"resources"` }
Source Files ¶
- appevents.go
- apps.go
- buildpacks.go
- cf_error.go
- client.go
- domains.go
- error.go
- events.go
- isolationsegments.go
- org_quotas.go
- orgs.go
- routes.go
- secgroups.go
- service_bindings.go
- service_brokers.go
- service_instances.go
- service_keys.go
- service_plan_visibilities.go
- service_plans.go
- services.go
- space_quotas.go
- spaces.go
- stacks.go
- tasks.go
- types.go
- user_provided_service_instances.go
- users.go