resource

package
v3.0.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncludeNone              = ""
	IncludeSpaceOrganization = "space.organization"
	IncludeSpace             = "Space"
	IncludeUser              = "user"
	IncludeOrganization      = "organization"
	IncludeDomain            = "domain"
	IncludeServiceOffering   = "service_offering"
	IncludeApp               = "app"
	IncludeServiceInstance   = "service_instance"
	IncludeRoute             = "route"
)

Variables

This section is empty.

Functions

func IsAnnotationLimitExceededError

func IsAnnotationLimitExceededError(err error) bool

IsAnnotationLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390023 - HTTP code: 422 - message: "Failed to add %d annotations because it would exceed maximum of %d"

func IsAppBitsCopyInvalidError

func IsAppBitsCopyInvalidError(err error) bool

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

func IsAppBitsUploadInvalidError(err error) bool

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

func IsAppInvalidError(err error) bool

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 IsAppMemoryInsufficientForSidecarsError

func IsAppMemoryInsufficientForSidecarsError(err error) bool

IsAppMemoryInsufficientForSidecarsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100009 - HTTP code: 400 - message: "The requested memory allocation is not large enough to run all of your sidecar processes."

func IsAppMemoryInvalidError

func IsAppMemoryInvalidError(err error) bool

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

func IsAppMemoryQuotaExceededError(err error) bool

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

func IsAppNameTakenError(err error) bool

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

func IsAppNotFoundError(err error) bool

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

func IsAppPackageInvalidError(err error) bool

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

func IsAppPackageNotFoundError(err error) bool

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

func IsAppPortMappingRequiresDiegoError(err error) bool

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 IsAppRecursiveDeleteFailedError

func IsAppRecursiveDeleteFailedError(err error) bool

IsAppRecursiveDeleteFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 150009 - HTTP code: 502 - message: "Deletion of app %s failed because one or more associated resources could not be deleted.\n\n%s"

func IsAppResourcesFileModeInvalidError

func IsAppResourcesFileModeInvalidError(err error) bool

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

func IsAppResourcesFilePathInvalidError(err error) bool

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

func IsAppStoppedStatsError(err error) bool

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

func IsAssociationNotEmptyError(err error) bool

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 IsAsyncServiceBindingOperationInProgressError

func IsAsyncServiceBindingOperationInProgressError(err error) bool

IsAsyncServiceBindingOperationInProgressError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90008 - HTTP code: 409 - message: "An operation for the service binding between app %s and service instance %s is in progress."

func IsAsyncServiceInstanceOperationInProgressError

func IsAsyncServiceInstanceOperationInProgressError(err error) bool

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

func IsBackendSelectionNotAuthorizedError(err error) bool

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

func IsBadQueryParameterError(err error) bool

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 IsBadRequestError

func IsBadRequestError(err error) bool

IsBadRequestError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 1004 - HTTP code: 400 - message: "Bad request: %s"

func IsBlobstoreError

func IsBlobstoreError(err error) bool

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

func IsBlobstoreNotLocalError(err error) bool

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

func IsBlobstoreUnavailableError(err error) bool

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

func IsBuildpackBitsUploadInvalidError(err error) bool

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

func IsBuildpackCompileFailedError(err error) bool

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

func IsBuildpackInvalidError(err error) bool

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

func IsBuildpackLockedError(err error) bool

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 IsBuildpackNameStackTakenError

func IsBuildpackNameStackTakenError(err error) bool

IsBuildpackNameStackTakenError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290000 - HTTP code: 422 - message: "The buildpack name %s is already in use for the stack %s"

func IsBuildpackNameTakenError

func IsBuildpackNameTakenError(err error) bool

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

func IsBuildpackReleaseFailedError(err error) bool

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 IsBuildpackStackDoesNotExistError

func IsBuildpackStackDoesNotExistError(err error) bool

IsBuildpackStackDoesNotExistError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390012 - HTTP code: 422 - message: "Uploaded buildpack stack (%s) does not exist"

func IsBuildpackStacksDontMatchError

func IsBuildpackStacksDontMatchError(err error) bool

IsBuildpackStacksDontMatchError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390011 - HTTP code: 422 - message: "Uploaded buildpack stack (%s) does not match %s"

func IsBuildpackZipError

func IsBuildpackZipError(err error) bool

IsBuildpackZipError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390013 - HTTP code: 422 - message: "Buildpack zip error: %s"

func IsCustomBuildpacksDisabledError

func IsCustomBuildpacksDisabledError(err error) bool

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

func IsDatabaseError(err error) bool

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 IsDeploymentsDisabledError

func IsDeploymentsDisabledError(err error) bool

IsDeploymentsDisabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390014 - HTTP code: 403 - message: "Deployments cannot be created due to manifest property 'temporary_disable_deployments'"

func IsDiegoDisabledError

func IsDiegoDisabledError(err error) bool

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

func IsDiegoDockerBuildpackConflictError(err error) bool

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

func IsDockerAppToDeaError(err error) bool

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

func IsDockerDisabledError(err error) bool

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

func IsDockerImageMissingError(err error) bool

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

func IsDomainInvalidError(err error) bool

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

func IsDomainNameTakenError(err error) bool

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

func IsDomainNotFoundError(err error) bool

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

func IsDropletUploadInvalidError(err error) bool

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 IsEiriniLRPError

func IsEiriniLRPError(err error) bool

IsEiriniLRPError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 410001 - HTTP code: 422 - message: "Failed to %s LRP resource: '%s'"

func IsEnvironmentVariableGroupInvalidError

func IsEnvironmentVariableGroupInvalidError(err error) bool

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

func IsEventNotFoundError(err error) bool

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

func IsFeatureDisabledError(err error) bool

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

func IsFeatureFlagInvalidError(err error) bool

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

func IsFeatureFlagNotFoundError(err error) bool

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

func IsFileError(err error) bool

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

func IsFrameworkInvalidError(err error) bool

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

func IsFrameworkNameTakenError(err error) bool

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

func IsFrameworkNotFoundError(err error) bool

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 IsIPBasedRateLimitExceededError

func IsIPBasedRateLimitExceededError(err error) bool

IsIPBasedRateLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10014 - HTTP code: 429 - message: "Rate Limit Exceeded: Unauthenticated requests from this IP address have exceeded the limit. Please log in."

func IsInstancesError

func IsInstancesError(err error) bool

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

func IsInstancesUnavailableError(err error) bool

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

func IsInsufficientResourcesError(err error) bool

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

func IsInsufficientRunningResourcesAvailableError(err error) bool

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

func IsInsufficientScopeError(err error) bool

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 IsInternalDomainCannotBeDeletedError

func IsInternalDomainCannotBeDeletedError(err error) bool

IsInternalDomainCannotBeDeletedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130009 - HTTP code: 422 - message: "The domain '%s' cannot be deleted. It is reserved by the platform."

func IsInvalidAuthTokenError

func IsInvalidAuthTokenError(err error) bool

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

func IsInvalidContentTypeError(err error) bool

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

func IsInvalidLoggingServiceBindingError(err error) bool

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

func IsInvalidRelationError(err error) bool

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

func IsInvalidRequestError(err error) bool

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 IsInvalidTaskAddressError

func IsInvalidTaskAddressError(err error) bool

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

func IsInvalidTaskRequestError(err error) bool

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

func IsJobTimeoutError(err error) bool

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 IsKpackBuilderError

func IsKpackBuilderError(err error) bool

IsKpackBuilderError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 400003 - HTTP code: 422 - message: "Failed to %s Builder resource: '%s'"

func IsKpackImageError

func IsKpackImageError(err error) bool

IsKpackImageError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 400002 - HTTP code: 422 - message: "Failed to %s Image resource for staging: '%s'"

func IsKubernetesRouteResourceError

func IsKubernetesRouteResourceError(err error) bool

IsKubernetesRouteResourceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 400001 - HTTP code: 422 - message: "Failed to create/update/delete Route resource with guid '%s' on Kubernetes"

func IsLabelLimitExceededError

func IsLabelLimitExceededError(err error) bool

IsLabelLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390020 - HTTP code: 422 - message: "Failed to add %d labels because it would exceed maximum of %d"

func IsLastBillingManagerInOrgError

func IsLastBillingManagerInOrgError(err error) bool

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

func IsLastManagerInOrgError(err error) bool

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

func IsLastUserInOrgError(err error) bool

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

func IsLegacyApiWithoutDefaultSpaceError(err error) bool

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 IsMaintenanceInfoConflictError

func IsMaintenanceInfoConflictError(err error) bool

IsMaintenanceInfoConflictError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390009 - HTTP code: 422 - message: "maintenance_info.version requested is invalid. Please ensure the catalog is up to date and you are providing a version supported by this service plan."

func IsMaintenanceInfoNotSemverError

func IsMaintenanceInfoNotSemverError(err error) bool

IsMaintenanceInfoNotSemverError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390007 - HTTP code: 422 - message: "maintenance_info.version should be a semantic version."

func IsMaintenanceInfoNotSupportedError

func IsMaintenanceInfoNotSupportedError(err error) bool

IsMaintenanceInfoNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390006 - HTTP code: 422 - message: "The service broker does not support upgrades for service instances created from this plan."

func IsMaintenanceInfoNotUpdatableWhenChangingPlanError

func IsMaintenanceInfoNotUpdatableWhenChangingPlanError(err error) bool

IsMaintenanceInfoNotUpdatableWhenChangingPlanError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390008 - HTTP code: 422 - message: "maintenance_info should not be changed when switching to different plan."

func IsManagedServiceInstanceNotFoundError

func IsManagedServiceInstanceNotFoundError(err error) bool

IsManagedServiceInstanceNotFoundError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60028 - HTTP code: 404 - message: "The service instance could not be found: %s"

func IsMessageParseError

func IsMessageParseError(err error) bool

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

func IsMultipleAppPortsMappedDiegoToDeaError(err error) bool

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

func IsNoAppDetectedError(err error) bool

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

func IsNoBuildpacksFoundError(err error) bool

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

func IsNoCompatibleCellError(err error) bool

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 IsNoCurrentEncryptionKeyError

func IsNoCurrentEncryptionKeyError(err error) bool

IsNoCurrentEncryptionKeyError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390015 - HTTP code: 422 - message: "Please set the desired encryption key in the manifest at ‘cc.database_encryption.current_key_label’"

func IsNonrecursiveSpaceDeletionFailedError

func IsNonrecursiveSpaceDeletionFailedError(err error) bool

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

func IsNotAuthenticatedError(err error) bool

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

func IsNotAuthorizedError(err error) bool

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

func IsNotFoundError(err error) bool

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

func IsNotStagedError(err error) bool

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

func IsOrderByParameterInvalidError(err error) bool

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 IsOrgQuotaLogRateLimitExceededError

func IsOrgQuotaLogRateLimitExceededError(err error) bool

IsOrgQuotaLogRateLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 100010 - HTTP code: 400 - message: "You have exceeded your organization's log rate limit: %s"

func IsOrgQuotaTotalReservedRoutePortsExceededError

func IsOrgQuotaTotalReservedRoutePortsExceededError(err error) bool

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

func IsOrgQuotaTotalRoutesExceededError(err error) bool

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 IsOrgSuspendedError

func IsOrgSuspendedError(err error) bool

IsOrgSuspendedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10017 - HTTP code: 403 - message: "The organization is suspended"

func IsOrganizationAlreadySetError

func IsOrganizationAlreadySetError(err error) bool

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

func IsOrganizationDeleteTimeoutError(err error) bool

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

func IsOrganizationDeletionFailedError(err error) bool

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

func IsOrganizationInvalidError(err error) bool

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

func IsOrganizationNameTakenError(err error) bool

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

func IsOrganizationNotFoundError(err error) bool

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

func IsOrganizationRolesDeletionFailedError(err error) bool

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

func IsOutOfRouterGroupPortsError(err error) bool

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

func IsPackageBitsAlreadyUploadedError(err error) bool

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

func IsPathInvalidError(err error) bool

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

func IsPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError(err error) bool

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

func IsProcessInvalidError(err error) bool

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

func IsProcessNotFoundError(err error) bool

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 IsProcessUpdateDisabledDuringDeploymentError

func IsProcessUpdateDisabledDuringDeploymentError(err error) bool

IsProcessUpdateDisabledDuringDeploymentError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390017 - HTTP code: 422 - message: "Cannot update this process while a deployment is in flight."

func IsQuotaDefinitionInvalidError

func IsQuotaDefinitionInvalidError(err error) bool

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 IsQuotaDefinitionMemoryLimitInvalidError

func IsQuotaDefinitionMemoryLimitInvalidError(err error) bool

IsQuotaDefinitionMemoryLimitInvalidError 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 less than -1"

func IsQuotaDefinitionNameTakenError

func IsQuotaDefinitionNameTakenError(err error) bool

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

func IsQuotaDefinitionNotFoundError(err error) bool

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

func IsQuotaInstanceLimitExceededError(err error) bool

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

func IsQuotaInstanceMemoryLimitExceededError(err error) bool

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

func IsRateLimitExceededError(err error) bool

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 IsRateLimitV2APIExceededError

func IsRateLimitV2APIExceededError(err error) bool

IsRateLimitV2APIExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10018 - HTTP code: 429 - message: "Rate Limit of V2 API Exceeded. Please consider using the V3 API"

func IsResourceNotFoundError

func IsResourceNotFoundError(err error) bool

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 IsRevisionsEnabledError

func IsRevisionsEnabledError(err error) bool

IsRevisionsEnabledError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 320006 - HTTP code: 400 - message: "V2 restaging is disabled when your app has revisions enabled"

func IsRouteAlreadyBoundToServiceInstanceError

func IsRouteAlreadyBoundToServiceInstanceError(err error) bool

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

func IsRouteHostTakenError(err error) bool

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

func IsRouteInvalidError(err error) bool

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

func IsRouteMappingNotFoundError(err error) bool

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

func IsRouteMappingTakenError(err error) bool

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

func IsRouteNotFoundError(err error) bool

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

func IsRoutePathTakenError(err error) bool

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

func IsRoutePortNotEnabledOnAppError(err error) bool

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

func IsRoutePortTakenError(err error) bool

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 IsRouteServiceCannotBeBoundToInternalRouteError

func IsRouteServiceCannotBeBoundToInternalRouteError(err error) bool

IsRouteServiceCannotBeBoundToInternalRouteError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 130010 - HTTP code: 400 - message: "Route services cannot be bound to internal routes."

func IsRouterGroupNotFoundError

func IsRouterGroupNotFoundError(err error) bool

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

func IsRoutingApiDisabledError(err error) bool

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

func IsRoutingApiUnavailableError(err error) bool

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

func IsRunnerError(err error) bool

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

func IsRunnerInvalidRequestError(err error) bool

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

func IsRunnerUnavailableError(err error) bool

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

func IsRuntimeInvalidError(err error) bool

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

func IsRuntimeNameTakenError(err error) bool

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

func IsRuntimeNotFoundError(err error) bool

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

func IsSDSNotAvailableError(err error) bool

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 IsScaleDisabledDuringDeploymentError

func IsScaleDisabledDuringDeploymentError(err error) bool

IsScaleDisabledDuringDeploymentError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390016 - HTTP code: 422 - message: "Cannot scale this process while a deployment is in flight."

func IsSecurityGroupInvalidError

func IsSecurityGroupInvalidError(err error) bool

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

func IsSecurityGroupNameTakenError(err error) bool

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

func IsSecurityGroupNotFoundError(err error) bool

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

func IsSecurityGroupRunningDefaultInvalidError(err error) bool

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

func IsSecurityGroupStagingDefaultInvalidError(err error) bool

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

func IsServerError(err error) bool

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

func IsServiceBindingAppServiceTakenError(err error) bool

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

func IsServiceBindingDifferentSpacesError(err error) bool

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

func IsServiceBindingInvalidError(err error) bool

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

func IsServiceBindingNotFoundError(err error) bool

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

func IsServiceBrokerAsyncRequiredError(err error) bool

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 IsServiceBrokerCatalogIncompatibleError

func IsServiceBrokerCatalogIncompatibleError(err error) bool

IsServiceBrokerCatalogIncompatibleError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270019 - HTTP code: 502 - message: "Service broker catalog is incompatible: %s"

func IsServiceBrokerCatalogInvalidError

func IsServiceBrokerCatalogInvalidError(err error) bool

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 IsServiceBrokerConcurrencyError

func IsServiceBrokerConcurrencyError(err error) bool

IsServiceBrokerConcurrencyError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270018 - HTTP code: 422 - message: "The service broker could not perform this operation in parallel with other running operations"

func IsServiceBrokerDashboardClientFailureError

func IsServiceBrokerDashboardClientFailureError(err error) bool

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

func IsServiceBrokerInvalidError(err error) bool

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

func IsServiceBrokerNameTakenError(err error) bool

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

func IsServiceBrokerNotFoundError(err error) bool

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

func IsServiceBrokerNotRemovableError(err error) bool

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 IsServiceBrokerRateLimitExceededError

func IsServiceBrokerRateLimitExceededError(err error) bool

IsServiceBrokerRateLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10016 - HTTP code: 429 - message: "Service broker concurrent request limit exceeded"

func IsServiceBrokerRequestMalformedError

func IsServiceBrokerRequestMalformedError(err error) bool

IsServiceBrokerRequestMalformedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270021 - HTTP code: 502 - message: "The service broker returned an invalid response: expected valid JSON object in body. Please check that the URL points to a valid service broker."

func IsServiceBrokerRequestRejectedError

func IsServiceBrokerRequestRejectedError(err error) bool

IsServiceBrokerRequestRejectedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270020 - HTTP code: 502 - message: "The service broker rejected the request. Status Code: %s. Please check that the URL points to a valid service broker."

func IsServiceBrokerRespondedAsyncWhenNotAllowedError

func IsServiceBrokerRespondedAsyncWhenNotAllowedError(err error) bool

IsServiceBrokerRespondedAsyncWhenNotAllowedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270017 - HTTP code: 502 - message: "The service broker responded asynchronously to a request, but the accepts_incomplete query parameter was false or not given."

func IsServiceBrokerSyncFailedError

func IsServiceBrokerSyncFailedError(err error) bool

IsServiceBrokerSyncFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270022 - HTTP code: 502 - message: "Encountered an error while attempting to sync cloud controller with the service broker's catalog: %s"

func IsServiceBrokerURLBasicAuthNotSupportedError

func IsServiceBrokerURLBasicAuthNotSupportedError(err error) bool

IsServiceBrokerURLBasicAuthNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 270016 - HTTP code: 400 - message: "User name and password fields in the broker URI are not supported"

func IsServiceBrokerURLInvalidError

func IsServiceBrokerURLInvalidError(err error) bool

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

func IsServiceBrokerURLTakenError(err error) bool

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

func IsServiceDashboardClientMissingURLError(err error) bool

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

func IsServiceDoesNotSupportRoutesError(err error) bool

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 IsServiceFetchBindingParametersNotSupportedError

func IsServiceFetchBindingParametersNotSupportedError(err error) bool

IsServiceFetchBindingParametersNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 90007 - HTTP code: 400 - message: "This service does not support fetching service binding parameters."

func IsServiceFetchInstanceParametersNotSupportedError

func IsServiceFetchInstanceParametersNotSupportedError(err error) bool

IsServiceFetchInstanceParametersNotSupportedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 120004 - HTTP code: 400 - message: "This service does not support fetching service instance parameters."

func IsServiceGatewayError

func IsServiceGatewayError(err error) bool

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

func IsServiceInstanceAlreadyBoundToSameRouteError(err error) bool

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

func IsServiceInstanceDeletionSharesExistsError(err error) bool

IsServiceInstanceDeletionSharesExistsError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390002 - HTTP code: 422 - 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

func IsServiceInstanceDeprovisionFailedError(err error) bool

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

func IsServiceInstanceDuplicateNotAllowedError(err error) bool

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

func IsServiceInstanceInvalidError(err error) bool

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

func IsServiceInstanceNameEmptyError(err error) bool

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

func IsServiceInstanceNameTakenError(err error) bool

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

func IsServiceInstanceNameTooLongError(err error) bool

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 255 characters."

func IsServiceInstanceNotFoundError

func IsServiceInstanceNotFoundError(err error) bool

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

func IsServiceInstanceOrganizationNotAuthorizedError(err error) bool

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 IsServiceInstanceProvisionFailedError

func IsServiceInstanceProvisionFailedError(err error) bool

IsServiceInstanceProvisionFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60030 - HTTP code: 400 - message: "The service broker reported an error during provisioning: %s"

func IsServiceInstanceQuotaExceededError

func IsServiceInstanceQuotaExceededError(err error) bool

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 IsServiceInstanceRecursiveDeleteFailedError

func IsServiceInstanceRecursiveDeleteFailedError(err error) bool

IsServiceInstanceRecursiveDeleteFailedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60027 - HTTP code: 502 - message: "Deletion of service instance %s failed because one or more associated resources could not be deleted.\n\n%s"

func IsServiceInstanceRouteBindingSpaceMismatchError

func IsServiceInstanceRouteBindingSpaceMismatchError(err error) bool

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

func IsServiceInstanceRouteServiceDisabledError(err error) bool

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

func IsServiceInstanceRouteServiceRequiresDiegoError(err error) bool

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

func IsServiceInstanceRouteServiceURLInvalidError(err error) bool

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

func IsServiceInstanceServicePlanNotAllowedBySpaceQuotaError(err error) bool

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

func IsServiceInstanceServicePlanNotAllowedError(err error) bool

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

func IsServiceInstanceSpaceChangeNotAllowedError(err error) bool

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

func IsServiceInstanceSpaceNotAuthorizedError(err error) bool

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

func IsServiceInstanceSpaceQuotaExceededError(err error) bool

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

func IsServiceInstanceTagsTooLongError(err error) bool

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

func IsServiceInstanceUnshareFailedError(err error) bool

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: \n\n%s"

func IsServiceInstanceWithInaccessiblePlanNotUpdateableError

func IsServiceInstanceWithInaccessiblePlanNotUpdateableError(err error) bool

IsServiceInstanceWithInaccessiblePlanNotUpdateableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 60029 - HTTP code: 403 - message: "Cannot update %s of a service instance that belongs to inaccessible plan"

func IsServiceInvalidError

func IsServiceInvalidError(err error) bool

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

func IsServiceKeyCredentialStoreUnavailableError(err error) bool

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

func IsServiceKeyInvalidError(err error) bool

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

func IsServiceKeyNameTakenError(err error) bool

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

func IsServiceKeyNotFoundError(err error) bool

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

func IsServiceKeyNotSupportedError(err error) bool

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

func IsServiceLabelTakenError(err error) bool

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

func IsServiceNotFoundError(err error) bool

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

func IsServiceNotImplementedError(err error) bool

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

func IsServicePlanInvalidError(err error) bool

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

func IsServicePlanNameTakenError(err error) bool

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

func IsServicePlanNotFoundError(err error) bool

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

func IsServicePlanNotUpdateableError(err error) bool

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

func IsServicePlanVisibilityAlreadyExistsError(err error) bool

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

func IsServicePlanVisibilityInvalidError(err error) bool

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

func IsServicePlanVisibilityNotFoundError(err error) bool

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 IsServiceUnavailableError

func IsServiceUnavailableError(err error) bool

IsServiceUnavailableError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 10015 - HTTP code: 503 - message: "%s"

func IsSharedServiceInstanceCannotBeRenamedError

func IsSharedServiceInstanceCannotBeRenamedError(err error) bool

IsSharedServiceInstanceCannotBeRenamedError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390003 - HTTP code: 422 - message: "Service instances that have been shared cannot be renamed"

func IsSharedServiceInstanceNotDeletableInTargetSpaceError

func IsSharedServiceInstanceNotDeletableInTargetSpaceError(err error) bool

IsSharedServiceInstanceNotDeletableInTargetSpaceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390005 - HTTP code: 403 - message: "You cannot delete service instances that have been shared with you"

func IsSharedServiceInstanceNotUpdatableInTargetSpaceError

func IsSharedServiceInstanceNotUpdatableInTargetSpaceError(err error) bool

IsSharedServiceInstanceNotUpdatableInTargetSpaceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390004 - HTTP code: 403 - message: "You cannot update service instances that have been shared with you"

func IsSpaceDeleteTimeoutError

func IsSpaceDeleteTimeoutError(err error) bool

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

func IsSpaceDeletionFailedError(err error) bool

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

func IsSpaceInvalidError(err error) bool

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

func IsSpaceNameTakenError(err error) bool

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

func IsSpaceNotFoundError(err error) bool

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

func IsSpaceQuotaDefinitionInvalidError(err error) bool

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

func IsSpaceQuotaDefinitionNameTakenError(err error) bool

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

func IsSpaceQuotaDefinitionNotFoundError(err error) bool

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

func IsSpaceQuotaInstanceLimitExceededError(err error) bool

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

func IsSpaceQuotaInstanceMemoryLimitExceededError(err error) bool

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 IsSpaceQuotaLogRateLimitExceededError

func IsSpaceQuotaLogRateLimitExceededError(err error) bool

IsSpaceQuotaLogRateLimitExceededError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 310011 - HTTP code: 400 - message: "You have exceeded your space's log rate limit: %s"

func IsSpaceQuotaMemoryLimitExceededError

func IsSpaceQuotaMemoryLimitExceededError(err error) bool

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

func IsSpaceQuotaTotalReservedRoutePortsExceededError(err error) bool

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

func IsSpaceQuotaTotalRoutesExceededError(err error) bool

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

func IsSpaceRolesDeletionFailedError(err error) bool

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

func IsSpaceRolesDeletionTimeoutError(err error) bool

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

func IsSpaceUserNotInOrgError(err error) bool

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

func IsStackInvalidError(err error) bool

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

func IsStackNameTakenError(err error) bool

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

func IsStackNotFoundError(err error) bool

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

func IsStagerError(err error) bool

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

func IsStagerUnavailableError(err error) bool

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

func IsStagingBackendInvalidError(err error) bool

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

func IsStagingError(err error) bool

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

func IsStagingInProgressError(err error) bool

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

func IsStagingTimeExpiredError(err error) bool

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

func IsStatsError(err error) bool

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

func IsStatsUnavailableError(err error) bool

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 IsStopDisabledDuringDeploymentError

func IsStopDisabledDuringDeploymentError(err error) bool

IsStopDisabledDuringDeploymentError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 390024 - HTTP code: 422 - message: "Cannot stop the app while it is deploying, please cancel the deployment before stopping the app."

func IsTaskError

func IsTaskError(err error) bool

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

func IsTaskWorkersUnavailableError(err error) bool

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

func IsTotalPrivateDomainsExceededError(err error) bool

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

func IsUAAEndpointDisabledError(err error) bool

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

func IsUAAIDTakenError(err error) bool

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

func IsUAAUnavailableError(err error) bool

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

func IsUnableToDeleteError(err error) bool

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

func IsUnableToPerformError(err error) bool

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

func IsUnbindableServiceError(err error) bool

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

func IsUnprocessableEntityError(err error) bool

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

func IsUserInvalidError(err error) bool

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

func IsUserIsInMultipleOriginsError(err error) bool

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

func IsUserNotFoundError(err error) bool

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

func IsUserProvidedServiceInstanceHandlerNeededError(err error) bool

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

func IsUserProvidedServiceInstanceNotFoundError(err error) bool

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 IsUserWithOriginNotFoundError

func IsUserWithOriginNotFoundError(err error) bool

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

func IsVolumeMountServiceDisabledError(err error) bool

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 {
	Name          string            `json:"name"`
	State         string            `json:"state"`
	Lifecycle     Lifecycle         `json:"lifecycle"`
	Relationships SpaceRelationship `json:"relationships"`
	Metadata      *Metadata         `json:"metadata"`
	Resource      `json:",inline"`
}

type AppCreate

type AppCreate struct {
	Name                 string            `json:"name"`
	Relationships        SpaceRelationship `json:"relationships"`
	EnvironmentVariables map[string]string `json:"environment_variables,omitempty"`
	Lifecycle            *Lifecycle        `json:"lifecycle,omitempty"`
	Metadata             *Metadata         `json:"metadata,omitempty"`
}

func NewAppCreate

func NewAppCreate(name, spaceGUID string) *AppCreate

type AppEnvironment

type AppEnvironment struct {
	EnvVars       map[string]string          `json:"environment_variables,omitempty"`
	StagingEnv    map[string]string          `json:"staging_env_json,omitempty"`
	RunningEnv    map[string]string          `json:"running_env_json,omitempty"`
	SystemEnvVars map[string]json.RawMessage `json:"system_env_json,omitempty"`      // VCAP_SERVICES
	AppEnvVars    map[string]json.RawMessage `json:"application_env_json,omitempty"` // VCAP_APPLICATION
}

type AppFeature

type AppFeature struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Enabled     bool   `json:"enabled"`
}

type AppFeatureList

type AppFeatureList struct {
	Pagination Pagination    `json:"pagination"`
	Resources  []*AppFeature `json:"resources"`
}

type AppFeatureUpdate

type AppFeatureUpdate struct {
	Enabled bool `json:"enabled"`
}

type AppIncludeType

type AppIncludeType int

AppIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	AppIncludeNone AppIncludeType = iota
	AppIncludeSpace
	AppIncludeSpaceOrganization
)

func (AppIncludeType) String

func (a AppIncludeType) String() string

type AppIncluded

type AppIncluded struct {
	Organizations []*Organization `json:"organizations"`
	Spaces        []*Space        `json:"spaces"`
}

type AppList

type AppList struct {
	Pagination Pagination   `json:"pagination"`
	Resources  []*App       `json:"resources"`
	Included   *AppIncluded `json:"included"`
}

type AppPermissions

type AppPermissions struct {
	ReadBasicData     bool `json:"read_basic_data"`
	ReadSensitiveData bool `json:"read_sensitive_data"`
}

type AppRelationship

type AppRelationship struct {
	App ToOneRelationship `json:"app"`
}

type AppSSHEnabled

type AppSSHEnabled struct {
	Enabled bool   `json:"enabled"`
	Reason  string `json:"reason"`
}

type AppUpdate

type AppUpdate struct {
	Name      string     `json:"name"`
	Lifecycle *Lifecycle `json:"lifecycle,omitempty"`
	Metadata  *Metadata  `json:"metadata,omitempty"`
}

type AppUsage

type AppUsage struct {
	// the app that this event pertains to, if applicable
	App AppUsageGUIDName `json:"app"`

	// the process that this event pertains to, if applicable
	Process AppUsageGUIDType `json:"process"`

	// the space that this event pertains to, if applicable
	Space AppUsageGUIDName `json:"space"`

	// the organization that this event pertains to, if applicable
	Organization Relationship `json:"organization"`

	// the buildpack that this event pertains to, if applicable
	Buildpack AppUsageGUIDName `json:"buildpack"`

	// the task that this event pertains to, if applicable
	Task AppUsageGUIDName `json:"task"`

	// state of the app that this event pertains to, if applicable
	State AppUsageCurrentPreviousString `json:"state"`

	// memory in MB of the app that this event pertains to, if applicable
	MemoryInMbPerInstance AppUsageCurrentPreviousInt `json:"memory_in_mb_per_instance"`

	// instance count of the app that this event pertains to, if applicable
	InstanceCount AppUsageCurrentPreviousInt `json:"instance_count"`

	Resource `json:",inline"`
}

type AppUsageCurrentPreviousInt

type AppUsageCurrentPreviousInt struct {
	Current  int `json:"current"`
	Previous int `json:"previous"`
}

type AppUsageCurrentPreviousString

type AppUsageCurrentPreviousString struct {
	Current  string `json:"current"`
	Previous string `json:"previous"`
}

type AppUsageGUIDName

type AppUsageGUIDName struct {
	GUID string `json:"guid"`
	Name string `json:"name"`
}

type AppUsageGUIDType

type AppUsageGUIDType struct {
	GUID string `json:"guid"`
	Type string `json:"type"`
}

type AppUsageList

type AppUsageList struct {
	Pagination Pagination  `json:"pagination"`
	Resources  []*AppUsage `json:"resources"`
}

type AppWithIncluded

type AppWithIncluded struct {
	App
	Included *AppIncluded `json:"included"`
}

type AppsQuota

type AppsQuota struct {
	// The collective memory allocation permitted for all initiated processes and active tasks.
	TotalMemoryInMB *int `json:"total_memory_in_mb"`

	// The upper limit for memory allocation per individual process or task.
	PerProcessMemoryInMB *int `json:"per_process_memory_in_mb"`

	// The cumulative log rate limit permitted for all initiated processes and active tasks.
	LogRateLimitInBytesPerSecond *int `json:"log_rate_limit_in_bytes_per_second"`

	// The maximum allowable total instances of all started processes.
	TotalInstances *int `json:"total_instances"`

	// The maximum limit for the number of tasks currently running.
	PerAppTasks *int `json:"per_app_tasks"`
}

type AuditEvent

type AuditEvent struct {
	Type string `json:"type"`

	Actor  AuditEventRelatedObject `json:"actor"`
	Target AuditEventRelatedObject `json:"target"`

	Data         *json.RawMessage `json:"data"`
	Space        Relationship     `json:"space"`
	Organization Relationship     `json:"organization"`

	Resource `json:",inline"`
}

type AuditEventList

type AuditEventList struct {
	Pagination Pagination    `json:"pagination"`
	Resources  []*AuditEvent `json:"resources"`
}

type AuditEventRelatedObject

type AuditEventRelatedObject struct {
	GUID string `json:"guid"`
	Type string `json:"type"`
	Name string `json:"name"`
}

type BitsOrDockerPackage

type BitsOrDockerPackage struct {
	Bits   *BitsPackage
	Docker *DockerPackage
}

type BitsPackage

type BitsPackage struct {
	Error    *string             `json:"error"`
	Checksum BitsPackageChecksum `json:"checksum"`
}

BitsPackage is the data for Packages of type bits. It provides an upload link to which a zip file should be uploaded.

type BitsPackageChecksum

type BitsPackageChecksum struct {
	Type  string  `json:"type"`  // eg. sha256
	Value *string `json:"value"` // populated after the bits are uploaded
}

type Build

type Build struct {
	State BuildState `json:"state"`
	Error *string    `json:"error"`

	StagingMemoryInMB                 int `json:"staging_memory_in_mb"`
	StagingDiskInMB                   int `json:"staging_disk_in_mb"`
	StagingLogRateLimitBytesPerSecond int `json:"staging_log_rate_limit_bytes_per_second"`

	Lifecycle     Lifecycle       `json:"lifecycle"`
	Package       Relationship    `json:"package"`
	Droplet       *Relationship   `json:"droplet"`
	CreatedBy     CreatedBy       `json:"created_by"`
	Relationships AppRelationship `json:"relationships"`
	Metadata      *Metadata       `json:"metadata"`
	Resource      `json:",inline"`
}

type BuildCreate

type BuildCreate struct {
	Package                           Relationship `json:"package"`
	Lifecycle                         *Lifecycle   `json:"lifecycle,omitempty"`
	StagingMemoryInMB                 int          `json:"staging_memory_in_mb,omitempty"`
	StagingDiskInMB                   int          `json:"staging_disk_in_mb,omitempty"`
	StagingLogRateLimitBytesPerSecond int          `json:"staging_log_rate_limit_bytes_per_second,omitempty"`
	Metadata                          *Metadata    `json:"metadata,omitempty"`
}

func NewBuildCreate

func NewBuildCreate(packageGUID string) *BuildCreate

type BuildList

type BuildList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Build   `json:"resources"`
}

type BuildState

type BuildState string
const (
	BuildStateStaging BuildState = "STAGING"
	BuildStateStaged  BuildState = "STAGED"
	BuildStateFailed  BuildState = "FAILED"
)

The 3 lifecycle states

const (
	DropletStateAwaitingUpload   BuildState = "AWAITING_UPLOAD"
	DropletStateProcessingUpload BuildState = "PROCESSING_UPLOAD"
	DropletStateStaged           BuildState = "STAGED"
	DropletStateCopying          BuildState = "COPYING"
	DropletStateFailed           BuildState = "FAILED"
	DropletStateExpired          BuildState = "EXPIRED"
)

The 3 lifecycle states

func (BuildState) String

func (b BuildState) String() string

type BuildUpdate

type BuildUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

func NewBuildUpdate

func NewBuildUpdate() *BuildUpdate

type Buildpack

type Buildpack struct {
	Name     string  `json:"name"`     // The name of the buildpack; to be used by app buildpack field (only alphanumeric characters)
	State    string  `json:"state"`    // The state of the buildpack Valid value is: AWAITING_UPLOAD
	Filename *string `json:"filename"` // The filename of the buildpack, if any
	Stack    string  `json:"stack"`    // The name of the stack that the buildpack will use
	Position int     `json:"position"` // The order in which the buildpacks are checked during buildpack auto-detection
	Enabled  bool    `json:"enabled"`  // Whether the buildpack can be used for staging
	Locked   bool    `json:"locked"`   // Whether the buildpack is locked to prevent updating the bits

	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type BuildpackCreateOrUpdate

type BuildpackCreateOrUpdate struct {
	Name     *string   `json:"name,omitempty"`     // The name of the buildpack; to be used by app buildpack field (only alphanumeric characters)
	Position *int      `json:"position,omitempty"` // The order in which the buildpacks are checked during buildpack auto-detection
	Enabled  *bool     `json:"enabled,omitempty"`  // Whether the buildpack can be used for staging
	Locked   *bool     `json:"locked,omitempty"`   // Whether the buildpack is locked to prevent updating the bits
	Stack    *string   `json:"stack,omitempty"`    // The name of the stack that the buildpack will use
	Metadata *Metadata `json:"metadata,omitempty"`
}

func NewBuildpackCreate

func NewBuildpackCreate(name string) *BuildpackCreateOrUpdate

func NewBuildpackUpdate

func NewBuildpackUpdate() *BuildpackCreateOrUpdate

func (*BuildpackCreateOrUpdate) WithEnabled

func (bp *BuildpackCreateOrUpdate) WithEnabled(enabled bool) *BuildpackCreateOrUpdate

func (*BuildpackCreateOrUpdate) WithLocked

func (bp *BuildpackCreateOrUpdate) WithLocked(locked bool) *BuildpackCreateOrUpdate

func (*BuildpackCreateOrUpdate) WithName

func (*BuildpackCreateOrUpdate) WithPosition

func (bp *BuildpackCreateOrUpdate) WithPosition(position int) *BuildpackCreateOrUpdate

func (*BuildpackCreateOrUpdate) WithStack

type BuildpackLifecycle

type BuildpackLifecycle struct {
	Buildpacks []string `json:"buildpacks,omitempty"`
	Stack      string   `json:"stack,omitempty"`
}

type BuildpackList

type BuildpackList struct {
	Pagination Pagination   `json:"pagination"`
	Resources  []*Buildpack `json:"resources"`
}

type CloudFoundryError

type CloudFoundryError struct {
	Code   int    `json:"code"`
	Title  string `json:"title"`
	Detail string `json:"detail"`
}

func NewAnnotationLimitExceededError

func NewAnnotationLimitExceededError() CloudFoundryError

NewAnnotationLimitExceededError returns a new CloudFoundryError that IsAnnotationLimitExceededError will return true for

func NewAppBitsCopyInvalidError

func NewAppBitsCopyInvalidError() CloudFoundryError

NewAppBitsCopyInvalidError returns a new CloudFoundryError that IsAppBitsCopyInvalidError will return true for

func NewAppBitsUploadInvalidError

func NewAppBitsUploadInvalidError() CloudFoundryError

NewAppBitsUploadInvalidError returns a new CloudFoundryError that IsAppBitsUploadInvalidError will return true for

func NewAppInvalidError

func NewAppInvalidError() CloudFoundryError

NewAppInvalidError returns a new CloudFoundryError that IsAppInvalidError will return true for

func NewAppMemoryInsufficientForSidecarsError

func NewAppMemoryInsufficientForSidecarsError() CloudFoundryError

NewAppMemoryInsufficientForSidecarsError returns a new CloudFoundryError that IsAppMemoryInsufficientForSidecarsError will return true for

func NewAppMemoryInvalidError

func NewAppMemoryInvalidError() CloudFoundryError

NewAppMemoryInvalidError returns a new CloudFoundryError that IsAppMemoryInvalidError will return true for

func NewAppMemoryQuotaExceededError

func NewAppMemoryQuotaExceededError() CloudFoundryError

NewAppMemoryQuotaExceededError returns a new CloudFoundryError that IsAppMemoryQuotaExceededError will return true for

func NewAppNameTakenError

func NewAppNameTakenError() CloudFoundryError

NewAppNameTakenError returns a new CloudFoundryError that IsAppNameTakenError will return true for

func NewAppNotFoundError

func NewAppNotFoundError() CloudFoundryError

NewAppNotFoundError returns a new CloudFoundryError that IsAppNotFoundError will return true for

func NewAppPackageInvalidError

func NewAppPackageInvalidError() CloudFoundryError

NewAppPackageInvalidError returns a new CloudFoundryError that IsAppPackageInvalidError will return true for

func NewAppPackageNotFoundError

func NewAppPackageNotFoundError() CloudFoundryError

NewAppPackageNotFoundError returns a new CloudFoundryError that IsAppPackageNotFoundError will return true for

func NewAppPortMappingRequiresDiegoError

func NewAppPortMappingRequiresDiegoError() CloudFoundryError

NewAppPortMappingRequiresDiegoError returns a new CloudFoundryError that IsAppPortMappingRequiresDiegoError will return true for

func NewAppRecursiveDeleteFailedError

func NewAppRecursiveDeleteFailedError() CloudFoundryError

NewAppRecursiveDeleteFailedError returns a new CloudFoundryError that IsAppRecursiveDeleteFailedError will return true for

func NewAppResourcesFileModeInvalidError

func NewAppResourcesFileModeInvalidError() CloudFoundryError

NewAppResourcesFileModeInvalidError returns a new CloudFoundryError that IsAppResourcesFileModeInvalidError will return true for

func NewAppResourcesFilePathInvalidError

func NewAppResourcesFilePathInvalidError() CloudFoundryError

NewAppResourcesFilePathInvalidError returns a new CloudFoundryError that IsAppResourcesFilePathInvalidError will return true for

func NewAppStoppedStatsError

func NewAppStoppedStatsError() CloudFoundryError

NewAppStoppedStatsError returns a new CloudFoundryError that IsAppStoppedStatsError will return true for

func NewAssociationNotEmptyError

func NewAssociationNotEmptyError() CloudFoundryError

NewAssociationNotEmptyError returns a new CloudFoundryError that IsAssociationNotEmptyError will return true for

func NewAsyncServiceBindingOperationInProgressError

func NewAsyncServiceBindingOperationInProgressError() CloudFoundryError

NewAsyncServiceBindingOperationInProgressError returns a new CloudFoundryError that IsAsyncServiceBindingOperationInProgressError will return true for

func NewAsyncServiceInstanceOperationInProgressError

func NewAsyncServiceInstanceOperationInProgressError() CloudFoundryError

NewAsyncServiceInstanceOperationInProgressError returns a new CloudFoundryError that IsAsyncServiceInstanceOperationInProgressError will return true for

func NewBackendSelectionNotAuthorizedError

func NewBackendSelectionNotAuthorizedError() CloudFoundryError

NewBackendSelectionNotAuthorizedError returns a new CloudFoundryError that IsBackendSelectionNotAuthorizedError will return true for

func NewBadQueryParameterError

func NewBadQueryParameterError() CloudFoundryError

NewBadQueryParameterError returns a new CloudFoundryError that IsBadQueryParameterError will return true for

func NewBadRequestError

func NewBadRequestError() CloudFoundryError

NewBadRequestError returns a new CloudFoundryError that IsBadRequestError will return true for

func NewBlobstoreError

func NewBlobstoreError() CloudFoundryError

NewBlobstoreError returns a new CloudFoundryError that IsBlobstoreError will return true for

func NewBlobstoreNotLocalError

func NewBlobstoreNotLocalError() CloudFoundryError

NewBlobstoreNotLocalError returns a new CloudFoundryError that IsBlobstoreNotLocalError will return true for

func NewBlobstoreUnavailableError

func NewBlobstoreUnavailableError() CloudFoundryError

NewBlobstoreUnavailableError returns a new CloudFoundryError that IsBlobstoreUnavailableError will return true for

func NewBuildpackBitsUploadInvalidError

func NewBuildpackBitsUploadInvalidError() CloudFoundryError

NewBuildpackBitsUploadInvalidError returns a new CloudFoundryError that IsBuildpackBitsUploadInvalidError will return true for

func NewBuildpackCompileFailedError

func NewBuildpackCompileFailedError() CloudFoundryError

NewBuildpackCompileFailedError returns a new CloudFoundryError that IsBuildpackCompileFailedError will return true for

func NewBuildpackInvalidError

func NewBuildpackInvalidError() CloudFoundryError

NewBuildpackInvalidError returns a new CloudFoundryError that IsBuildpackInvalidError will return true for

func NewBuildpackLockedError

func NewBuildpackLockedError() CloudFoundryError

NewBuildpackLockedError returns a new CloudFoundryError that IsBuildpackLockedError will return true for

func NewBuildpackNameStackTakenError

func NewBuildpackNameStackTakenError() CloudFoundryError

NewBuildpackNameStackTakenError returns a new CloudFoundryError that IsBuildpackNameStackTakenError will return true for

func NewBuildpackNameTakenError

func NewBuildpackNameTakenError() CloudFoundryError

NewBuildpackNameTakenError returns a new CloudFoundryError that IsBuildpackNameTakenError will return true for

func NewBuildpackReleaseFailedError

func NewBuildpackReleaseFailedError() CloudFoundryError

NewBuildpackReleaseFailedError returns a new CloudFoundryError that IsBuildpackReleaseFailedError will return true for

func NewBuildpackStackDoesNotExistError

func NewBuildpackStackDoesNotExistError() CloudFoundryError

NewBuildpackStackDoesNotExistError returns a new CloudFoundryError that IsBuildpackStackDoesNotExistError will return true for

func NewBuildpackStacksDontMatchError

func NewBuildpackStacksDontMatchError() CloudFoundryError

NewBuildpackStacksDontMatchError returns a new CloudFoundryError that IsBuildpackStacksDontMatchError will return true for

func NewBuildpackZipError

func NewBuildpackZipError() CloudFoundryError

NewBuildpackZipError returns a new CloudFoundryError that IsBuildpackZipError will return true for

func NewCustomBuildpacksDisabledError

func NewCustomBuildpacksDisabledError() CloudFoundryError

NewCustomBuildpacksDisabledError returns a new CloudFoundryError that IsCustomBuildpacksDisabledError will return true for

func NewDatabaseError

func NewDatabaseError() CloudFoundryError

NewDatabaseError returns a new CloudFoundryError that IsDatabaseError will return true for

func NewDeploymentsDisabledError

func NewDeploymentsDisabledError() CloudFoundryError

NewDeploymentsDisabledError returns a new CloudFoundryError that IsDeploymentsDisabledError will return true for

func NewDiegoDisabledError

func NewDiegoDisabledError() CloudFoundryError

NewDiegoDisabledError returns a new CloudFoundryError that IsDiegoDisabledError will return true for

func NewDiegoDockerBuildpackConflictError

func NewDiegoDockerBuildpackConflictError() CloudFoundryError

NewDiegoDockerBuildpackConflictError returns a new CloudFoundryError that IsDiegoDockerBuildpackConflictError will return true for

func NewDockerAppToDeaError

func NewDockerAppToDeaError() CloudFoundryError

NewDockerAppToDeaError returns a new CloudFoundryError that IsDockerAppToDeaError will return true for

func NewDockerDisabledError

func NewDockerDisabledError() CloudFoundryError

NewDockerDisabledError returns a new CloudFoundryError that IsDockerDisabledError will return true for

func NewDockerImageMissingError

func NewDockerImageMissingError() CloudFoundryError

NewDockerImageMissingError returns a new CloudFoundryError that IsDockerImageMissingError will return true for

func NewDomainInvalidError

func NewDomainInvalidError() CloudFoundryError

NewDomainInvalidError returns a new CloudFoundryError that IsDomainInvalidError will return true for

func NewDomainNameTakenError

func NewDomainNameTakenError() CloudFoundryError

NewDomainNameTakenError returns a new CloudFoundryError that IsDomainNameTakenError will return true for

func NewDomainNotFoundError

func NewDomainNotFoundError() CloudFoundryError

NewDomainNotFoundError returns a new CloudFoundryError that IsDomainNotFoundError will return true for

func NewDropletUploadInvalidError

func NewDropletUploadInvalidError() CloudFoundryError

NewDropletUploadInvalidError returns a new CloudFoundryError that IsDropletUploadInvalidError will return true for

func NewEiriniLRPError

func NewEiriniLRPError() CloudFoundryError

NewEiriniLRPError returns a new CloudFoundryError that IsEiriniLRPError will return true for

func NewEnvironmentVariableGroupInvalidError

func NewEnvironmentVariableGroupInvalidError() CloudFoundryError

NewEnvironmentVariableGroupInvalidError returns a new CloudFoundryError that IsEnvironmentVariableGroupInvalidError will return true for

func NewEventNotFoundError

func NewEventNotFoundError() CloudFoundryError

NewEventNotFoundError returns a new CloudFoundryError that IsEventNotFoundError will return true for

func NewFeatureDisabledError

func NewFeatureDisabledError() CloudFoundryError

NewFeatureDisabledError returns a new CloudFoundryError that IsFeatureDisabledError will return true for

func NewFeatureFlagInvalidError

func NewFeatureFlagInvalidError() CloudFoundryError

NewFeatureFlagInvalidError returns a new CloudFoundryError that IsFeatureFlagInvalidError will return true for

func NewFeatureFlagNotFoundError

func NewFeatureFlagNotFoundError() CloudFoundryError

NewFeatureFlagNotFoundError returns a new CloudFoundryError that IsFeatureFlagNotFoundError will return true for

func NewFileError

func NewFileError() CloudFoundryError

NewFileError returns a new CloudFoundryError that IsFileError will return true for

func NewFrameworkInvalidError

func NewFrameworkInvalidError() CloudFoundryError

NewFrameworkInvalidError returns a new CloudFoundryError that IsFrameworkInvalidError will return true for

func NewFrameworkNameTakenError

func NewFrameworkNameTakenError() CloudFoundryError

NewFrameworkNameTakenError returns a new CloudFoundryError that IsFrameworkNameTakenError will return true for

func NewFrameworkNotFoundError

func NewFrameworkNotFoundError() CloudFoundryError

NewFrameworkNotFoundError returns a new CloudFoundryError that IsFrameworkNotFoundError will return true for

func NewIPBasedRateLimitExceededError

func NewIPBasedRateLimitExceededError() CloudFoundryError

NewIPBasedRateLimitExceededError returns a new CloudFoundryError that IsIPBasedRateLimitExceededError will return true for

func NewInstancesError

func NewInstancesError() CloudFoundryError

NewInstancesError returns a new CloudFoundryError that IsInstancesError will return true for

func NewInstancesUnavailableError

func NewInstancesUnavailableError() CloudFoundryError

NewInstancesUnavailableError returns a new CloudFoundryError that IsInstancesUnavailableError will return true for

func NewInsufficientResourcesError

func NewInsufficientResourcesError() CloudFoundryError

NewInsufficientResourcesError returns a new CloudFoundryError that IsInsufficientResourcesError will return true for

func NewInsufficientRunningResourcesAvailableError

func NewInsufficientRunningResourcesAvailableError() CloudFoundryError

NewInsufficientRunningResourcesAvailableError returns a new CloudFoundryError that IsInsufficientRunningResourcesAvailableError will return true for

func NewInsufficientScopeError

func NewInsufficientScopeError() CloudFoundryError

NewInsufficientScopeError returns a new CloudFoundryError that IsInsufficientScopeError will return true for

func NewInternalDomainCannotBeDeletedError

func NewInternalDomainCannotBeDeletedError() CloudFoundryError

NewInternalDomainCannotBeDeletedError returns a new CloudFoundryError that IsInternalDomainCannotBeDeletedError will return true for

func NewInvalidAuthTokenError

func NewInvalidAuthTokenError() CloudFoundryError

NewInvalidAuthTokenError returns a new CloudFoundryError that IsInvalidAuthTokenError will return true for

func NewInvalidContentTypeError

func NewInvalidContentTypeError() CloudFoundryError

NewInvalidContentTypeError returns a new CloudFoundryError that IsInvalidContentTypeError will return true for

func NewInvalidLoggingServiceBindingError

func NewInvalidLoggingServiceBindingError() CloudFoundryError

NewInvalidLoggingServiceBindingError returns a new CloudFoundryError that IsInvalidLoggingServiceBindingError will return true for

func NewInvalidRelationError

func NewInvalidRelationError() CloudFoundryError

NewInvalidRelationError returns a new CloudFoundryError that IsInvalidRelationError will return true for

func NewInvalidRequestError

func NewInvalidRequestError() CloudFoundryError

NewInvalidRequestError returns a new CloudFoundryError that IsInvalidRequestError will return true for

func NewInvalidTaskAddressError

func NewInvalidTaskAddressError() CloudFoundryError

NewInvalidTaskAddressError returns a new CloudFoundryError that IsInvalidTaskAddressError will return true for

func NewInvalidTaskRequestError

func NewInvalidTaskRequestError() CloudFoundryError

NewInvalidTaskRequestError returns a new CloudFoundryError that IsInvalidTaskRequestError will return true for

func NewJobTimeoutError

func NewJobTimeoutError() CloudFoundryError

NewJobTimeoutError returns a new CloudFoundryError that IsJobTimeoutError will return true for

func NewKpackBuilderError

func NewKpackBuilderError() CloudFoundryError

NewKpackBuilderError returns a new CloudFoundryError that IsKpackBuilderError will return true for

func NewKpackImageError

func NewKpackImageError() CloudFoundryError

NewKpackImageError returns a new CloudFoundryError that IsKpackImageError will return true for

func NewKubernetesRouteResourceError

func NewKubernetesRouteResourceError() CloudFoundryError

NewKubernetesRouteResourceError returns a new CloudFoundryError that IsKubernetesRouteResourceError will return true for

func NewLabelLimitExceededError

func NewLabelLimitExceededError() CloudFoundryError

NewLabelLimitExceededError returns a new CloudFoundryError that IsLabelLimitExceededError will return true for

func NewLastBillingManagerInOrgError

func NewLastBillingManagerInOrgError() CloudFoundryError

NewLastBillingManagerInOrgError returns a new CloudFoundryError that IsLastBillingManagerInOrgError will return true for

func NewLastManagerInOrgError

func NewLastManagerInOrgError() CloudFoundryError

NewLastManagerInOrgError returns a new CloudFoundryError that IsLastManagerInOrgError will return true for

func NewLastUserInOrgError

func NewLastUserInOrgError() CloudFoundryError

NewLastUserInOrgError returns a new CloudFoundryError that IsLastUserInOrgError will return true for

func NewLegacyApiWithoutDefaultSpaceError

func NewLegacyApiWithoutDefaultSpaceError() CloudFoundryError

NewLegacyApiWithoutDefaultSpaceError returns a new CloudFoundryError that IsLegacyApiWithoutDefaultSpaceError will return true for

func NewMaintenanceInfoConflictError

func NewMaintenanceInfoConflictError() CloudFoundryError

NewMaintenanceInfoConflictError returns a new CloudFoundryError that IsMaintenanceInfoConflictError will return true for

func NewMaintenanceInfoNotSemverError

func NewMaintenanceInfoNotSemverError() CloudFoundryError

NewMaintenanceInfoNotSemverError returns a new CloudFoundryError that IsMaintenanceInfoNotSemverError will return true for

func NewMaintenanceInfoNotSupportedError

func NewMaintenanceInfoNotSupportedError() CloudFoundryError

NewMaintenanceInfoNotSupportedError returns a new CloudFoundryError that IsMaintenanceInfoNotSupportedError will return true for

func NewMaintenanceInfoNotUpdatableWhenChangingPlanError

func NewMaintenanceInfoNotUpdatableWhenChangingPlanError() CloudFoundryError

NewMaintenanceInfoNotUpdatableWhenChangingPlanError returns a new CloudFoundryError that IsMaintenanceInfoNotUpdatableWhenChangingPlanError will return true for

func NewManagedServiceInstanceNotFoundError

func NewManagedServiceInstanceNotFoundError() CloudFoundryError

NewManagedServiceInstanceNotFoundError returns a new CloudFoundryError that IsManagedServiceInstanceNotFoundError will return true for

func NewMessageParseError

func NewMessageParseError() CloudFoundryError

NewMessageParseError returns a new CloudFoundryError that IsMessageParseError will return true for

func NewMultipleAppPortsMappedDiegoToDeaError

func NewMultipleAppPortsMappedDiegoToDeaError() CloudFoundryError

NewMultipleAppPortsMappedDiegoToDeaError returns a new CloudFoundryError that IsMultipleAppPortsMappedDiegoToDeaError will return true for

func NewNoAppDetectedError

func NewNoAppDetectedError() CloudFoundryError

NewNoAppDetectedError returns a new CloudFoundryError that IsNoAppDetectedError will return true for

func NewNoBuildpacksFoundError

func NewNoBuildpacksFoundError() CloudFoundryError

NewNoBuildpacksFoundError returns a new CloudFoundryError that IsNoBuildpacksFoundError will return true for

func NewNoCompatibleCellError

func NewNoCompatibleCellError() CloudFoundryError

NewNoCompatibleCellError returns a new CloudFoundryError that IsNoCompatibleCellError will return true for

func NewNoCurrentEncryptionKeyError

func NewNoCurrentEncryptionKeyError() CloudFoundryError

NewNoCurrentEncryptionKeyError returns a new CloudFoundryError that IsNoCurrentEncryptionKeyError will return true for

func NewNonrecursiveSpaceDeletionFailedError

func NewNonrecursiveSpaceDeletionFailedError() CloudFoundryError

NewNonrecursiveSpaceDeletionFailedError returns a new CloudFoundryError that IsNonrecursiveSpaceDeletionFailedError will return true for

func NewNotAuthenticatedError

func NewNotAuthenticatedError() CloudFoundryError

NewNotAuthenticatedError returns a new CloudFoundryError that IsNotAuthenticatedError will return true for

func NewNotAuthorizedError

func NewNotAuthorizedError() CloudFoundryError

NewNotAuthorizedError returns a new CloudFoundryError that IsNotAuthorizedError will return true for

func NewNotFoundError

func NewNotFoundError() CloudFoundryError

NewNotFoundError returns a new CloudFoundryError that IsNotFoundError will return true for

func NewNotStagedError

func NewNotStagedError() CloudFoundryError

NewNotStagedError returns a new CloudFoundryError that IsNotStagedError will return true for

func NewOrderByParameterInvalidError

func NewOrderByParameterInvalidError() CloudFoundryError

NewOrderByParameterInvalidError returns a new CloudFoundryError that IsOrderByParameterInvalidError will return true for

func NewOrgQuotaLogRateLimitExceededError

func NewOrgQuotaLogRateLimitExceededError() CloudFoundryError

NewOrgQuotaLogRateLimitExceededError returns a new CloudFoundryError that IsOrgQuotaLogRateLimitExceededError will return true for

func NewOrgQuotaTotalReservedRoutePortsExceededError

func NewOrgQuotaTotalReservedRoutePortsExceededError() CloudFoundryError

NewOrgQuotaTotalReservedRoutePortsExceededError returns a new CloudFoundryError that IsOrgQuotaTotalReservedRoutePortsExceededError will return true for

func NewOrgQuotaTotalRoutesExceededError

func NewOrgQuotaTotalRoutesExceededError() CloudFoundryError

NewOrgQuotaTotalRoutesExceededError returns a new CloudFoundryError that IsOrgQuotaTotalRoutesExceededError will return true for

func NewOrgSuspendedError

func NewOrgSuspendedError() CloudFoundryError

NewOrgSuspendedError returns a new CloudFoundryError that IsOrgSuspendedError will return true for

func NewOrganizationAlreadySetError

func NewOrganizationAlreadySetError() CloudFoundryError

NewOrganizationAlreadySetError returns a new CloudFoundryError that IsOrganizationAlreadySetError will return true for

func NewOrganizationDeleteTimeoutError

func NewOrganizationDeleteTimeoutError() CloudFoundryError

NewOrganizationDeleteTimeoutError returns a new CloudFoundryError that IsOrganizationDeleteTimeoutError will return true for

func NewOrganizationDeletionFailedError

func NewOrganizationDeletionFailedError() CloudFoundryError

NewOrganizationDeletionFailedError returns a new CloudFoundryError that IsOrganizationDeletionFailedError will return true for

func NewOrganizationInvalidError

func NewOrganizationInvalidError() CloudFoundryError

NewOrganizationInvalidError returns a new CloudFoundryError that IsOrganizationInvalidError will return true for

func NewOrganizationNameTakenError

func NewOrganizationNameTakenError() CloudFoundryError

NewOrganizationNameTakenError returns a new CloudFoundryError that IsOrganizationNameTakenError will return true for

func NewOrganizationNotFoundError

func NewOrganizationNotFoundError() CloudFoundryError

NewOrganizationNotFoundError returns a new CloudFoundryError that IsOrganizationNotFoundError will return true for

func NewOrganizationRolesDeletionFailedError

func NewOrganizationRolesDeletionFailedError() CloudFoundryError

NewOrganizationRolesDeletionFailedError returns a new CloudFoundryError that IsOrganizationRolesDeletionFailedError will return true for

func NewOutOfRouterGroupPortsError

func NewOutOfRouterGroupPortsError() CloudFoundryError

NewOutOfRouterGroupPortsError returns a new CloudFoundryError that IsOutOfRouterGroupPortsError will return true for

func NewPackageBitsAlreadyUploadedError

func NewPackageBitsAlreadyUploadedError() CloudFoundryError

NewPackageBitsAlreadyUploadedError returns a new CloudFoundryError that IsPackageBitsAlreadyUploadedError will return true for

func NewPathInvalidError

func NewPathInvalidError() CloudFoundryError

NewPathInvalidError returns a new CloudFoundryError that IsPathInvalidError will return true for

func NewPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError

func NewPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError() CloudFoundryError

NewPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError returns a new CloudFoundryError that IsPreviouslyUsedAs_ServiceInstancePaidQuotaExceededError will return true for

func NewProcessInvalidError

func NewProcessInvalidError() CloudFoundryError

NewProcessInvalidError returns a new CloudFoundryError that IsProcessInvalidError will return true for

func NewProcessNotFoundError

func NewProcessNotFoundError() CloudFoundryError

NewProcessNotFoundError returns a new CloudFoundryError that IsProcessNotFoundError will return true for

func NewProcessUpdateDisabledDuringDeploymentError

func NewProcessUpdateDisabledDuringDeploymentError() CloudFoundryError

NewProcessUpdateDisabledDuringDeploymentError returns a new CloudFoundryError that IsProcessUpdateDisabledDuringDeploymentError will return true for

func NewQuotaDefinitionInvalidError

func NewQuotaDefinitionInvalidError() CloudFoundryError

NewQuotaDefinitionInvalidError returns a new CloudFoundryError that IsQuotaDefinitionInvalidError will return true for

func NewQuotaDefinitionMemoryLimitInvalidError

func NewQuotaDefinitionMemoryLimitInvalidError() CloudFoundryError

NewQuotaDefinitionMemoryLimitInvalidError returns a new CloudFoundryError that IsQuotaDefinitionMemoryLimitInvalidError will return true for

func NewQuotaDefinitionNameTakenError

func NewQuotaDefinitionNameTakenError() CloudFoundryError

NewQuotaDefinitionNameTakenError returns a new CloudFoundryError that IsQuotaDefinitionNameTakenError will return true for

func NewQuotaDefinitionNotFoundError

func NewQuotaDefinitionNotFoundError() CloudFoundryError

NewQuotaDefinitionNotFoundError returns a new CloudFoundryError that IsQuotaDefinitionNotFoundError will return true for

func NewQuotaInstanceLimitExceededError

func NewQuotaInstanceLimitExceededError() CloudFoundryError

NewQuotaInstanceLimitExceededError returns a new CloudFoundryError that IsQuotaInstanceLimitExceededError will return true for

func NewQuotaInstanceMemoryLimitExceededError

func NewQuotaInstanceMemoryLimitExceededError() CloudFoundryError

NewQuotaInstanceMemoryLimitExceededError returns a new CloudFoundryError that IsQuotaInstanceMemoryLimitExceededError will return true for

func NewRateLimitExceededError

func NewRateLimitExceededError() CloudFoundryError

NewRateLimitExceededError returns a new CloudFoundryError that IsRateLimitExceededError will return true for

func NewRateLimitV2APIExceededError

func NewRateLimitV2APIExceededError() CloudFoundryError

NewRateLimitV2APIExceededError returns a new CloudFoundryError that IsRateLimitV2APIExceededError will return true for

func NewResourceNotFoundError

func NewResourceNotFoundError() CloudFoundryError

NewResourceNotFoundError returns a new CloudFoundryError that IsResourceNotFoundError will return true for

func NewRevisionsEnabledError

func NewRevisionsEnabledError() CloudFoundryError

NewRevisionsEnabledError returns a new CloudFoundryError that IsRevisionsEnabledError will return true for

func NewRouteAlreadyBoundToServiceInstanceError

func NewRouteAlreadyBoundToServiceInstanceError() CloudFoundryError

NewRouteAlreadyBoundToServiceInstanceError returns a new CloudFoundryError that IsRouteAlreadyBoundToServiceInstanceError will return true for

func NewRouteHostTakenError

func NewRouteHostTakenError() CloudFoundryError

NewRouteHostTakenError returns a new CloudFoundryError that IsRouteHostTakenError will return true for

func NewRouteInvalidError

func NewRouteInvalidError() CloudFoundryError

NewRouteInvalidError returns a new CloudFoundryError that IsRouteInvalidError will return true for

func NewRouteMappingNotFoundError

func NewRouteMappingNotFoundError() CloudFoundryError

NewRouteMappingNotFoundError returns a new CloudFoundryError that IsRouteMappingNotFoundError will return true for

func NewRouteMappingTakenError

func NewRouteMappingTakenError() CloudFoundryError

NewRouteMappingTakenError returns a new CloudFoundryError that IsRouteMappingTakenError will return true for

func NewRouteNotFoundError

func NewRouteNotFoundError() CloudFoundryError

NewRouteNotFoundError returns a new CloudFoundryError that IsRouteNotFoundError will return true for

func NewRoutePathTakenError

func NewRoutePathTakenError() CloudFoundryError

NewRoutePathTakenError returns a new CloudFoundryError that IsRoutePathTakenError will return true for

func NewRoutePortNotEnabledOnAppError

func NewRoutePortNotEnabledOnAppError() CloudFoundryError

NewRoutePortNotEnabledOnAppError returns a new CloudFoundryError that IsRoutePortNotEnabledOnAppError will return true for

func NewRoutePortTakenError

func NewRoutePortTakenError() CloudFoundryError

NewRoutePortTakenError returns a new CloudFoundryError that IsRoutePortTakenError will return true for

func NewRouteServiceCannotBeBoundToInternalRouteError

func NewRouteServiceCannotBeBoundToInternalRouteError() CloudFoundryError

NewRouteServiceCannotBeBoundToInternalRouteError returns a new CloudFoundryError that IsRouteServiceCannotBeBoundToInternalRouteError will return true for

func NewRouterGroupNotFoundError

func NewRouterGroupNotFoundError() CloudFoundryError

NewRouterGroupNotFoundError returns a new CloudFoundryError that IsRouterGroupNotFoundError will return true for

func NewRoutingApiDisabledError

func NewRoutingApiDisabledError() CloudFoundryError

NewRoutingApiDisabledError returns a new CloudFoundryError that IsRoutingApiDisabledError will return true for

func NewRoutingApiUnavailableError

func NewRoutingApiUnavailableError() CloudFoundryError

NewRoutingApiUnavailableError returns a new CloudFoundryError that IsRoutingApiUnavailableError will return true for

func NewRunnerError

func NewRunnerError() CloudFoundryError

NewRunnerError returns a new CloudFoundryError that IsRunnerError will return true for

func NewRunnerInvalidRequestError

func NewRunnerInvalidRequestError() CloudFoundryError

NewRunnerInvalidRequestError returns a new CloudFoundryError that IsRunnerInvalidRequestError will return true for

func NewRunnerUnavailableError

func NewRunnerUnavailableError() CloudFoundryError

NewRunnerUnavailableError returns a new CloudFoundryError that IsRunnerUnavailableError will return true for

func NewRuntimeInvalidError

func NewRuntimeInvalidError() CloudFoundryError

NewRuntimeInvalidError returns a new CloudFoundryError that IsRuntimeInvalidError will return true for

func NewRuntimeNameTakenError

func NewRuntimeNameTakenError() CloudFoundryError

NewRuntimeNameTakenError returns a new CloudFoundryError that IsRuntimeNameTakenError will return true for

func NewRuntimeNotFoundError

func NewRuntimeNotFoundError() CloudFoundryError

NewRuntimeNotFoundError returns a new CloudFoundryError that IsRuntimeNotFoundError will return true for

func NewSDSNotAvailableError

func NewSDSNotAvailableError() CloudFoundryError

NewSDSNotAvailableError returns a new CloudFoundryError that IsSDSNotAvailableError will return true for

func NewScaleDisabledDuringDeploymentError

func NewScaleDisabledDuringDeploymentError() CloudFoundryError

NewScaleDisabledDuringDeploymentError returns a new CloudFoundryError that IsScaleDisabledDuringDeploymentError will return true for

func NewSecurityGroupInvalidError

func NewSecurityGroupInvalidError() CloudFoundryError

NewSecurityGroupInvalidError returns a new CloudFoundryError that IsSecurityGroupInvalidError will return true for

func NewSecurityGroupNameTakenError

func NewSecurityGroupNameTakenError() CloudFoundryError

NewSecurityGroupNameTakenError returns a new CloudFoundryError that IsSecurityGroupNameTakenError will return true for

func NewSecurityGroupNotFoundError

func NewSecurityGroupNotFoundError() CloudFoundryError

NewSecurityGroupNotFoundError returns a new CloudFoundryError that IsSecurityGroupNotFoundError will return true for

func NewSecurityGroupRunningDefaultInvalidError

func NewSecurityGroupRunningDefaultInvalidError() CloudFoundryError

NewSecurityGroupRunningDefaultInvalidError returns a new CloudFoundryError that IsSecurityGroupRunningDefaultInvalidError will return true for

func NewSecurityGroupStagingDefaultInvalidError

func NewSecurityGroupStagingDefaultInvalidError() CloudFoundryError

NewSecurityGroupStagingDefaultInvalidError returns a new CloudFoundryError that IsSecurityGroupStagingDefaultInvalidError will return true for

func NewServerError

func NewServerError() CloudFoundryError

NewServerError returns a new CloudFoundryError that IsServerError will return true for

func NewServiceBindingAppServiceTakenError

func NewServiceBindingAppServiceTakenError() CloudFoundryError

NewServiceBindingAppServiceTakenError returns a new CloudFoundryError that IsServiceBindingAppServiceTakenError will return true for

func NewServiceBindingDifferentSpacesError

func NewServiceBindingDifferentSpacesError() CloudFoundryError

NewServiceBindingDifferentSpacesError returns a new CloudFoundryError that IsServiceBindingDifferentSpacesError will return true for

func NewServiceBindingInvalidError

func NewServiceBindingInvalidError() CloudFoundryError

NewServiceBindingInvalidError returns a new CloudFoundryError that IsServiceBindingInvalidError will return true for

func NewServiceBindingNotFoundError

func NewServiceBindingNotFoundError() CloudFoundryError

NewServiceBindingNotFoundError returns a new CloudFoundryError that IsServiceBindingNotFoundError will return true for

func NewServiceBrokerAsyncRequiredError

func NewServiceBrokerAsyncRequiredError() CloudFoundryError

NewServiceBrokerAsyncRequiredError returns a new CloudFoundryError that IsServiceBrokerAsyncRequiredError will return true for

func NewServiceBrokerCatalogIncompatibleError

func NewServiceBrokerCatalogIncompatibleError() CloudFoundryError

NewServiceBrokerCatalogIncompatibleError returns a new CloudFoundryError that IsServiceBrokerCatalogIncompatibleError will return true for

func NewServiceBrokerCatalogInvalidError

func NewServiceBrokerCatalogInvalidError() CloudFoundryError

NewServiceBrokerCatalogInvalidError returns a new CloudFoundryError that IsServiceBrokerCatalogInvalidError will return true for

func NewServiceBrokerConcurrencyError

func NewServiceBrokerConcurrencyError() CloudFoundryError

NewServiceBrokerConcurrencyError returns a new CloudFoundryError that IsServiceBrokerConcurrencyError will return true for

func NewServiceBrokerDashboardClientFailureError

func NewServiceBrokerDashboardClientFailureError() CloudFoundryError

NewServiceBrokerDashboardClientFailureError returns a new CloudFoundryError that IsServiceBrokerDashboardClientFailureError will return true for

func NewServiceBrokerInvalidError

func NewServiceBrokerInvalidError() CloudFoundryError

NewServiceBrokerInvalidError returns a new CloudFoundryError that IsServiceBrokerInvalidError will return true for

func NewServiceBrokerNameTakenError

func NewServiceBrokerNameTakenError() CloudFoundryError

NewServiceBrokerNameTakenError returns a new CloudFoundryError that IsServiceBrokerNameTakenError will return true for

func NewServiceBrokerNotFoundError

func NewServiceBrokerNotFoundError() CloudFoundryError

NewServiceBrokerNotFoundError returns a new CloudFoundryError that IsServiceBrokerNotFoundError will return true for

func NewServiceBrokerNotRemovableError

func NewServiceBrokerNotRemovableError() CloudFoundryError

NewServiceBrokerNotRemovableError returns a new CloudFoundryError that IsServiceBrokerNotRemovableError will return true for

func NewServiceBrokerRateLimitExceededError

func NewServiceBrokerRateLimitExceededError() CloudFoundryError

NewServiceBrokerRateLimitExceededError returns a new CloudFoundryError that IsServiceBrokerRateLimitExceededError will return true for

func NewServiceBrokerRequestMalformedError

func NewServiceBrokerRequestMalformedError() CloudFoundryError

NewServiceBrokerRequestMalformedError returns a new CloudFoundryError that IsServiceBrokerRequestMalformedError will return true for

func NewServiceBrokerRequestRejectedError

func NewServiceBrokerRequestRejectedError() CloudFoundryError

NewServiceBrokerRequestRejectedError returns a new CloudFoundryError that IsServiceBrokerRequestRejectedError will return true for

func NewServiceBrokerRespondedAsyncWhenNotAllowedError

func NewServiceBrokerRespondedAsyncWhenNotAllowedError() CloudFoundryError

NewServiceBrokerRespondedAsyncWhenNotAllowedError returns a new CloudFoundryError that IsServiceBrokerRespondedAsyncWhenNotAllowedError will return true for

func NewServiceBrokerSyncFailedError

func NewServiceBrokerSyncFailedError() CloudFoundryError

NewServiceBrokerSyncFailedError returns a new CloudFoundryError that IsServiceBrokerSyncFailedError will return true for

func NewServiceBrokerURLBasicAuthNotSupportedError

func NewServiceBrokerURLBasicAuthNotSupportedError() CloudFoundryError

NewServiceBrokerURLBasicAuthNotSupportedError returns a new CloudFoundryError that IsServiceBrokerURLBasicAuthNotSupportedError will return true for

func NewServiceBrokerURLInvalidError

func NewServiceBrokerURLInvalidError() CloudFoundryError

NewServiceBrokerURLInvalidError returns a new CloudFoundryError that IsServiceBrokerURLInvalidError will return true for

func NewServiceBrokerURLTakenError

func NewServiceBrokerURLTakenError() CloudFoundryError

NewServiceBrokerURLTakenError returns a new CloudFoundryError that IsServiceBrokerURLTakenError will return true for

func NewServiceDashboardClientMissingURLError

func NewServiceDashboardClientMissingURLError() CloudFoundryError

NewServiceDashboardClientMissingURLError returns a new CloudFoundryError that IsServiceDashboardClientMissingURLError will return true for

func NewServiceDoesNotSupportRoutesError

func NewServiceDoesNotSupportRoutesError() CloudFoundryError

NewServiceDoesNotSupportRoutesError returns a new CloudFoundryError that IsServiceDoesNotSupportRoutesError will return true for

func NewServiceFetchBindingParametersNotSupportedError

func NewServiceFetchBindingParametersNotSupportedError() CloudFoundryError

NewServiceFetchBindingParametersNotSupportedError returns a new CloudFoundryError that IsServiceFetchBindingParametersNotSupportedError will return true for

func NewServiceFetchInstanceParametersNotSupportedError

func NewServiceFetchInstanceParametersNotSupportedError() CloudFoundryError

NewServiceFetchInstanceParametersNotSupportedError returns a new CloudFoundryError that IsServiceFetchInstanceParametersNotSupportedError will return true for

func NewServiceGatewayError

func NewServiceGatewayError() CloudFoundryError

NewServiceGatewayError returns a new CloudFoundryError that IsServiceGatewayError will return true for

func NewServiceInstanceAlreadyBoundToSameRouteError

func NewServiceInstanceAlreadyBoundToSameRouteError() CloudFoundryError

NewServiceInstanceAlreadyBoundToSameRouteError returns a new CloudFoundryError that IsServiceInstanceAlreadyBoundToSameRouteError will return true for

func NewServiceInstanceDeletionSharesExistsError

func NewServiceInstanceDeletionSharesExistsError() CloudFoundryError

NewServiceInstanceDeletionSharesExistsError returns a new CloudFoundryError that IsServiceInstanceDeletionSharesExistsError will return true for

func NewServiceInstanceDeprovisionFailedError

func NewServiceInstanceDeprovisionFailedError() CloudFoundryError

NewServiceInstanceDeprovisionFailedError returns a new CloudFoundryError that IsServiceInstanceDeprovisionFailedError will return true for

func NewServiceInstanceDuplicateNotAllowedError

func NewServiceInstanceDuplicateNotAllowedError() CloudFoundryError

NewServiceInstanceDuplicateNotAllowedError returns a new CloudFoundryError that IsServiceInstanceDuplicateNotAllowedError will return true for

func NewServiceInstanceInvalidError

func NewServiceInstanceInvalidError() CloudFoundryError

NewServiceInstanceInvalidError returns a new CloudFoundryError that IsServiceInstanceInvalidError will return true for

func NewServiceInstanceNameEmptyError

func NewServiceInstanceNameEmptyError() CloudFoundryError

NewServiceInstanceNameEmptyError returns a new CloudFoundryError that IsServiceInstanceNameEmptyError will return true for

func NewServiceInstanceNameTakenError

func NewServiceInstanceNameTakenError() CloudFoundryError

NewServiceInstanceNameTakenError returns a new CloudFoundryError that IsServiceInstanceNameTakenError will return true for

func NewServiceInstanceNameTooLongError

func NewServiceInstanceNameTooLongError() CloudFoundryError

NewServiceInstanceNameTooLongError returns a new CloudFoundryError that IsServiceInstanceNameTooLongError will return true for

func NewServiceInstanceNotFoundError

func NewServiceInstanceNotFoundError() CloudFoundryError

NewServiceInstanceNotFoundError returns a new CloudFoundryError that IsServiceInstanceNotFoundError will return true for

func NewServiceInstanceOrganizationNotAuthorizedError

func NewServiceInstanceOrganizationNotAuthorizedError() CloudFoundryError

NewServiceInstanceOrganizationNotAuthorizedError returns a new CloudFoundryError that IsServiceInstanceOrganizationNotAuthorizedError will return true for

func NewServiceInstanceProvisionFailedError

func NewServiceInstanceProvisionFailedError() CloudFoundryError

NewServiceInstanceProvisionFailedError returns a new CloudFoundryError that IsServiceInstanceProvisionFailedError will return true for

func NewServiceInstanceQuotaExceededError

func NewServiceInstanceQuotaExceededError() CloudFoundryError

NewServiceInstanceQuotaExceededError returns a new CloudFoundryError that IsServiceInstanceQuotaExceededError will return true for

func NewServiceInstanceRecursiveDeleteFailedError

func NewServiceInstanceRecursiveDeleteFailedError() CloudFoundryError

NewServiceInstanceRecursiveDeleteFailedError returns a new CloudFoundryError that IsServiceInstanceRecursiveDeleteFailedError will return true for

func NewServiceInstanceRouteBindingSpaceMismatchError

func NewServiceInstanceRouteBindingSpaceMismatchError() CloudFoundryError

NewServiceInstanceRouteBindingSpaceMismatchError returns a new CloudFoundryError that IsServiceInstanceRouteBindingSpaceMismatchError will return true for

func NewServiceInstanceRouteServiceDisabledError

func NewServiceInstanceRouteServiceDisabledError() CloudFoundryError

NewServiceInstanceRouteServiceDisabledError returns a new CloudFoundryError that IsServiceInstanceRouteServiceDisabledError will return true for

func NewServiceInstanceRouteServiceRequiresDiegoError

func NewServiceInstanceRouteServiceRequiresDiegoError() CloudFoundryError

NewServiceInstanceRouteServiceRequiresDiegoError returns a new CloudFoundryError that IsServiceInstanceRouteServiceRequiresDiegoError will return true for

func NewServiceInstanceRouteServiceURLInvalidError

func NewServiceInstanceRouteServiceURLInvalidError() CloudFoundryError

NewServiceInstanceRouteServiceURLInvalidError returns a new CloudFoundryError that IsServiceInstanceRouteServiceURLInvalidError will return true for

func NewServiceInstanceServicePlanNotAllowedBySpaceQuotaError

func NewServiceInstanceServicePlanNotAllowedBySpaceQuotaError() CloudFoundryError

NewServiceInstanceServicePlanNotAllowedBySpaceQuotaError returns a new CloudFoundryError that IsServiceInstanceServicePlanNotAllowedBySpaceQuotaError will return true for

func NewServiceInstanceServicePlanNotAllowedError

func NewServiceInstanceServicePlanNotAllowedError() CloudFoundryError

NewServiceInstanceServicePlanNotAllowedError returns a new CloudFoundryError that IsServiceInstanceServicePlanNotAllowedError will return true for

func NewServiceInstanceSpaceChangeNotAllowedError

func NewServiceInstanceSpaceChangeNotAllowedError() CloudFoundryError

NewServiceInstanceSpaceChangeNotAllowedError returns a new CloudFoundryError that IsServiceInstanceSpaceChangeNotAllowedError will return true for

func NewServiceInstanceSpaceNotAuthorizedError

func NewServiceInstanceSpaceNotAuthorizedError() CloudFoundryError

NewServiceInstanceSpaceNotAuthorizedError returns a new CloudFoundryError that IsServiceInstanceSpaceNotAuthorizedError will return true for

func NewServiceInstanceSpaceQuotaExceededError

func NewServiceInstanceSpaceQuotaExceededError() CloudFoundryError

NewServiceInstanceSpaceQuotaExceededError returns a new CloudFoundryError that IsServiceInstanceSpaceQuotaExceededError will return true for

func NewServiceInstanceTagsTooLongError

func NewServiceInstanceTagsTooLongError() CloudFoundryError

NewServiceInstanceTagsTooLongError returns a new CloudFoundryError that IsServiceInstanceTagsTooLongError will return true for

func NewServiceInstanceUnshareFailedError

func NewServiceInstanceUnshareFailedError() CloudFoundryError

NewServiceInstanceUnshareFailedError returns a new CloudFoundryError that IsServiceInstanceUnshareFailedError will return true for

func NewServiceInstanceWithInaccessiblePlanNotUpdateableError

func NewServiceInstanceWithInaccessiblePlanNotUpdateableError() CloudFoundryError

NewServiceInstanceWithInaccessiblePlanNotUpdateableError returns a new CloudFoundryError that IsServiceInstanceWithInaccessiblePlanNotUpdateableError will return true for

func NewServiceInvalidError

func NewServiceInvalidError() CloudFoundryError

NewServiceInvalidError returns a new CloudFoundryError that IsServiceInvalidError will return true for

func NewServiceKeyCredentialStoreUnavailableError

func NewServiceKeyCredentialStoreUnavailableError() CloudFoundryError

NewServiceKeyCredentialStoreUnavailableError returns a new CloudFoundryError that IsServiceKeyCredentialStoreUnavailableError will return true for

func NewServiceKeyInvalidError

func NewServiceKeyInvalidError() CloudFoundryError

NewServiceKeyInvalidError returns a new CloudFoundryError that IsServiceKeyInvalidError will return true for

func NewServiceKeyNameTakenError

func NewServiceKeyNameTakenError() CloudFoundryError

NewServiceKeyNameTakenError returns a new CloudFoundryError that IsServiceKeyNameTakenError will return true for

func NewServiceKeyNotFoundError

func NewServiceKeyNotFoundError() CloudFoundryError

NewServiceKeyNotFoundError returns a new CloudFoundryError that IsServiceKeyNotFoundError will return true for

func NewServiceKeyNotSupportedError

func NewServiceKeyNotSupportedError() CloudFoundryError

NewServiceKeyNotSupportedError returns a new CloudFoundryError that IsServiceKeyNotSupportedError will return true for

func NewServiceLabelTakenError

func NewServiceLabelTakenError() CloudFoundryError

NewServiceLabelTakenError returns a new CloudFoundryError that IsServiceLabelTakenError will return true for

func NewServiceNotFoundError

func NewServiceNotFoundError() CloudFoundryError

NewServiceNotFoundError returns a new CloudFoundryError that IsServiceNotFoundError will return true for

func NewServiceNotImplementedError

func NewServiceNotImplementedError() CloudFoundryError

NewServiceNotImplementedError returns a new CloudFoundryError that IsServiceNotImplementedError will return true for

func NewServicePlanInvalidError

func NewServicePlanInvalidError() CloudFoundryError

NewServicePlanInvalidError returns a new CloudFoundryError that IsServicePlanInvalidError will return true for

func NewServicePlanNameTakenError

func NewServicePlanNameTakenError() CloudFoundryError

NewServicePlanNameTakenError returns a new CloudFoundryError that IsServicePlanNameTakenError will return true for

func NewServicePlanNotFoundError

func NewServicePlanNotFoundError() CloudFoundryError

NewServicePlanNotFoundError returns a new CloudFoundryError that IsServicePlanNotFoundError will return true for

func NewServicePlanNotUpdateableError

func NewServicePlanNotUpdateableError() CloudFoundryError

NewServicePlanNotUpdateableError returns a new CloudFoundryError that IsServicePlanNotUpdateableError will return true for

func NewServicePlanVisibilityAlreadyExistsError

func NewServicePlanVisibilityAlreadyExistsError() CloudFoundryError

NewServicePlanVisibilityAlreadyExistsError returns a new CloudFoundryError that IsServicePlanVisibilityAlreadyExistsError will return true for

func NewServicePlanVisibilityInvalidError

func NewServicePlanVisibilityInvalidError() CloudFoundryError

NewServicePlanVisibilityInvalidError returns a new CloudFoundryError that IsServicePlanVisibilityInvalidError will return true for

func NewServicePlanVisibilityNotFoundError

func NewServicePlanVisibilityNotFoundError() CloudFoundryError

NewServicePlanVisibilityNotFoundError returns a new CloudFoundryError that IsServicePlanVisibilityNotFoundError will return true for

func NewServiceUnavailableError

func NewServiceUnavailableError() CloudFoundryError

NewServiceUnavailableError returns a new CloudFoundryError that IsServiceUnavailableError will return true for

func NewSharedServiceInstanceCannotBeRenamedError

func NewSharedServiceInstanceCannotBeRenamedError() CloudFoundryError

NewSharedServiceInstanceCannotBeRenamedError returns a new CloudFoundryError that IsSharedServiceInstanceCannotBeRenamedError will return true for

func NewSharedServiceInstanceNotDeletableInTargetSpaceError

func NewSharedServiceInstanceNotDeletableInTargetSpaceError() CloudFoundryError

NewSharedServiceInstanceNotDeletableInTargetSpaceError returns a new CloudFoundryError that IsSharedServiceInstanceNotDeletableInTargetSpaceError will return true for

func NewSharedServiceInstanceNotUpdatableInTargetSpaceError

func NewSharedServiceInstanceNotUpdatableInTargetSpaceError() CloudFoundryError

NewSharedServiceInstanceNotUpdatableInTargetSpaceError returns a new CloudFoundryError that IsSharedServiceInstanceNotUpdatableInTargetSpaceError will return true for

func NewSpaceDeleteTimeoutError

func NewSpaceDeleteTimeoutError() CloudFoundryError

NewSpaceDeleteTimeoutError returns a new CloudFoundryError that IsSpaceDeleteTimeoutError will return true for

func NewSpaceDeletionFailedError

func NewSpaceDeletionFailedError() CloudFoundryError

NewSpaceDeletionFailedError returns a new CloudFoundryError that IsSpaceDeletionFailedError will return true for

func NewSpaceInvalidError

func NewSpaceInvalidError() CloudFoundryError

NewSpaceInvalidError returns a new CloudFoundryError that IsSpaceInvalidError will return true for

func NewSpaceNameTakenError

func NewSpaceNameTakenError() CloudFoundryError

NewSpaceNameTakenError returns a new CloudFoundryError that IsSpaceNameTakenError will return true for

func NewSpaceNotFoundError

func NewSpaceNotFoundError() CloudFoundryError

NewSpaceNotFoundError returns a new CloudFoundryError that IsSpaceNotFoundError will return true for

func NewSpaceQuotaDefinitionInvalidError

func NewSpaceQuotaDefinitionInvalidError() CloudFoundryError

NewSpaceQuotaDefinitionInvalidError returns a new CloudFoundryError that IsSpaceQuotaDefinitionInvalidError will return true for

func NewSpaceQuotaDefinitionNameTakenError

func NewSpaceQuotaDefinitionNameTakenError() CloudFoundryError

NewSpaceQuotaDefinitionNameTakenError returns a new CloudFoundryError that IsSpaceQuotaDefinitionNameTakenError will return true for

func NewSpaceQuotaDefinitionNotFoundError

func NewSpaceQuotaDefinitionNotFoundError() CloudFoundryError

NewSpaceQuotaDefinitionNotFoundError returns a new CloudFoundryError that IsSpaceQuotaDefinitionNotFoundError will return true for

func NewSpaceQuotaInstanceLimitExceededError

func NewSpaceQuotaInstanceLimitExceededError() CloudFoundryError

NewSpaceQuotaInstanceLimitExceededError returns a new CloudFoundryError that IsSpaceQuotaInstanceLimitExceededError will return true for

func NewSpaceQuotaInstanceMemoryLimitExceededError

func NewSpaceQuotaInstanceMemoryLimitExceededError() CloudFoundryError

NewSpaceQuotaInstanceMemoryLimitExceededError returns a new CloudFoundryError that IsSpaceQuotaInstanceMemoryLimitExceededError will return true for

func NewSpaceQuotaLogRateLimitExceededError

func NewSpaceQuotaLogRateLimitExceededError() CloudFoundryError

NewSpaceQuotaLogRateLimitExceededError returns a new CloudFoundryError that IsSpaceQuotaLogRateLimitExceededError will return true for

func NewSpaceQuotaMemoryLimitExceededError

func NewSpaceQuotaMemoryLimitExceededError() CloudFoundryError

NewSpaceQuotaMemoryLimitExceededError returns a new CloudFoundryError that IsSpaceQuotaMemoryLimitExceededError will return true for

func NewSpaceQuotaTotalReservedRoutePortsExceededError

func NewSpaceQuotaTotalReservedRoutePortsExceededError() CloudFoundryError

NewSpaceQuotaTotalReservedRoutePortsExceededError returns a new CloudFoundryError that IsSpaceQuotaTotalReservedRoutePortsExceededError will return true for

func NewSpaceQuotaTotalRoutesExceededError

func NewSpaceQuotaTotalRoutesExceededError() CloudFoundryError

NewSpaceQuotaTotalRoutesExceededError returns a new CloudFoundryError that IsSpaceQuotaTotalRoutesExceededError will return true for

func NewSpaceRolesDeletionFailedError

func NewSpaceRolesDeletionFailedError() CloudFoundryError

NewSpaceRolesDeletionFailedError returns a new CloudFoundryError that IsSpaceRolesDeletionFailedError will return true for

func NewSpaceRolesDeletionTimeoutError

func NewSpaceRolesDeletionTimeoutError() CloudFoundryError

NewSpaceRolesDeletionTimeoutError returns a new CloudFoundryError that IsSpaceRolesDeletionTimeoutError will return true for

func NewSpaceUserNotInOrgError

func NewSpaceUserNotInOrgError() CloudFoundryError

NewSpaceUserNotInOrgError returns a new CloudFoundryError that IsSpaceUserNotInOrgError will return true for

func NewStackInvalidError

func NewStackInvalidError() CloudFoundryError

NewStackInvalidError returns a new CloudFoundryError that IsStackInvalidError will return true for

func NewStackNameTakenError

func NewStackNameTakenError() CloudFoundryError

NewStackNameTakenError returns a new CloudFoundryError that IsStackNameTakenError will return true for

func NewStackNotFoundError

func NewStackNotFoundError() CloudFoundryError

NewStackNotFoundError returns a new CloudFoundryError that IsStackNotFoundError will return true for

func NewStagerError

func NewStagerError() CloudFoundryError

NewStagerError returns a new CloudFoundryError that IsStagerError will return true for

func NewStagerUnavailableError

func NewStagerUnavailableError() CloudFoundryError

NewStagerUnavailableError returns a new CloudFoundryError that IsStagerUnavailableError will return true for

func NewStagingBackendInvalidError

func NewStagingBackendInvalidError() CloudFoundryError

NewStagingBackendInvalidError returns a new CloudFoundryError that IsStagingBackendInvalidError will return true for

func NewStagingError

func NewStagingError() CloudFoundryError

NewStagingError returns a new CloudFoundryError that IsStagingError will return true for

func NewStagingInProgressError

func NewStagingInProgressError() CloudFoundryError

NewStagingInProgressError returns a new CloudFoundryError that IsStagingInProgressError will return true for

func NewStagingTimeExpiredError

func NewStagingTimeExpiredError() CloudFoundryError

NewStagingTimeExpiredError returns a new CloudFoundryError that IsStagingTimeExpiredError will return true for

func NewStatsError

func NewStatsError() CloudFoundryError

NewStatsError returns a new CloudFoundryError that IsStatsError will return true for

func NewStatsUnavailableError

func NewStatsUnavailableError() CloudFoundryError

NewStatsUnavailableError returns a new CloudFoundryError that IsStatsUnavailableError will return true for

func NewStopDisabledDuringDeploymentError

func NewStopDisabledDuringDeploymentError() CloudFoundryError

NewStopDisabledDuringDeploymentError returns a new CloudFoundryError that IsStopDisabledDuringDeploymentError will return true for

func NewTaskError

func NewTaskError() CloudFoundryError

NewTaskError returns a new CloudFoundryError that IsTaskError will return true for

func NewTaskWorkersUnavailableError

func NewTaskWorkersUnavailableError() CloudFoundryError

NewTaskWorkersUnavailableError returns a new CloudFoundryError that IsTaskWorkersUnavailableError will return true for

func NewTotalPrivateDomainsExceededError

func NewTotalPrivateDomainsExceededError() CloudFoundryError

NewTotalPrivateDomainsExceededError returns a new CloudFoundryError that IsTotalPrivateDomainsExceededError will return true for

func NewUAAEndpointDisabledError

func NewUAAEndpointDisabledError() CloudFoundryError

NewUAAEndpointDisabledError returns a new CloudFoundryError that IsUAAEndpointDisabledError will return true for

func NewUAAIDTakenError

func NewUAAIDTakenError() CloudFoundryError

NewUAAIDTakenError returns a new CloudFoundryError that IsUAAIDTakenError will return true for

func NewUAAUnavailableError

func NewUAAUnavailableError() CloudFoundryError

NewUAAUnavailableError returns a new CloudFoundryError that IsUAAUnavailableError will return true for

func NewUnableToDeleteError

func NewUnableToDeleteError() CloudFoundryError

NewUnableToDeleteError returns a new CloudFoundryError that IsUnableToDeleteError will return true for

func NewUnableToPerformError

func NewUnableToPerformError() CloudFoundryError

NewUnableToPerformError returns a new CloudFoundryError that IsUnableToPerformError will return true for

func NewUnbindableServiceError

func NewUnbindableServiceError() CloudFoundryError

NewUnbindableServiceError returns a new CloudFoundryError that IsUnbindableServiceError will return true for

func NewUnprocessableEntityError

func NewUnprocessableEntityError() CloudFoundryError

NewUnprocessableEntityError returns a new CloudFoundryError that IsUnprocessableEntityError will return true for

func NewUserInvalidError

func NewUserInvalidError() CloudFoundryError

NewUserInvalidError returns a new CloudFoundryError that IsUserInvalidError will return true for

func NewUserIsInMultipleOriginsError

func NewUserIsInMultipleOriginsError() CloudFoundryError

NewUserIsInMultipleOriginsError returns a new CloudFoundryError that IsUserIsInMultipleOriginsError will return true for

func NewUserNotFoundError

func NewUserNotFoundError() CloudFoundryError

NewUserNotFoundError returns a new CloudFoundryError that IsUserNotFoundError will return true for

func NewUserProvidedServiceInstanceHandlerNeededError

func NewUserProvidedServiceInstanceHandlerNeededError() CloudFoundryError

NewUserProvidedServiceInstanceHandlerNeededError returns a new CloudFoundryError that IsUserProvidedServiceInstanceHandlerNeededError will return true for

func NewUserProvidedServiceInstanceNotFoundError

func NewUserProvidedServiceInstanceNotFoundError() CloudFoundryError

NewUserProvidedServiceInstanceNotFoundError returns a new CloudFoundryError that IsUserProvidedServiceInstanceNotFoundError will return true for

func NewUserWithOriginNotFoundError

func NewUserWithOriginNotFoundError() CloudFoundryError

NewUserWithOriginNotFoundError returns a new CloudFoundryError that IsUserWithOriginNotFoundError will return true for

func NewVolumeMountServiceDisabledError

func NewVolumeMountServiceDisabledError() CloudFoundryError

NewVolumeMountServiceDisabledError returns a new CloudFoundryError that IsVolumeMountServiceDisabledError will return true for

func (CloudFoundryError) Error

func (e CloudFoundryError) Error() string

type CloudFoundryErrors

type CloudFoundryErrors struct {
	Errors []CloudFoundryError `json:"errors"`
}

func (CloudFoundryErrors) Error

func (e CloudFoundryErrors) Error() string

type CloudFoundryHTTPError

type CloudFoundryHTTPError struct {
	StatusCode int
	Status     string
	Body       []byte
}

func (CloudFoundryHTTPError) Error

func (e CloudFoundryHTTPError) Error() string

type CreatedBy

type CreatedBy struct {
	GUID  string `json:"guid"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

type Deployment

type Deployment struct {
	Status          DeploymentStatus   `json:"status"`
	Strategy        string             `json:"strategy"`
	Droplet         Relationship       `json:"droplet"`
	PreviousDroplet Relationship       `json:"previous_droplet"`
	NewProcesses    []ProcessReference `json:"new_processes"`
	Revision        DeploymentRevision `json:"revision"`
	Metadata        *Metadata          `json:"metadata"`
	Relationships   AppRelationship    `json:"relationships"`
	Resource        `json:",inline"`
}

type DeploymentCreate

type DeploymentCreate struct {
	Relationships AppRelationship     `json:"relationships"`
	Droplet       *Relationship       `json:"droplet,omitempty"`
	Revision      *DeploymentRevision `json:"revision,omitempty"`
	Strategy      string              `json:"strategy,omitempty"`
	Metadata      *Metadata           `json:"metadata,omitempty"`
}

func NewDeploymentCreate

func NewDeploymentCreate(appGUID string) *DeploymentCreate

type DeploymentList

type DeploymentList struct {
	Pagination Pagination    `json:"pagination"`
	Resources  []*Deployment `json:"resources"`
}

type DeploymentRevision

type DeploymentRevision struct {
	GUID    string `json:"guid"`
	Version *int   `json:"version,omitempty"`
}

type DeploymentStatus

type DeploymentStatus struct {
	Value   string            `json:"value"`
	Reason  string            `json:"reason"`
	Details map[string]string `json:"details"`
}

type DeploymentUpdate

type DeploymentUpdate struct {
	Metadata *Metadata `json:"metadata"`
}

type DetectedBuildpack

type DetectedBuildpack struct {
	Name          string `json:"name"`           // system buildpack name
	BuildpackName string `json:"buildpack_name"` // name reported by the buildpack
	DetectOutput  string `json:"detect_output"`  // output during detect process
	Version       string `json:"version"`
}

type DockerCredentials

type DockerCredentials struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

type DockerPackage

type DockerPackage struct {
	Image string `json:"image"`
	*DockerCredentials
}

type Domain

type Domain struct {
	Name               string              `json:"name"`
	Internal           bool                `json:"internal"`
	RouterGroup        *Relationship       `json:"router_group"`
	SupportedProtocols []string            `json:"supported_protocols"`
	Relationships      DomainRelationships `json:"relationships"`
	Metadata           *Metadata           `json:"metadata"`
	Resource           `json:",inline"`
}

type DomainCreate

type DomainCreate struct {
	Name string `json:"name"`

	Internal      *bool                `json:"internal,omitempty"`
	RouterGroup   *Relationship        `json:"router_group,omitempty"`
	Relationships *DomainRelationships `json:"relationships,omitempty"`
	Metadata      *Metadata            `json:"metadata,omitempty"`
}

func NewDomainCreate

func NewDomainCreate(name string) *DomainCreate

type DomainList

type DomainList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Domain  `json:"resources"`
}

type DomainRelationships

type DomainRelationships struct {
	Organization        *ToOneRelationship   `json:"organization,omitempty"`
	SharedOrganizations *ToManyRelationships `json:"shared_organizations,omitempty"`
}

type DomainUpdate

type DomainUpdate struct {
	Metadata *Metadata `json:"metadata"`
}

type DomainsQuota

type DomainsQuota struct {
	// The maximum number of domains that can be associated with an organization.
	TotalDomains *int `json:"total_domains"`
}

type Droplet

type Droplet struct {
	State             DropletState      `json:"state"`
	Error             *string           `json:"error"`
	Lifecycle         Lifecycle         `json:"lifecycle"`
	ExecutionMetadata string            `json:"execution_metadata"`
	ProcessTypes      map[string]string `json:"process_types"`
	Metadata          *Metadata         `json:"metadata"`
	Relationships     AppRelationship   `json:"relationships"`

	// Only specified when the droplet is using the Docker lifecycle.
	Image *string `json:"image"`

	// The following fields are specified when the droplet is using
	// the buildpack lifecycle.
	Checksum struct {
		Type  string `json:"type"`
		Value string `json:"value"`
	} `json:"checksum"`
	Stack      string              `json:"stack"`
	Buildpacks []DetectedBuildpack `json:"buildpacks"`
	Resource   `json:",inline"`
}

Droplet is the result of staging an application package. There are two types (lifecycles) of droplets: buildpack and docker. In the case of buildpacks, the droplet contains the bits produced by the buildpack.

type DropletCopy

type DropletCopy struct {
	Relationships AppRelationship `json:"relationships"`
}

func NewDropletCopy

func NewDropletCopy(appGUID string) *DropletCopy

type DropletCreate

type DropletCreate struct {
	Relationships AppRelationship   `json:"relationships"`
	ProcessTypes  map[string]string `json:"process_types"`
}

func NewDropletCreate

func NewDropletCreate(appGUID string) *DropletCreate

type DropletCurrent

type DropletCurrent struct {
	Data  Relationship    `json:"data"`
	Links map[string]Link `json:"links"`
}

type DropletList

type DropletList struct {
	Pagination Pagination `json:"pagination,omitempty"`
	Resources  []*Droplet `json:"resources,omitempty"`
}

type DropletState

type DropletState string

type DropletUpdate

type DropletUpdate struct {
	Metadata Metadata `json:"metadata,omitempty"`
	Image    string   `json:"image"`
}

type EnvVar

type EnvVar struct {
	Var map[string]*string `json:"var"`
}

type EnvVarGroup

type EnvVarGroup struct {
	UpdatedAt time.Time         `json:"updated_at"`
	Name      string            `json:"name"` // The name of the group; can only be running or staging
	Var       map[string]string `json:"var"`
	Links     map[string]Link   `json:"links"`
}

type EnvVarGroupUpdate

type EnvVarGroupUpdate struct {
	Var map[string]string `json:"var"`
}

type EnvVarResponse

type EnvVarResponse struct {
	EnvVar
	Links map[string]Link `json:"links"`
}

type FeatureFlag

type FeatureFlag struct {
	Name      string    `json:"name"`    // The name of the feature flag
	Enabled   bool      `json:"enabled"` // Whether the feature flag is enabled
	UpdatedAt time.Time `json:"updated_at"`

	// The error string returned by the API when a client performs an action disabled by the feature flag
	CustomErrorMessage string `json:"custom_error_message"`

	Links map[string]Link `json:"links"`
}

type FeatureFlagList

type FeatureFlagList struct {
	Pagination Pagination     `json:"pagination,omitempty"`
	Resources  []*FeatureFlag `json:"resources,omitempty"`
}

type FeatureFlagType

type FeatureFlagType int

FeatureFlagType https://v3-apidocs.cloudfoundry.org/version/3.127.0/index.html#the-feature-flag-object

const (
	FeatureFlagNone FeatureFlagType = iota

	// FeatureFlagAppBitsUpload When enabled, space developers can upload app bits. When disabled,
	// only admin users can upload app bits.
	FeatureFlagAppBitsUpload

	// FeatureFlagAppScaling When enabled, space developers can perform scaling operations
	// (i.e. change memory, disk, log rate, or instances). When disabled, only admins can perform scaling operations.
	FeatureFlagAppScaling

	// FeatureFlagDiegoDocker When enabled, Docker applications are supported by Diego. When disabled,
	// Docker applications will stop running. It will still be possible to stop and delete them and
	// update their configurations.
	FeatureFlagDiegoDocker

	// FeatureFlagEnvVarVisibility When enabled, all users can see their environment variables.
	// When disabled, no users can see environment variables.
	FeatureFlagEnvVarVisibility

	// FeatureFlagHideMarketPlaceFromUnauthenticatedUsers When enabled, service offerings available in
	// the marketplace will be hidden from unauthenticated users. When disabled, unauthenticated users
	// will be able to see the service offerings available in the marketplace.
	FeatureFlagHideMarketPlaceFromUnauthenticatedUsers

	// FeatureFlagPrivateDomainCreation When enabled, an organization manager can create private domains
	// for that organization. When disabled, only admin users can create private domains.
	FeatureFlagPrivateDomainCreation

	// FeatureFlagResourceMatching When enabled, any user can create resource matches. When disabled,
	// the resource match endpoint always returns an empty array of matches. The package upload endpoint
	// will not cache any uploaded packages for resource matching.
	FeatureFlagResourceMatching

	// FeatureFlagRouteCreation When enabled, a space developer can create routes in a space. When disabled,
	// only admin users can create routes.
	FeatureFlagRouteCreation

	// FeatureFlagRouteSharing When enabled, Space Developers can share routes between two spaces (even across orgs!)
	// in which they have the Space Developer role. When disabled, Space Developers cannot share routes between two spaces.
	FeatureFlagRouteSharing

	// FeatureFlagServiceInstanceCreation When enabled, a space developer can create service instances
	// in a space. When disabled, only admin users can create service instances.
	FeatureFlagServiceInstanceCreation

	// FeatureFlagServiceInstanceSharing When enabled, Space Developers can share service instances
	// between two spaces (even across orgs!) in which they have the Space Developer role. When
	// disabled, Space Developers cannot share service instances between two spaces.
	FeatureFlagServiceInstanceSharing

	// FeatureFlagSetRolesByUserName When enabled, Org Managers or Space Managers can add access roles by username.
	// In order for this feature to be enabled the CF operator must:
	// 1. Enable the /ids/users/ endpoint for UAA
	// 2. Create a UAA cloud_controller_username_lookup client with the scim.userids authority
	FeatureFlagSetRolesByUserName

	// FeatureFlagSpaceDeveloperEnvVarVisibility When enabled, space developers can perform a get on the
	// /v2/apps/:guid/env endpoint, and both space developers and space supporters can perform a get on
	// the /v3/apps/:guid/env and /v3/apps/:guid/environment_variables endpoints. When disabled, neither
	// space developers nor space supporters can access these endpoints.
	FeatureFlagSpaceDeveloperEnvVarVisibility

	// FeatureFlagSpaceScopedPrivateBrokerCreation When enabled, space developers can create space scoped
	// private brokers. When disabled, only admin users can create create space scoped private brokers.
	FeatureFlagSpaceScopedPrivateBrokerCreation

	// FeatureFlagTaskCreation When enabled, space developers can create tasks. When disabled,
	// only admin users can create tasks.
	FeatureFlagTaskCreation

	// FeatureFlagUnsetRolesByUsername When enabled, Org Managers or Space Managers can remove access
	// roles by username. In order for this feature to be enabled the CF operator must:
	// 1. Enable the /ids/users/ endpoint for UAA
	// 2. Create a UAA cloud_controller_username_lookup client with the scim.userids authority
	FeatureFlagUnsetRolesByUsername

	// FeatureFlagUserOrgCreation When enabled, any user can create an organization via the API.
	// When disabled, only admin users can create organizations via the API.
	FeatureFlagUserOrgCreation
)

func (FeatureFlagType) String

func (a FeatureFlagType) String() string

type FeatureFlagUpdate

type FeatureFlagUpdate struct {
	Enabled *bool `json:"enabled,omitempty"` // Whether the feature flag is enabled

	// The error string returned by the API when a client performs an action disabled by the feature flag
	CustomErrorMessage *string `json:"custom_error_message,omitempty"`
}

func NewFeatureFlagUpdate

func NewFeatureFlagUpdate() *FeatureFlagUpdate

func (*FeatureFlagUpdate) WithCustomErrorMessage

func (ff *FeatureFlagUpdate) WithCustomErrorMessage(msg string) *FeatureFlagUpdate

func (*FeatureFlagUpdate) WithEnabled

func (ff *FeatureFlagUpdate) WithEnabled(enabled bool) *FeatureFlagUpdate

type IsolationSegment

type IsolationSegment struct {
	Name     string    `json:"name"`
	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type IsolationSegmentCreate

type IsolationSegmentCreate struct {
	Name     string    `json:"name"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

func NewIsolationSegmentCreate

func NewIsolationSegmentCreate(name string) *IsolationSegmentCreate

type IsolationSegmentList

type IsolationSegmentList struct {
	Pagination Pagination          `json:"pagination"`
	Resources  []*IsolationSegment `json:"resources"`
}

type IsolationSegmentRelationship

type IsolationSegmentRelationship struct {
	Data  []Relationship  `json:"data"`
	Links map[string]Link `json:"links"`
}

type IsolationSegmentUpdate

type IsolationSegmentUpdate struct {
	Name     *string   `json:"name,omitempty"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

type Job

type Job struct {
	Operation string              `json:"operation"` // Current desired operation of the job on a model
	State     JobState            `json:"state"`     // State of the job; valid values are PROCESSING, POLLING, COMPLETE, or FAILED
	Errors    []CloudFoundryError `json:"errors"`    // Array of errors that occurred while processing the job
	Warnings  []JobWarning        `json:"warnings"`  // Array of warnings that occurred while processing the job
	Resource  `json:",inline"`
}

type JobState

type JobState string
const (
	JobStateProcessing JobState = "PROCESSING"
	JobStatePolling    JobState = "POLLING"
	JobStateComplete   JobState = "COMPLETE"
	JobStateFailed     JobState = "FAILED"
)

The 3 lifecycle states

type JobWarning

type JobWarning struct {
	Detail string `json:"detail"`
}

type LastOperation

type LastOperation struct {
	Type        string    `json:"type"`
	State       string    `json:"state"`
	Description string    `json:"description,omitempty"`
	UpdatedAt   time.Time `json:"updated_at"`
	CreatedAt   time.Time `json:"created_at"`
}

type Lifecycle

type Lifecycle struct {
	Type          string             `json:"type,omitempty"`
	BuildpackData BuildpackLifecycle `json:"data,omitempty"` // TODO: support other lifecycles
}

type LifecycleType

type LifecycleType int

LifecycleType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#list-apps

const (
	LifecycleNone LifecycleType = iota
	LifecycleBuildpack
	LifecycleDocker
)

func (LifecycleType) String

func (l LifecycleType) String() string
type Link struct {
	Href   string `json:"href"`
	Method string `json:"method,omitempty"`
}

Link is a HATEOAS-style link for apis

type Links map[string]Link

func (Links) Self

func (l Links) Self() Link

type ManifestDiff

type ManifestDiff struct {
	Diff []ManifestDiffItem `json:"diff"`
}

type ManifestDiffItem

type ManifestDiffItem struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Was   string `json:"was,omitempty"`
	Value string `json:"value,omitempty"`
}

type Metadata

type Metadata struct {
	Labels      map[string]*string `json:"labels"`
	Annotations map[string]*string `json:"annotations"`
}

Metadata allows you to tag API resources with information that does not directly affect its functionality.

func NewMetadata

func NewMetadata() *Metadata

NewMetadata creates a new metadata instance

func (*Metadata) Clear

func (m *Metadata) Clear()

Clear automatically calls Remove on all annotations and labels present in the metadata instance

func (*Metadata) RemoveAnnotation

func (m *Metadata) RemoveAnnotation(prefix, key string)

RemoveAnnotation removes an annotation by setting the specified key's value to nil which can then be passed to the API

func (*Metadata) RemoveLabel

func (m *Metadata) RemoveLabel(prefix, key string)

RemoveLabel removes a label by setting the specified key's value to nil which can then be passed to the API

func (*Metadata) SetAnnotation

func (m *Metadata) SetAnnotation(prefix, key string, v string)

SetAnnotation to the metadata instance

The prefix and value are optional and may be an empty string. The key must be at least 1 character in length.

func (*Metadata) SetLabel

func (m *Metadata) SetLabel(prefix, key string, v string)

SetLabel to the metadata instance

The prefix and value are optional and may be an empty string. The key must be at least 1 character in length.

func (*Metadata) WithAnnotation

func (m *Metadata) WithAnnotation(prefix, key string, v string) *Metadata

WithAnnotation is a fluent method alias for SetAnnotation

func (*Metadata) WithLabel

func (m *Metadata) WithLabel(prefix, key string, v string) *Metadata

WithLabel is a fluent method alias for SetLabel

type NullableRelationship

type NullableRelationship struct {
	GUID *string `json:"guid"`
}

type NullableToOneRelationship

type NullableToOneRelationship struct {
	Data *NullableRelationship `json:"data"`
}

type Organization

type Organization struct {
	Name          string            `json:"name"`
	Suspended     *bool             `json:"suspended,omitempty"`
	Relationships QuotaRelationship `json:"relationships,omitempty"`
	Metadata      *Metadata         `json:"metadata,omitempty"`
	Resource      `json:",inline"`
}

type OrganizationCreate

type OrganizationCreate struct {
	Name      string    `json:"name"`
	Suspended *bool     `json:"suspended,omitempty"`
	Metadata  *Metadata `json:"metadata,omitempty"`
}

func NewOrganizationCreate

func NewOrganizationCreate(name string) *OrganizationCreate

type OrganizationList

type OrganizationList struct {
	Pagination Pagination      `json:"pagination,omitempty"`
	Resources  []*Organization `json:"resources,omitempty"`
}

type OrganizationQuota

type OrganizationQuota struct {
	Name string `json:"name"`

	Apps     AppsQuota     `json:"apps"`
	Services ServicesQuota `json:"services"`
	Routes   RoutesQuota   `json:"routes"`
	Domains  DomainsQuota  `json:"domains"`

	Relationships OrganizationQuotaRelationships `json:"relationships"`

	Resource `json:",inline"`
}

type OrganizationQuotaCreateOrUpdate

type OrganizationQuotaCreateOrUpdate struct {
	Name          *string                         `json:"name,omitempty"`
	Apps          *AppsQuota                      `json:"apps,omitempty"`
	Services      *ServicesQuota                  `json:"services,omitempty"`
	Routes        *RoutesQuota                    `json:"routes,omitempty"`
	Domains       *DomainsQuota                   `json:"domains,omitempty"`
	Relationships *OrganizationQuotaRelationships `json:"relationships,omitempty"`
}

func NewOrganizationQuotaCreate

func NewOrganizationQuotaCreate(name string) *OrganizationQuotaCreateOrUpdate

func NewOrganizationQuotaUpdate

func NewOrganizationQuotaUpdate() *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithAppsTotalMemoryInMB

func (*OrganizationQuotaCreateOrUpdate) WithDomains

func (*OrganizationQuotaCreateOrUpdate) WithLogRateLimitInBytesPerSecond

func (q *OrganizationQuotaCreateOrUpdate) WithLogRateLimitInBytesPerSecond(bytes int) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithName

func (*OrganizationQuotaCreateOrUpdate) WithOrganizations

func (q *OrganizationQuotaCreateOrUpdate) WithOrganizations(orgGUIDs ...string) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithPaidServicesAllowed

func (q *OrganizationQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithPerAppTasks

func (*OrganizationQuotaCreateOrUpdate) WithPerProcessMemoryInMB

func (q *OrganizationQuotaCreateOrUpdate) WithPerProcessMemoryInMB(mb int) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithTotalInstances

func (*OrganizationQuotaCreateOrUpdate) WithTotalReservedPorts

func (q *OrganizationQuotaCreateOrUpdate) WithTotalReservedPorts(count int) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithTotalRoutes

func (*OrganizationQuotaCreateOrUpdate) WithTotalServiceInstances

func (q *OrganizationQuotaCreateOrUpdate) WithTotalServiceInstances(count int) *OrganizationQuotaCreateOrUpdate

func (*OrganizationQuotaCreateOrUpdate) WithTotalServiceKeys

type OrganizationQuotaList

type OrganizationQuotaList struct {
	Pagination Pagination           `json:"pagination"`
	Resources  []*OrganizationQuota `json:"resources"`
}

type OrganizationQuotaRelationships

type OrganizationQuotaRelationships struct {
	// A relationship to the organizations where the quota is applied
	Organizations ToManyRelationships `json:"organizations"`
}

type OrganizationRoleType

type OrganizationRoleType int

OrganizationRoleType https://v3-apidocs.cloudfoundry.org/version/3.127.0/index.html#valid-role-types

const (
	OrganizationRoleNone OrganizationRoleType = iota
	OrganizationRoleUser
	OrganizationRoleAuditor
	OrganizationRoleManager
	OrganizationRoleBillingManager
)

func (OrganizationRoleType) String

func (or OrganizationRoleType) String() string

type OrganizationUpdate

type OrganizationUpdate struct {
	Name      string    `json:"name,omitempty"`
	Suspended *bool     `json:"suspended,omitempty"`
	Metadata  *Metadata `json:"metadata,omitempty"`
}

type OrganizationUsageSummary

type OrganizationUsageSummary struct {
	UsageSummary UsageSummary    `json:"usage_summary"`
	Links        map[string]Link `json:"links,omitempty"`
}

type Package

type Package struct {
	Type          string              `json:"type"` // bits or docker
	DataRaw       json.RawMessage     `json:"data"`
	Data          BitsOrDockerPackage `json:"-"` // depends on value of Type
	State         PackageState        `json:"state"`
	Relationships AppRelationship     `json:"relationships"`
	Metadata      *Metadata           `json:"metadata"`
	Resource      `json:",inline"`
}

func (*Package) UnmarshalJSON

func (d *Package) UnmarshalJSON(data []byte) error

type PackageCopy

type PackageCopy struct {
	Relationships AppRelationship `json:"relationships"`
}

func NewPackageCopy

func NewPackageCopy(appGUID string) *PackageCopy

type PackageCreate

type PackageCreate struct {
	Type          string          `json:"type"`
	Relationships AppRelationship `json:"relationships"`
	Data          *DockerPackage  `json:"data,omitempty"`
	Metadata      *Metadata       `json:"metadata,omitempty"`
}

func NewDockerPackageCreate

func NewDockerPackageCreate(appGUID, image, username, password string) *PackageCreate

func NewPackageCreate

func NewPackageCreate(appGUID string) *PackageCreate

type PackageList

type PackageList struct {
	Pagination Pagination `json:"pagination,omitempty"`
	Resources  []*Package `json:"resources,omitempty"`
}

type PackageState

type PackageState string
const (
	PackageStateAwaitingUpload   PackageState = "AWAITING_UPLOAD"
	PackageStateProcessingUpload PackageState = "PROCESSING_UPLOAD"
	PackageStateReady            PackageState = "READY"
	PackageStateFailed           PackageState = "FAILED"
	PackageStateCopying          PackageState = "COPYING"
	PackageStateExpired          PackageState = "EXPIRED"
)

type PackageUpdate

type PackageUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type Pagination

type Pagination struct {
	TotalResults int  `json:"total_results"`
	TotalPages   int  `json:"total_pages"`
	First        Link `json:"first"`
	Last         Link `json:"last"`
	Next         Link `json:"next"`
	Previous     Link `json:"previous"`
}

Pagination is used by the apis to page list results

type Process

type Process struct {
	// Process type; a unique identifier for processes belonging to an app: web, task
	Type string `json:"type"`

	// The command used to start the process; use null to revert to the buildpack-detected or procfile-provided start command
	Command *string `json:"command"`

	// The number of instances to run
	Instances int `json:"instances"`

	// The memory in MB allocated per instance
	MemoryInMB int `json:"memory_in_mb"`

	// The disk in MB allocated per instance
	DiskInMB int `json:"disk_in_mb"`

	// The log rate in bytes per second allocated per instance
	LogRateLimitInBytesPerSecond int `json:"log_rate_limit_in_bytes_per_second"`

	HealthCheck   ProcessHealthCheck   `json:"health_check"`
	Relationships ProcessRelationships `json:"relationships"`

	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type ProcessData

type ProcessData struct {
	// The duration in seconds that health checks can fail before the process is restarted
	Timeout *int `json:"timeout"`

	// The timeout in seconds for individual health check requests for http and port health checks
	InvocationTimeout *int `json:"invocation_timeout,omitempty"`

	// The endpoint called to determine if the app is healthy; this key is only present for http health check
	Endpoint *string `json:"endpoint,omitempty"`
}

type ProcessHealthCheck

type ProcessHealthCheck struct {
	// The type of health check to perform; valid values are http, port, and process; default is port
	Type string      `json:"type"`
	Data ProcessData `json:"data"`
}

type ProcessList

type ProcessList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Process `json:"resources"`
}

type ProcessReference

type ProcessReference struct {
	GUID string `json:"guid"`
	Type string `json:"type"`
}

type ProcessRelationships

type ProcessRelationships struct {
	App      ToOneRelationship `json:"app"`      // The app the process belongs to
	Revision ToOneRelationship `json:"revision"` // The app revision the process is currently running
}

type ProcessScale

type ProcessScale struct {
	// The number of instances to run
	Instances *int `json:"instances,omitempty"`

	// The memory in MB allocated per instance
	MemoryInMB *int `json:"memory_in_mb,omitempty"`

	// The disk in MB allocated per instance
	DiskInMB *int `json:"disk_in_mb,omitempty"`

	// The log rate in bytes per second allocated per instance
	LogRateLimitInBytesPerSecond *int `json:"log_rate_limit_in_bytes_per_second,omitempty"`
}

func NewProcessScale

func NewProcessScale() *ProcessScale

func (*ProcessScale) WithDiskInMB

func (p *ProcessScale) WithDiskInMB(mb int) *ProcessScale

func (*ProcessScale) WithInstances

func (p *ProcessScale) WithInstances(count int) *ProcessScale

func (*ProcessScale) WithLogRateLimitInBytesPerSecond

func (p *ProcessScale) WithLogRateLimitInBytesPerSecond(rate int) *ProcessScale

func (*ProcessScale) WithMemoryInMB

func (p *ProcessScale) WithMemoryInMB(mb int) *ProcessScale

type ProcessStat

type ProcessStat struct {
	Type                string           `json:"type"`  // Process type; a unique identifier for processes belonging to an app
	Index               int              `json:"index"` // The zero-based index of running instances
	State               string           `json:"state"` // The state of the instance; valid values are RUNNING, CRASHED, STARTING, DOWN
	Usage               Usage            `json:"usage"`
	Host                string           `json:"host"`
	InstancePorts       []map[string]int `json:"instance_ports"`
	Uptime              int              `json:"uptime"`
	MemoryQuota         int              `json:"mem_quota"`
	DiskQuota           int              `json:"disk_quota"`
	FileDescriptorQuota int              `json:"fds_quota"`

	// The current isolation segment that the instance is running on; the value is null when the
	// instance is not placed on a particular isolation segment
	IsolationSegment *string `json:"isolation_segment"`

	// Information about errors placing the instance; the value is null if there are no placement errors
	Details *string `json:"details"`
}

type ProcessStats

type ProcessStats struct {
	Stats []ProcessStat `json:"resources"`
}

type ProcessUpdate

type ProcessUpdate struct {
	Command *string `json:"command"`

	HealthCheck *ProcessHealthCheck `json:"health_check,omitempty"`
	Metadata    *Metadata           `json:"metadata,omitempty"`
}

func NewProcessUpdate

func NewProcessUpdate() *ProcessUpdate

func (*ProcessUpdate) WithCommand

func (p *ProcessUpdate) WithCommand(cmd string) *ProcessUpdate

func (*ProcessUpdate) WithHealthCheckEndpoint

func (p *ProcessUpdate) WithHealthCheckEndpoint(endpoint string) *ProcessUpdate

func (*ProcessUpdate) WithHealthCheckInvocationTimeout

func (p *ProcessUpdate) WithHealthCheckInvocationTimeout(timeout int) *ProcessUpdate

func (*ProcessUpdate) WithHealthCheckTimeout

func (p *ProcessUpdate) WithHealthCheckTimeout(timeout int) *ProcessUpdate

func (*ProcessUpdate) WithHealthCheckType

func (p *ProcessUpdate) WithHealthCheckType(hcType string) *ProcessUpdate

type QuotaRelationship

type QuotaRelationship struct {
	Quota ToOneRelationship `json:"quota"`
}

type Relationship

type Relationship struct {
	GUID string `json:"guid,omitempty"`
}

type Resource

type Resource struct {
	GUID      string    `json:"guid"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	Links     Links     `json:"links,omitempty"`
}

type ResourceMatch

type ResourceMatch struct {
	Checksum ResourceMatchChecksum `json:"checksum"`

	SizeInBytes int    `json:"size_in_bytes"`
	Path        string `json:"path"`
	Mode        string `json:"mode"`
}

type ResourceMatchChecksum

type ResourceMatchChecksum struct {
	Value string `json:"value"`
}

type ResourceMatches

type ResourceMatches struct {
	Resources []ResourceMatch `json:"resources"`
}

type Revision

type Revision struct {
	Version       int               `json:"version"`
	Droplet       Relationship      `json:"droplet"`
	Processes     RevisionProcesses `json:"processes"`
	Sidecars      []RevisionSidecar `json:"sidecars"`
	Description   string            `json:"description"`
	Deployable    bool              `json:"deployable"`
	Relationships AppRelationship   `json:"relationships"`
	Metadata      *Metadata         `json:"metadata"`
	Resource      `json:",inline"`
}

type RevisionList

type RevisionList struct {
	Pagination Pagination  `json:"pagination"`
	Resources  []*Revision `json:"resources"`
}

type RevisionProcess

type RevisionProcess struct {
	Command string `json:"command"`
}

type RevisionProcesses

type RevisionProcesses struct {
	Web    *RevisionProcess `json:"web,omitempty"`
	Worker *RevisionProcess `json:"worker,omitempty"`
}

type RevisionSidecar

type RevisionSidecar struct {
	Name         string   `json:"name"`
	Command      string   `json:"command"`
	ProcessTypes []string `json:"process_types"`
	MemoryInMB   int      `json:"memory_in_mb"`
}

type RevisionUpdate

type RevisionUpdate struct {
	Metadata *Metadata `json:"metadata"`
}

type Role

type Role struct {
	Type          string                                 `json:"type,omitempty"`
	Relationships RoleSpaceUserOrganizationRelationships `json:"relationships,omitempty"`
	Resource      `json:",inline"`
}

Role implements role object. Roles control access to resources in organizations and spaces. Roles are assigned to users.

type RoleIncludeType

type RoleIncludeType int

RoleIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	RoleIncludeNone RoleIncludeType = iota
	RoleIncludeUser
	RoleIncludeSpace
	RoleIncludeOrganization
)

func (RoleIncludeType) String

func (r RoleIncludeType) String() string

type RoleIncluded

type RoleIncluded struct {
	Users         []*User         `json:"users"`
	Organizations []*Organization `json:"organizations"`
	Spaces        []*Space        `json:"spaces"`
}

type RoleList

type RoleList struct {
	Pagination Pagination    `json:"pagination"`
	Resources  []*Role       `json:"resources"`
	Included   *RoleIncluded `json:"included"`
}

type RoleOrganizationCreate

type RoleOrganizationCreate struct {
	RoleType      string                            `json:"type"`
	Relationships RoleOrganizationUserRelationships `json:"relationships"`
}

func NewRoleOrganizationCreate

func NewRoleOrganizationCreate(orgGUID, userGUID string, roleType OrganizationRoleType) *RoleOrganizationCreate

func NewRoleOrganizationCreateWithUserName

func NewRoleOrganizationCreateWithUserName(orgGUID, userName string, roleType OrganizationRoleType, origin string) *RoleOrganizationCreate

type RoleOrganizationUserRelationships

type RoleOrganizationUserRelationships struct {
	Org  ToOneRelationship `json:"organization"`
	User RoleUserData      `json:"user"`
}

type RoleSpaceCreate

type RoleSpaceCreate struct {
	RoleType      string                     `json:"type"`
	Relationships RoleSpaceUserRelationships `json:"relationships"`
}

func NewRoleSpaceCreate

func NewRoleSpaceCreate(spaceGUID, userGUID string, roleType SpaceRoleType) *RoleSpaceCreate

func NewRoleSpaceCreateWithUserName

func NewRoleSpaceCreateWithUserName(spaceGUID, userName string, roleType SpaceRoleType, origin string) *RoleSpaceCreate

type RoleSpaceUserOrganizationRelationships

type RoleSpaceUserOrganizationRelationships struct {
	Space ToOneRelationship `json:"space"`
	User  ToOneRelationship `json:"user"`
	Org   ToOneRelationship `json:"organization"`
}

type RoleSpaceUserRelationships

type RoleSpaceUserRelationships struct {
	Space ToOneRelationship `json:"space"`
	User  RoleUserData      `json:"user"`
}

type RoleUserData

type RoleUserData struct {
	Data UserData `json:"data"`
}

type RoleWithIncluded

type RoleWithIncluded struct {
	Role
	Included *RoleIncluded `json:"included"`
}

type Root

type Root struct {
	Links RootLinks `json:"links"`
}

Root links to other resources, endpoints, and external services that are relevant to API clients.

type RootAppSSH

type RootAppSSH struct {
	Link
	Meta struct {
		HostKeyFingerprint string `json:"host_key_fingerprint"`
		OauthClient        string `json:"oauth_client"`
	} `json:"meta"`
}

type RootCloudController

type RootCloudController struct {
	Link
	Meta struct {
		Version string `json:"version"`
	} `json:"meta"`
}
type RootLinks struct {
	Self Link `json:"self"`

	CloudControllerV2 RootCloudController `json:"cloud_controller_v2"`
	CloudControllerV3 RootCloudController `json:"cloud_controller_v3"`

	NetworkPolicyV0 Link       `json:"network_policy_v0"`
	NetworkPolicyV1 Link       `json:"network_policy_v1"`
	Login           Link       `json:"login"`
	Uaa             Link       `json:"uaa"`
	Credhub         Link       `json:"credhub"`
	Routing         Link       `json:"routing"`
	Logging         Link       `json:"logging"`
	LogCache        Link       `json:"log_cache"`
	LogStream       Link       `json:"log_stream"`
	AppSSH          RootAppSSH `json:"app_ssh"`
}

type Route

type Route struct {
	Host         string             `json:"host"`
	Path         string             `json:"path"`
	URL          string             `json:"url"`
	Protocol     string             `json:"protocol"`
	Port         *int               `json:"port"`
	Destinations []RouteDestination `json:"destinations"`

	Metadata      *Metadata          `json:"metadata"`
	Relationships RouteRelationships `json:"relationships"`
	Resource      `json:",inline"`
}

type RouteCreate

type RouteCreate struct {
	Relationships RouteRelationships `json:"relationships"`
	Host          *string            `json:"host,omitempty"`
	Path          *string            `json:"path,omitempty"`
	Port          *int               `json:"port"`
	Metadata      *Metadata          `json:"metadata,omitempty"`
}

func NewRouteCreate

func NewRouteCreate(domainGUID, spaceGUID string) *RouteCreate

func NewRouteCreateWithHost

func NewRouteCreateWithHost(domainGUID, spaceGUID, host, path string, port int) *RouteCreate

type RouteDestination

type RouteDestination struct {
	GUID     *string             `json:"guid,omitempty"`
	App      RouteDestinationApp `json:"app"`
	Weight   *int                `json:"weight"`
	Port     *int                `json:"port,omitempty"`
	Protocol *string             `json:"protocol"`
}

type RouteDestinationApp

type RouteDestinationApp struct {
	GUID    *string                     `json:"guid,omitempty"`
	Process *RouteDestinationAppProcess `json:"process,omitempty"`
}

type RouteDestinationAppProcess

type RouteDestinationAppProcess struct {
	Type string `json:"type"`
}

type RouteDestinationInsertOrReplace

type RouteDestinationInsertOrReplace struct {
	GUID     *string             `json:"guid,omitempty"`
	App      RouteDestinationApp `json:"app"`
	Weight   *int                `json:"weight,omitempty"`
	Port     *int                `json:"port,omitempty"`
	Protocol *string             `json:"protocol,omitempty"`
}

func NewRouteDestinationInsertOrReplace

func NewRouteDestinationInsertOrReplace(appGUID string) *RouteDestinationInsertOrReplace

func (*RouteDestinationInsertOrReplace) WithPort

func (*RouteDestinationInsertOrReplace) WithProcessType

func (*RouteDestinationInsertOrReplace) WithProtocol

func (*RouteDestinationInsertOrReplace) WithWeight

type RouteDestinationProtocolUpdate

type RouteDestinationProtocolUpdate struct {
	Protocol *string `json:"protocol"`
}
type RouteDestinationWithLinks struct {
	RouteDestination
	Links map[string]Link `json:"links"`
}

type RouteDestinations

type RouteDestinations struct {
	Destinations []*RouteDestination `json:"destinations"`
	Links        map[string]Link     `json:"links,omitempty"`
}

type RouteDestinationsInsertOrReplace

type RouteDestinationsInsertOrReplace struct {
	Destinations []*RouteDestinationInsertOrReplace `json:"destinations"`
}

type RouteIncludeType

type RouteIncludeType int

RouteIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	RouteIncludeNone RouteIncludeType = iota
	RouteIncludeSpace
	RouteIncludeSpaceOrganization
	RouteIncludeDomain
)

func (RouteIncludeType) String

func (a RouteIncludeType) String() string

type RouteIncluded

type RouteIncluded struct {
	Organizations []*Organization `json:"organizations"`
	Spaces        []*Space        `json:"spaces"`
	Domains       []*Domain       `json:"domains"`
}

type RouteList

type RouteList struct {
	Pagination Pagination     `json:"pagination"`
	Resources  []*Route       `json:"resources"`
	Included   *RouteIncluded `json:"included"`
}

type RouteRelationships

type RouteRelationships struct {
	Space  ToOneRelationship `json:"space"`
	Domain ToOneRelationship `json:"domain"`
}

type RouteSharedSpaceRelationships

type RouteSharedSpaceRelationships struct {
	Data  []Relationship  `json:"data"`
	Links map[string]Link `json:"links"`
}

type RouteUpdate

type RouteUpdate struct {
	Metadata *Metadata `json:"metadata"`
}

type RouteWithIncluded

type RouteWithIncluded struct {
	Route
	Included *RouteIncluded `json:"included"`
}

type RoutesQuota

type RoutesQuota struct {
	// The maximum number of routes permitted within an organization.
	TotalRoutes *int `json:"total_routes"`

	// The maximum number of ports that can be reserved by routes within an organization.
	TotalReservedPorts *int `json:"total_reserved_ports"`
}

type SecurityGroup

type SecurityGroup struct {
	Name            string                       `json:"name"`
	GloballyEnabled SecurityGroupGloballyEnabled `json:"globally_enabled"`
	Rules           []SecurityGroupRule          `json:"rules"`
	Relationships   SecurityGroupsRelationships  `json:"relationships"`
	Resource        `json:",inline"`
}

SecurityGroup implements the security group object. Security groups are collections of egress traffic rules that can be applied to the staging or running state of applications.

type SecurityGroupCreate

type SecurityGroupCreate struct {
	Name            string                         `json:"name"`
	GloballyEnabled *SecurityGroupGloballyEnabled  `json:"globally_enabled,omitempty"`
	Rules           []*SecurityGroupRule           `json:"rules,omitempty"`
	Relationships   map[string]ToManyRelationships `json:"relationships,omitempty"`
}

SecurityGroupCreate implements an object that is passed to Create method

type SecurityGroupGloballyEnabled

type SecurityGroupGloballyEnabled struct {
	Running *bool `json:"running,omitempty"`
	Staging *bool `json:"staging,omitempty"`
}

SecurityGroupGloballyEnabled object controls if the group is applied globally to the lifecycle of all applications

type SecurityGroupList

type SecurityGroupList struct {
	Pagination Pagination       `json:"pagination,omitempty"`
	Resources  []*SecurityGroup `json:"resources,omitempty"`
}

type SecurityGroupRule

type SecurityGroupRule struct {
	Protocol    string  `json:"protocol"`
	Destination string  `json:"destination"`
	Ports       *string `json:"ports,omitempty"`
	Type        *int    `json:"type,omitempty"` // https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-types
	Code        *int    `json:"code,omitempty"` // https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-codes
	Description *string `json:"description,omitempty"`
	Log         *bool   `json:"log,omitempty"`
}

SecurityGroupRule is an object that provide a rule that will be applied by a security group

func NewSecurityGroupRuleAll

func NewSecurityGroupRuleAll(destination string) *SecurityGroupRule

func NewSecurityGroupRuleICMP

func NewSecurityGroupRuleICMP(destination string, icmpType, icmpCode int) *SecurityGroupRule

func NewSecurityGroupRuleTCP

func NewSecurityGroupRuleTCP(destination string, enableLogging bool) *SecurityGroupRule

func NewSecurityGroupRuleUDP

func NewSecurityGroupRuleUDP(destination string) *SecurityGroupRule

func (*SecurityGroupRule) WithDescription

func (sg *SecurityGroupRule) WithDescription(description string) *SecurityGroupRule

func (*SecurityGroupRule) WithPorts

func (sg *SecurityGroupRule) WithPorts(ports string) *SecurityGroupRule

type SecurityGroupUpdate

type SecurityGroupUpdate struct {
	Name            string                        `json:"name,omitempty"`
	GloballyEnabled *SecurityGroupGloballyEnabled `json:"globally_enabled,omitempty"`
	Rules           []*SecurityGroupRule          `json:"rules,omitempty"`
}

SecurityGroupUpdate implements an object that is passed to Update method

type SecurityGroupsRelationships

type SecurityGroupsRelationships struct {
	StagingSpaces ToManyRelationships `json:"staging_spaces"`
	RunningSpaces ToManyRelationships `json:"running_spaces"`
}

type ServiceBroker

type ServiceBroker struct {
	Name          string            `json:"name"`
	URL           string            `json:"url"`
	Relationships SpaceRelationship `json:"relationships"`
	Metadata      *Metadata         `json:"metadata"`
	Resource      `json:",inline"`
}

type ServiceBrokerBasicAuthCredentials

type ServiceBrokerBasicAuthCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ServiceBrokerCreate

type ServiceBrokerCreate struct {
	Name           string                   `json:"name"`
	URL            string                   `json:"url"`
	Authentication ServiceBrokerCredentials `json:"authentication"`

	Relationships *SpaceRelationship `json:"relationships,omitempty"`
	Metadata      *Metadata          `json:"metadata,omitempty"`
}

func NewServiceBrokerCreate

func NewServiceBrokerCreate(name, url, username, password string) *ServiceBrokerCreate

func (*ServiceBrokerCreate) WithSpace

func (s *ServiceBrokerCreate) WithSpace(guid string) *ServiceBrokerCreate

type ServiceBrokerCredentials

type ServiceBrokerCredentials struct {
	Type        string                            `json:"type"` // basic
	Credentials ServiceBrokerBasicAuthCredentials `json:"credentials"`
}

type ServiceBrokerList

type ServiceBrokerList struct {
	Pagination Pagination       `json:"pagination"`
	Resources  []*ServiceBroker `json:"resources"`
}

type ServiceBrokerRelationship

type ServiceBrokerRelationship struct {
	ServiceBroker ToOneRelationship `json:"service_broker"`
}

type ServiceBrokerUpdate

type ServiceBrokerUpdate struct {
	Name           *string                   `json:"name,omitempty"`
	URL            *string                   `json:"url,omitempty"`
	Authentication *ServiceBrokerCredentials `json:"authentication,omitempty"`
	Metadata       *Metadata                 `json:"metadata,omitempty"`
}

func NewServiceBrokerUpdate

func NewServiceBrokerUpdate() *ServiceBrokerUpdate

func (*ServiceBrokerUpdate) WithCredentials

func (s *ServiceBrokerUpdate) WithCredentials(username, password string) *ServiceBrokerUpdate

func (*ServiceBrokerUpdate) WithName

func (s *ServiceBrokerUpdate) WithName(name string) *ServiceBrokerUpdate

func (*ServiceBrokerUpdate) WithURL

type ServiceCredentialBinding

type ServiceCredentialBinding struct {
	Name          *string       `json:"name"`
	Type          string        `json:"type"`
	LastOperation LastOperation `json:"last_operation"`
	Metadata      *Metadata     `json:"metadata"`

	Relationships ServiceCredentialBindingRelationships `json:"relationships"`
	Resource      `json:",inline"`
}

ServiceCredentialBinding implements the service credential binding object a credential binding can be a binding between apps and a service instance or a service key

type ServiceCredentialBindingCreate

type ServiceCredentialBindingCreate struct {
	Type          string                                `json:"type"`          // Type of the service credential binding. Valid values are key and app
	Relationships ServiceCredentialBindingRelationships `json:"relationships"` // The service instance to be bound

	Name       *string          `json:"name,omitempty"`       // Name of the service credential binding. name is optional when the type is app
	Parameters *json.RawMessage `json:"parameters,omitempty"` // A JSON object that is passed to the service broker
	Metadata   *Metadata        `json:"metadata,omitempty"`
}

func NewServiceCredentialBindingCreateApp

func NewServiceCredentialBindingCreateApp(serviceInstanceGUID, appGUID string) *ServiceCredentialBindingCreate

func NewServiceCredentialBindingCreateKey

func NewServiceCredentialBindingCreateKey(serviceInstanceGUID, bindingName string) *ServiceCredentialBindingCreate

func (*ServiceCredentialBindingCreate) WithJSONParameters

func (s *ServiceCredentialBindingCreate) WithJSONParameters(jsonParams string) *ServiceCredentialBindingCreate

func (*ServiceCredentialBindingCreate) WithName

type ServiceCredentialBindingDetails

type ServiceCredentialBindingDetails struct {
	Credentials    map[string]any `json:"credentials,omitempty"`
	SyslogDrainURL string         `json:"syslog_drain_url,omitempty"`
	VolumeMounts   []string       `json:"volume_mounts,omitempty"`
}

type ServiceCredentialBindingIncludeType

type ServiceCredentialBindingIncludeType int

ServiceCredentialBindingIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	ServiceCredentialBindingIncludeNone ServiceCredentialBindingIncludeType = iota
	ServiceCredentialBindingIncludeApp
	ServiceCredentialBindingIncludeServiceInstance
)

func (ServiceCredentialBindingIncludeType) String

type ServiceCredentialBindingIncluded

type ServiceCredentialBindingIncluded struct {
	Apps             []*App             `json:"apps"`
	ServiceInstances []*ServiceInstance `json:"service_instances"`
}

type ServiceCredentialBindingList

type ServiceCredentialBindingList struct {
	Pagination Pagination                        `json:"pagination"`
	Resources  []*ServiceCredentialBinding       `json:"resources"`
	Included   *ServiceCredentialBindingIncluded `json:"included"`
}

type ServiceCredentialBindingRelationships

type ServiceCredentialBindingRelationships struct {
	App             *ToOneRelationship `json:"app,omitempty"`
	ServiceInstance *ToOneRelationship `json:"service_instance,omitempty"`
}

type ServiceCredentialBindingUpdate

type ServiceCredentialBindingUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type ServiceCredentialBindingWithIncluded

type ServiceCredentialBindingWithIncluded struct {
	ServiceCredentialBinding
	Included *ServiceCredentialBindingIncluded `json:"included"`
}

type ServiceInstance

type ServiceInstance struct {
	Name          string                       `json:"name"`
	Tags          []string                     `json:"tags"` // Used by apps to identify service instances; they are shown in the app VCAP_SERVICES env
	Type          string                       `json:"type"` // Either managed or user-provided
	LastOperation LastOperation                `json:"last_operation"`
	Relationships ServiceInstanceRelationships `json:"relationships"`
	Metadata      *Metadata                    `json:"metadata"`

	// Information about the version of this service instance; only shown when type is managed
	MaintenanceInfo *ServiceInstanceMaintenanceInfo `json:"maintenance_info,omitempty"`

	// Whether an upgrade of this service instance is available on the current Service Plan
	// Details are available in the maintenance_info object; Only shown when type is managed
	UpgradeAvailable *bool `json:"upgrade_available,omitempty"`

	// The URL to the service instance dashboard (or null if there is none); only shown when type is managed
	DashboardURL *string `json:"dashboard_url,omitempty"`

	// The URL to the syslog drain (or null if there is none); only shown when type is user provided
	SyslogDrainURL *string `json:"syslog_drain_url,omitempty"`

	// The URL to the route service (or null if there is none); only shown when type is user provided
	RouteServiceURL *string `json:"route_service_url,omitempty"`

	Resource `json:",inline"`
}

type ServiceInstanceList

type ServiceInstanceList struct {
	Pagination Pagination         `json:"pagination"`
	Resources  []*ServiceInstance `json:"resources"`
}

type ServiceInstanceMaintenanceInfo

type ServiceInstanceMaintenanceInfo struct {
	// The current semantic version of this service instance
	// Comparing this version with the version of the Service Plan can be used to determine
	// whether this service instance is up-to-date with the Service Plan
	Version string `json:"version"`

	// A textual explanation associated with this version
	Description string `json:"description,omitempty"`
}

type ServiceInstanceManagedCreate

type ServiceInstanceManagedCreate struct {
	Type          string                       `json:"type"` // Either managed or user-provided
	Name          string                       `json:"name"`
	Relationships ServiceInstanceRelationships `json:"relationships"`
	Metadata      *Metadata                    `json:"metadata,omitempty"`
	Parameters    *json.RawMessage             `json:"parameters,omitempty"` // A JSON object that is passed to the service broker
	Tags          []string                     `json:"tags,omitempty"`
}

func NewServiceInstanceCreateManaged

func NewServiceInstanceCreateManaged(name, spaceGUID, servicePlanGUID string) *ServiceInstanceManagedCreate

func (*ServiceInstanceManagedCreate) WithParameters

func (*ServiceInstanceManagedCreate) WithTags

type ServiceInstanceManagedUpdate

type ServiceInstanceManagedUpdate struct {
	Name            *string                         `json:"name,omitempty"`
	Relationships   *ServiceInstanceRelationships   `json:"relationships,omitempty"`
	MaintenanceInfo *ServiceInstanceMaintenanceInfo `json:"maintenance_info,omitempty"`
	Parameters      *json.RawMessage                `json:"parameters,omitempty"` // A JSON object that is passed to the service broker
	Tags            []string                        `json:"tags"`
	Metadata        *Metadata                       `json:"metadata,omitempty"`
}

func NewServiceInstanceManagedUpdate

func NewServiceInstanceManagedUpdate() *ServiceInstanceManagedUpdate

func (*ServiceInstanceManagedUpdate) WithMaintenanceInfo

func (u *ServiceInstanceManagedUpdate) WithMaintenanceInfo(version, description string) *ServiceInstanceManagedUpdate

func (*ServiceInstanceManagedUpdate) WithName

func (*ServiceInstanceManagedUpdate) WithParameters

func (*ServiceInstanceManagedUpdate) WithServicePlan

func (u *ServiceInstanceManagedUpdate) WithServicePlan(servicePlanGUID string) *ServiceInstanceManagedUpdate

func (*ServiceInstanceManagedUpdate) WithTags

type ServiceInstanceRelationships

type ServiceInstanceRelationships struct {
	// The service plan the service instance relates to; only shown when type is managed
	ServicePlan *ToOneRelationship `json:"service_plan,omitempty"`

	// The space the service instance is contained in
	Space *ToOneRelationship `json:"space,omitempty"`
}

type ServiceInstanceSharedSpaceRelationships

type ServiceInstanceSharedSpaceRelationships struct {
	Data  []Relationship  `json:"data"`
	Links map[string]Link `json:"links,omitempty"`
}

type ServiceInstanceSpaceUsageSummary

type ServiceInstanceSpaceUsageSummary struct {
	Space         Relationship `json:"space"`
	BoundAppCount int          `json:"bound_app_count"`
}

type ServiceInstanceUsageSummary

type ServiceInstanceUsageSummary struct {
	UsageSummary []ServiceInstanceSpaceUsageSummary `json:"usage_summary"`
	Links        map[string]Link                    `json:"links,omitempty"`
}

type ServiceInstanceUserPermissions

type ServiceInstanceUserPermissions struct {
	Read   bool `json:"read"`
	Manage bool `json:"manage"`
}

type ServiceInstanceUserProvidedCreate

type ServiceInstanceUserProvidedCreate struct {
	Type            string                       `json:"type"` // Either managed or user-provided
	Name            string                       `json:"name"`
	Relationships   ServiceInstanceRelationships `json:"relationships"`
	Metadata        *Metadata                    `json:"metadata,omitempty"`
	Credentials     *json.RawMessage             `json:"credentials,omitempty"` // A JSON object
	SyslogDrainURL  *string                      `json:"syslog_drain_url,omitempty"`
	RouteServiceURL *string                      `json:"route_service_url,omitempty"`
	Tags            []string                     `json:"tags,omitempty"`
}

func NewServiceInstanceCreateUserProvided

func NewServiceInstanceCreateUserProvided(name, spaceGUID string) *ServiceInstanceUserProvidedCreate

func (*ServiceInstanceUserProvidedCreate) WithCredentials

func (*ServiceInstanceUserProvidedCreate) WithRouteServiceURL

func (*ServiceInstanceUserProvidedCreate) WithSyslogDrainURL

func (*ServiceInstanceUserProvidedCreate) WithTags

type ServiceInstanceUserProvidedUpdate

type ServiceInstanceUserProvidedUpdate struct {
	Name            *string          `json:"name,omitempty"`
	SyslogDrainURL  *string          `json:"syslog_drain_url"`
	RouteServiceURL *string          `json:"route_service_url"`
	Credentials     *json.RawMessage `json:"credentials,omitempty"` // A JSON object
	Tags            []string         `json:"tags"`
	Metadata        *Metadata        `json:"metadata,omitempty"`
}

func NewServiceInstanceUserProvidedUpdate

func NewServiceInstanceUserProvidedUpdate() *ServiceInstanceUserProvidedUpdate

func (*ServiceInstanceUserProvidedUpdate) WithCredentials

func (*ServiceInstanceUserProvidedUpdate) WithName

func (*ServiceInstanceUserProvidedUpdate) WithRouteServiceURL

func (*ServiceInstanceUserProvidedUpdate) WithSyslogDrainURL

func (*ServiceInstanceUserProvidedUpdate) WithTags

type ServiceOffering

type ServiceOffering struct {
	Name        string   `json:"name"`        // Name of the service offering
	Description string   `json:"description"` // Description of the service offering
	Available   bool     `json:"available"`   // Whether the service offering is available
	Tags        []string `json:"tags"`        // Descriptive tags for the service offering

	// A list of permissions that the user would have to give the service, if they provision it;
	// the only permissions currently supported are syslog_drain, route_forwarding and volume_mount
	Requires []string `json:"requires"`

	// Whether service Instances of this service offering can be shared across organizations and spaces
	Shareable bool `json:"shareable"`

	// URL that points to a documentation page for the service offering,
	// if provided by the service broker as part of the metadata field
	DocumentationURL string `json:"documentation_url"`

	// This object contains information obtained from the service broker catalog
	BrokerCatalog ServiceOfferingBrokerCatalog `json:"broker_catalog"`

	Relationships ServiceBrokerRelationship `json:"relationships"`
	Metadata      *Metadata                 `json:"metadata"`
	Resource      `json:",inline"`
}

ServiceOffering represent the services offered by service brokers

type ServiceOfferingBrokerCatalog

type ServiceOfferingBrokerCatalog struct {
	// The identifier that the service broker provided for this service offering
	ID string `json:"id"`

	// https://github.com/openservicebrokerapi/servicebroker/blob/master/profile.md#service-metadata-fields
	Metadata *json.RawMessage `json:"metadata"`

	Features ServiceOfferingFeatures `json:"features"`
}

type ServiceOfferingFeatures

type ServiceOfferingFeatures struct {
	// Whether the service offering supports upgrade/downgrade for service plans by default; service plans can override this field
	PlanUpdateable bool `json:"plan_updateable"`

	// Specifies whether service Instances of the service can be bound to applications
	Bindable bool `json:"bindable"`

	// Specifies whether the Fetching a service instance endpoint is supported for all service plans
	InstancesRetrievable bool `json:"instances_retrievable"`

	// Specifies whether the Fetching a service binding endpoint is supported for all service plans
	BindingsRetrievable bool `json:"bindings_retrievable"`

	// Specifies whether service instance updates relating only to context are propagated to the service broker
	AllowContextUpdates bool `json:"allow_context_updates"`
}

type ServiceOfferingList

type ServiceOfferingList struct {
	Pagination Pagination         `json:"pagination"`
	Resources  []*ServiceOffering `json:"resources"`
}

type ServiceOfferingUpdate

type ServiceOfferingUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type ServicePlan

type ServicePlan struct {
	Name        string `json:"name"`
	Description string `json:"description"`

	// the visibility of the plan; can be public, admin, organization
	VisibilityType string `json:"visibility_type"`

	// Whether the service plan is available
	Available bool `json:"available"`

	// Whether the service plan is free of charge
	Free bool `json:"free"`

	// The cost of the service plan as obtained from the service broker catalog
	Costs []ServicePlanCosts `json:"costs"`

	// Information about the version of this service plan
	MaintenanceInfo ServicePlanMaintenanceInfo `json:"maintenance_info"`

	// This object contains information obtained from the service broker catalog
	BrokerCatalog ServicePlanBrokerCatalog `json:"broker_catalog"`

	// Schema definitions for service instances and service bindings for the service plan
	Schemas ServicePlanSchemas `json:"schemas"`

	// The service offering that this service plan relates to
	Relationships ServicePlanRelationship `json:"relationships"`

	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type ServicePlanBrokerCatalog

type ServicePlanBrokerCatalog struct {
	// The identifier that the service broker provided for this service plan
	ID string `json:"id"`

	// Additional information provided by the service broker as specified by OSBAPI
	// https://github.com/openservicebrokerapi/servicebroker/blob/master/profile.md#plan-metadata-fields
	Metadata *json.RawMessage `json:"metadata"`

	// The maximum number of seconds that Cloud Foundry will wait for an asynchronous service broker operation
	MaximumPollingDuration *int `json:"maximum_polling_duration"`

	// Features the service plan supports or not
	Features ServicePlanFeatures `json:"features"`
}

type ServicePlanCosts

type ServicePlanCosts struct {
	// Currency code for the pricing amount, e.g. USD, GBP
	Currency string `json:"currency"`

	// Pricing amount
	Amount float64 `json:"amount"`

	// Display name for type of cost, e.g. Monthly, Hourly, Request, GB
	Unit string `json:"unit"`
}

type ServicePlanFeatures

type ServicePlanFeatures struct {
	// Whether the service plan supports upgrade/downgrade for service plans
	// when the catalog does not specify a value, it is inherited from the service offering
	PlanUpdateable bool `json:"plan_updateable"`

	// Specifies whether service instances of the service can be bound to applications
	Bindable bool `json:"bindable"`
}

type ServicePlanIncludeType

type ServicePlanIncludeType int

ServicePlanIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	ServicePlanIncludeNone ServicePlanIncludeType = iota
	ServicePlanIncludeSpaceOrganization
	ServicePlanIncludeServiceOffering
)

func (ServicePlanIncludeType) String

func (a ServicePlanIncludeType) String() string

type ServicePlanIncluded

type ServicePlanIncluded struct {
	Organizations    []*Organization    `json:"organizations"`
	Spaces           []*Space           `json:"spaces"`
	ServiceOfferings []*ServiceOffering `json:"service_offerings"`
}

type ServicePlanList

type ServicePlanList struct {
	Pagination Pagination           `json:"pagination"`
	Resources  []*ServicePlan       `json:"resources"`
	Included   *ServicePlanIncluded `json:"included"`
}

type ServicePlanMaintenanceInfo

type ServicePlanMaintenanceInfo struct {
	// The current semantic version of the service plan
	// comparing this version with that of a service instance can be used to determine
	// whether the service instance is up-to-date with this service plan
	Version string `json:"version"`

	// A textual explanation associated with this version
	Description string `json:"description"`
}

type ServicePlanRelationship

type ServicePlanRelationship struct {
	ServiceOffering ToOneRelationship `json:"service_offering"`
}

type ServicePlanSchemaCreateOrUpdate

type ServicePlanSchemaCreateOrUpdate struct {
	// The schema definition for the input parameters
	// each input parameter is expressed as a property within a JSON object
	Parameters *json.RawMessage `json:"parameters"`
}

type ServicePlanSchemas

type ServicePlanSchemas struct {
	ServiceInstance ServicePlanServiceInstance `json:"service_instance"`
	ServiceBinding  ServicePlanServiceBinding  `json:"service_binding"`
}

type ServicePlanServiceBinding

type ServicePlanServiceBinding struct {
	// Schema definition for service Binding creation
	Create ServicePlanSchemaCreateOrUpdate `json:"create"`
}

type ServicePlanServiceInstance

type ServicePlanServiceInstance struct {
	// Schema definition for service instance creation
	Create ServicePlanSchemaCreateOrUpdate `json:"create"`

	// Schema definition for service instance update
	Update ServicePlanSchemaCreateOrUpdate `json:"update"`
}

type ServicePlanUpdate

type ServicePlanUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type ServicePlanVisibility

type ServicePlanVisibility struct {
	// Denotes the visibility of the plan; can be public, admin, organization, space
	Type string `json:"type"`

	// List of organizations whose members can access the plan; present if type is organization
	Organizations []ServicePlanVisibilityRelation `json:"organizations,omitempty"`

	// space whose members can access the plan; present if type is space
	Space *ServicePlanVisibilityRelation `json:"space,omitempty"`
}

func NewServicePlanVisibilityUpdate

func NewServicePlanVisibilityUpdate(visibilityType ServicePlanVisibilityType) *ServicePlanVisibility

type ServicePlanVisibilityRelation

type ServicePlanVisibilityRelation struct {
	// org or space GUID
	GUID string `json:"guid"`

	// org or space name, only used in responses
	Name *string `json:"name,omitempty"`
}

type ServicePlanVisibilityType

type ServicePlanVisibilityType int
const (
	ServicePlanVisibilityNone ServicePlanVisibilityType = iota
	ServicePlanVisibilityPublic
	ServicePlanVisibilityAdmin
	ServicePlanVisibilityOrganization
	ServicePlanVisibilitySpace
)

func ParseServicePlanVisibilityType

func ParseServicePlanVisibilityType(visibilityType string) (ServicePlanVisibilityType, error)

func (ServicePlanVisibilityType) String

func (s ServicePlanVisibilityType) String() string

type ServicePlanWithIncluded

type ServicePlanWithIncluded struct {
	ServicePlan
	Included *ServicePlanIncluded `json:"included"`
}

type ServiceRouteBinding

type ServiceRouteBinding struct {
	LastOperation LastOperation `json:"last_operation"`

	// The URL for the route service
	RouteServiceURL string `json:"route_service_url"`

	// The route and service instance that the service route is bound to
	Relationships ServiceRouteBindingRelationships `json:"relationships"`

	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type ServiceRouteBindingCreate

type ServiceRouteBindingCreate struct {
	Relationships ServiceRouteBindingRelationships `json:"relationships"`

	Metadata   *Metadata        `json:"metadata,omitempty"`
	Parameters *json.RawMessage `json:"parameters,omitempty"`
}

func NewServiceRouteBindingCreate

func NewServiceRouteBindingCreate(routeGUID, serviceInstanceGUID string) *ServiceRouteBindingCreate

type ServiceRouteBindingIncludeType

type ServiceRouteBindingIncludeType int

ServiceRouteBindingIncludeType https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#include

const (
	ServiceRouteBindingIncludeNone ServiceRouteBindingIncludeType = iota
	ServiceRouteBindingIncludeRoute
	ServiceRouteBindingIncludeServiceInstance
)

func (ServiceRouteBindingIncludeType) String

type ServiceRouteBindingIncluded

type ServiceRouteBindingIncluded struct {
	Routes           []*Route           `json:"routes"`
	ServiceInstances []*ServiceInstance `json:"service_instances"`
}

type ServiceRouteBindingList

type ServiceRouteBindingList struct {
	Pagination Pagination                   `json:"pagination"`
	Resources  []*ServiceRouteBinding       `json:"resources"`
	Included   *ServiceRouteBindingIncluded `json:"included"`
}

type ServiceRouteBindingRelationships

type ServiceRouteBindingRelationships struct {
	// The service instance that the route is bound to
	ServiceInstance ToOneRelationship `json:"service_instance"`

	// The route that the service instance is bound to
	Route ToOneRelationship `json:"route"`
}

type ServiceRouteBindingUpdate

type ServiceRouteBindingUpdate struct {
	Metadata *Metadata `json:"metadata"`
}

type ServiceRouteBindingWithIncluded

type ServiceRouteBindingWithIncluded struct {
	ServiceRouteBinding
	Included *ServiceRouteBindingIncluded `json:"included"`
}

type ServiceUsage

type ServiceUsage struct {
	// Current state of the service that this event pertains to, if applicable
	State *string `json:"state"`

	// space that this event pertains to, if applicable
	Space ServiceUsageGUIDName `json:"space"`

	// organization that this event pertains to, if applicable
	Organization NullableRelationship `json:"organization"`

	// service instance that this event pertains to, if applicable
	ServiceInstance ServiceUsageGUIDNameType `json:"service_instance"`

	// service plan that this event pertains to, if applicable
	ServicePlan ServiceUsageGUIDName `json:"service_plan"`

	// service offering that this event pertains to, if applicable
	ServiceOffering ServiceUsageGUIDName `json:"service_offering"`

	// service broker that this event pertains to, if applicable
	ServiceBroker ServiceUsageGUIDName `json:"service_broker"`

	Resource `json:",inline"`
}

type ServiceUsageGUIDName

type ServiceUsageGUIDName struct {
	GUID *string `json:"guid"`
	Name *string `json:"name"`
}

type ServiceUsageGUIDNameType

type ServiceUsageGUIDNameType struct {
	GUID *string `json:"guid"`
	Name *string `json:"name"`
	Type *string `json:"type"`
}

type ServiceUsageList

type ServiceUsageList struct {
	Pagination Pagination      `json:"pagination"`
	Resources  []*ServiceUsage `json:"resources"`
}

type ServicesQuota

type ServicesQuota struct {
	// Specifies if instances of paid service plans are permitted to be created.
	PaidServicesAllowed *bool `json:"paid_services_allowed,omitempty"`

	// The maximum number of service instances permitted.
	TotalServiceInstances *int `json:"total_service_instances"`

	// The maximum number of service keys permitted within an organization.
	TotalServiceKeys *int `json:"total_service_keys"`
}

type Sidecar

type Sidecar struct {
	// Human-readable name for the sidecar
	Name string `json:"name"`

	// The command used to start the sidecar
	Command string `json:"command"`

	// A list of process types the sidecar applies to
	ProcessTypes []string `json:"process_types"`

	// Reserved memory for sidecar in MB
	MemoryInMB int `json:"memory_in_mb"`

	// Specifies whether the sidecar was created by the user or via the buildpack
	Origin string `json:"origin"`

	// The app the sidecar is associated with
	Relationships AppRelationship `json:"relationships"`

	Resource `json:",inline"`
}

type SidecarCreate

type SidecarCreate struct {
	// Human-readable name for the sidecar
	Name string `json:"name"`

	// The command used to start the sidecar
	Command string `json:"command"`

	// A list of process types the sidecar applies to
	ProcessTypes []string `json:"process_types"`

	// Reserved memory for sidecar in MB
	MemoryInMB *int `json:"memory_in_mb,omitempty"`
}

func NewSidecarCreate

func NewSidecarCreate(name, command string, processTypes []string) *SidecarCreate

func (*SidecarCreate) WithMemoryInMB

func (s *SidecarCreate) WithMemoryInMB(mb int) *SidecarCreate

type SidecarList

type SidecarList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Sidecar `json:"resources"`
}

type SidecarUpdate

type SidecarUpdate struct {
	// Human-readable name for the sidecar
	Name *string `json:"name,omitempty"`

	// The command used to start the sidecar
	Command *string `json:"command,omitempty"`

	// A list of process types the sidecar applies to
	ProcessTypes []string `json:"process_types,omitempty"`

	// Reserved memory for sidecar in MB
	MemoryInMB *int `json:"memory_in_mb,omitempty"`
}

func NewSidecarUpdate

func NewSidecarUpdate() *SidecarUpdate

func (*SidecarUpdate) WithCommand

func (s *SidecarUpdate) WithCommand(command string) *SidecarUpdate

func (*SidecarUpdate) WithMemoryInMB

func (s *SidecarUpdate) WithMemoryInMB(mb int) *SidecarUpdate

func (*SidecarUpdate) WithName

func (s *SidecarUpdate) WithName(name string) *SidecarUpdate

func (*SidecarUpdate) WithProcessTypes

func (s *SidecarUpdate) WithProcessTypes(processTypes []string) *SidecarUpdate

type Space

type Space struct {
	Name          string              `json:"name"`
	Relationships *SpaceRelationships `json:"relationships"`
	Metadata      *Metadata           `json:"metadata"`
	Resource      `json:",inline"`
}

type SpaceCreate

type SpaceCreate struct {
	Name          string              `json:"name"`
	Relationships *SpaceRelationships `json:"relationships"`
	Metadata      *Metadata           `json:"metadata,omitempty"`
}

func NewSpaceCreate

func NewSpaceCreate(name, orgGUID string) *SpaceCreate

type SpaceFeature

type SpaceFeature struct {
	Name        string `json:"name"`
	Enabled     bool   `json:"enabled"`
	Description string `json:"description"`
}

type SpaceFeatureUpdate

type SpaceFeatureUpdate struct {
	Enabled bool `json:"enabled"`
}

type SpaceIncludeType

type SpaceIncludeType int
const (
	SpaceIncludeNone SpaceIncludeType = iota
	SpaceIncludeOrganization
)

func (SpaceIncludeType) String

func (s SpaceIncludeType) String() string

type SpaceIncluded

type SpaceIncluded struct {
	Organizations []*Organization `json:"organizations"`
}

type SpaceList

type SpaceList struct {
	Pagination Pagination     `json:"pagination"`
	Resources  []*Space       `json:"resources"`
	Included   *SpaceIncluded `json:"included"`
}

type SpaceQuota

type SpaceQuota struct {
	// 	Name of the quota
	Name string `json:"name"`

	// quotas that affect apps
	Apps AppsQuota `json:"apps"`

	// quotas that affect services
	Services ServicesQuota `json:"services"`

	// quotas that affect routes
	Routes RoutesQuota `json:"routes"`

	// relationships to the organization and spaces where the quota belongs
	Relationships SpaceQuotaRelationships `json:"relationships"`

	Resource `json:",inline"`
}

type SpaceQuotaCreateOrUpdate

type SpaceQuotaCreateOrUpdate struct {
	// 	Name of the quota
	Name *string `json:"name,omitempty"`

	// relationships to the organization and spaces where the quota belongs
	Relationships *SpaceQuotaRelationships `json:"relationships,omitempty"`

	// quotas that affect apps
	Apps *AppsQuota `json:"apps,omitempty"`

	// quotas that affect services
	Services *ServicesQuota `json:"services,omitempty"`

	// quotas that affect routes
	Routes *RoutesQuota `json:"routes,omitempty"`
}

func NewSpaceQuotaCreate

func NewSpaceQuotaCreate(name, orgGUID string) *SpaceQuotaCreateOrUpdate

func NewSpaceQuotaUpdate

func NewSpaceQuotaUpdate() *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithLogRateLimitInBytesPerSecond

func (s *SpaceQuotaCreateOrUpdate) WithLogRateLimitInBytesPerSecond(mbps int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithName

func (*SpaceQuotaCreateOrUpdate) WithPaidServicesAllowed

func (s *SpaceQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithPerAppTasks

func (s *SpaceQuotaCreateOrUpdate) WithPerAppTasks(count int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithPerProcessMemoryInMB

func (s *SpaceQuotaCreateOrUpdate) WithPerProcessMemoryInMB(mb int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithSpaces

func (s *SpaceQuotaCreateOrUpdate) WithSpaces(spaceGUIDs ...string) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalInstances

func (s *SpaceQuotaCreateOrUpdate) WithTotalInstances(count int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalMemoryInMB

func (s *SpaceQuotaCreateOrUpdate) WithTotalMemoryInMB(mb int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalReservedPorts

func (s *SpaceQuotaCreateOrUpdate) WithTotalReservedPorts(count int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalRoutes

func (s *SpaceQuotaCreateOrUpdate) WithTotalRoutes(count int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalServiceInstances

func (s *SpaceQuotaCreateOrUpdate) WithTotalServiceInstances(count int) *SpaceQuotaCreateOrUpdate

func (*SpaceQuotaCreateOrUpdate) WithTotalServiceKeys

func (s *SpaceQuotaCreateOrUpdate) WithTotalServiceKeys(count int) *SpaceQuotaCreateOrUpdate

type SpaceQuotaList

type SpaceQuotaList struct {
	Pagination Pagination    `json:"pagination"`
	Resources  []*SpaceQuota `json:"resources"`
}

type SpaceQuotaRelationships

type SpaceQuotaRelationships struct {
	Organization *ToOneRelationship   `json:"organization,omitempty"`
	Spaces       *ToManyRelationships `json:"spaces,omitempty"`
}

type SpaceRelationship

type SpaceRelationship struct {
	Space ToOneRelationship `json:"space"`
}

type SpaceRelationships

type SpaceRelationships struct {
	Organization *ToOneRelationship `json:"organization"`
	Quota        *ToOneRelationship `json:"quota,omitempty"`
}

type SpaceRoleType

type SpaceRoleType int

SpaceRoleType https://v3-apidocs.cloudfoundry.org/version/3.127.0/index.html#valid-role-types

const (
	SpaceRoleNone SpaceRoleType = iota
	SpaceRoleAuditor
	SpaceRoleDeveloper
	SpaceRoleManager
	SpaceRoleSupporter
)

func (SpaceRoleType) String

func (sr SpaceRoleType) String() string

type SpaceUpdate

type SpaceUpdate struct {
	Name     string    `json:"name,omitempty"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

type SpaceWithIncluded

type SpaceWithIncluded struct {
	Space
	Included *SpaceIncluded `json:"included"`
}

type Stack

type Stack struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Metadata    *Metadata `json:"metadata"`
	Resource    `json:",inline"`
}

Stack implements stack object. Stacks are the base operating system and file system that your application will execute in. A stack is how you configure applications to run against different operating systems (like Windows or Linux) and different versions of those operating systems.

type StackCreate

type StackCreate struct {
	Name        string    `json:"name"`
	Description *string   `json:"description,omitempty"`
	Metadata    *Metadata `json:"metadata,omitempty"`
}

type StackList

type StackList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Stack   `json:"resources"`
}

type StackUpdate

type StackUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type Task

type Task struct {
	Name string `json:"name"`

	// User-facing id of the task; this number is unique for every task associated with a given app
	SequenceID int `json:"sequence_id"`

	// Command that will be executed; this field may be excluded based on a user’s role
	Command string `json:"command"`

	// State of the task Possible states are PENDING, RUNNING, SUCCEEDED, CANCELING, and FAILED
	State string `json:"state"`

	// Amount of memory to allocate for the task in MB
	MemoryInMB int `json:"memory_in_mb"`

	// Amount of disk to allocate for the task in MB
	DiskInMB int `json:"disk_in_mb"`

	// Amount of log rate to allocate for the task in bytes
	LogRateLimitInBytesPerSecond int `json:"log_rate_limit_in_bytes_per_second"`

	// Results from the task
	Result TaskResult `json:"result"`

	// The guid of the droplet that will be used to run the command
	DropletGUID string `json:"droplet_guid"`

	// The app the task belongs to
	Relationships AppRelationship `json:"relationships"`

	Metadata *Metadata `json:"metadata"`
	Resource `json:",inline"`
}

type TaskCreate

type TaskCreate struct {
	// Command that will be executed; NOTE: optional if a template.process.guid is provided
	Command *string `json:"command,omitempty"`

	// Name of the task, otherwise auto-generated
	Name *string `json:"name,omitempty"`

	// Amount of memory to allocate for the task in MB
	MemoryInMB *int `json:"memory_in_mb,omitempty"`

	// Amount of disk to allocate for the task in MB
	DiskInMB *int `json:"disk_in_mb,omitempty"`

	// Amount of log rate to allocate for the task in bytes
	LogRateLimitInBytesPerSecond *int `json:"log_rate_limit_in_bytes_per_second,omitempty"`

	// The guid of the droplet that will be used to run the command
	DropletGUID *string `json:"droplet_guid,omitempty"`

	// The process that will be used as a template
	Template *TaskTemplate `json:"template,omitempty"`

	Metadata *Metadata `json:"metadata,omitempty"`
}

func NewTaskCreateWithCommand

func NewTaskCreateWithCommand(command string) *TaskCreate

func NewTaskCreateWithProcessTemplate

func NewTaskCreateWithProcessTemplate(processGUID string) *TaskCreate

func (*TaskCreate) WithDiskInMB

func (t *TaskCreate) WithDiskInMB(mb int) *TaskCreate

func (*TaskCreate) WithDropletGUID

func (t *TaskCreate) WithDropletGUID(dropletGUID string) *TaskCreate

func (*TaskCreate) WithLogRateLimitInBytesPerSecond

func (t *TaskCreate) WithLogRateLimitInBytesPerSecond(mbps int) *TaskCreate

func (*TaskCreate) WithMemoryInMB

func (t *TaskCreate) WithMemoryInMB(mb int) *TaskCreate

func (*TaskCreate) WithName

func (t *TaskCreate) WithName(name string) *TaskCreate

type TaskList

type TaskList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*Task    `json:"resources"`
}

type TaskProcess

type TaskProcess struct {
	// The guid of the process that will be used as a template
	GUID string `json:"guid"`
}

type TaskResult

type TaskResult struct {
	// nil if the task succeeds, contains the error message if it fails
	FailureReason *string `json:"failure_reason"`
}

type TaskTemplate

type TaskTemplate struct {
	Process TaskProcess `json:"process"`
}

type TaskUpdate

type TaskUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type ToManyRelationships

type ToManyRelationships struct {
	Data []Relationship `json:"data"`
}

ToManyRelationships is a relationship to multiple objects

func NewDomainShare

func NewDomainShare(orgGUID string) *ToManyRelationships

func NewToManyRelationships

func NewToManyRelationships(guids []string) *ToManyRelationships

type ToOneRelationship

type ToOneRelationship struct {
	Data *Relationship `json:"data"`
}

ToOneRelationship is a relationship to a single object

type Usage

type Usage struct {
	Time   time.Time `json:"time"`
	CPU    float64   `json:"cpu"`
	Memory int       `json:"mem"`
	Disk   int       `json:"disk"`
}

type UsageSummary

type UsageSummary struct {
	StartedInstances int `json:"started_instances"`
	MemoryInMb       int `json:"memory_in_mb"`
}

type User

type User struct {
	Username         string    `json:"username"`
	PresentationName string    `json:"presentation_name"`
	Origin           string    `json:"origin"`
	Metadata         *Metadata `json:"metadata"`
	Resource         `json:",inline"`
}

User implements the user object

type UserCreate

type UserCreate struct {
	GUID     string    `json:"guid"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

UserCreate is used to create a new user in the Cloud Controller database

Creating a user requires one value, a GUID. This creates a user in the Cloud Controller database. Generally, the GUID should match the GUID of an already-created user in the UAA database, though this is not required.

type UserData

type UserData struct {
	UserName string `json:"username,omitempty"`
	Origin   string `json:"origin,omitempty"`
	GUID     string `json:"guid,omitempty"`
}

type UserList

type UserList struct {
	Pagination Pagination `json:"pagination"`
	Resources  []*User    `json:"resources"`
}

type UserUpdate

type UserUpdate struct {
	Metadata *Metadata `json:"metadata,omitempty"`
}

type V3Root

type V3Root struct {
	Links Links `json:"links"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL