cfclient

package module
v0.0.0-...-5f22247 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 22 Imported by: 0

README

go-cfclient

build workflow GoDoc Report card

Overview

cfclient is a package to assist you in writing apps that need to interact with Cloud Foundry. It provides functions and structures to retrieve and update

Usage

go get github.com/cloudfoundry-community/go-cfclient

NOTE: Currently this project is not versioning its releases and so breaking changes might be introduced. Whilst hopefully notifications of breaking changes are made via commit messages, ideally your project will use a local vendoring system to lock in a version of go-cfclient that is known to work for you. This will allow you to control the timing and maintenance of upgrades to newer versions of this library.

Some example code:

package main

import (
	"fmt"

	"github.com/cloudfoundry-community/go-cfclient"
)

func main() {
	c := &cfclient.Config{
		ApiAddress: "https://api.10.244.0.34.xip.io",
		Username:   "admin",
		Password:   "secret",
	}
	client, _ := cfclient.NewClient(c)
	apps, _ := client.ListApps()
	fmt.Println(apps)
}
Paging Results

The API supports paging results via query string parameters. All of the v3 ListV3*ByQuery functions support paging. Only a subset of v2 function calls support paging the results:

  • ListSpacesByQuery
  • ListOrgsByQuery
  • ListAppsByQuery
  • ListServiceInstancesByQuery
  • ListUsersByQuery

You can iterate over the results page-by-page using a function similar to this one:

func processSpacesOnePageAtATime(client *cfclient.Client) error {
	page := 1
	pageSize := 50

	q := url.Values{}
	q.Add("results-per-page", strconv.Itoa(pageSize))

	for {
		// get the current page of spaces
		q.Set("page", strconv.Itoa(page))
		spaces, err := client.ListSpacesByQuery(q)
		if err != nil {
			fmt.Printf("Error getting spaces by query: %s", err)
			return err
		}

		// do something with each space
		fmt.Printf("Page %d:\n", page)
		for _, s := range spaces {
			fmt.Println("  " + s.Name)
		}

		// if we hit an empty page or partial page, that means we're done
		if len(spaces) < pageSize {
			break
		}

		// next page
		page++
	}
	return nil
}

Development

make all
Errors

If the Cloud Foundry error definitions change at https://github.com/cloudfoundry/cloud_controller_ng/blob/master/vendor/errors/v2.yml then the error predicate functions in this package need to be regenerated.

To do this, simply use Go to regenerate the code:

make generate

Contributing

Pull requests welcome. Please ensure you run all the unit tests, go fmt the code, and golangci-lint via make all

Documentation

Index

Constants

View Source
const (
	AppCrash      = "app.crash"
	AppStart      = "audit.app.start"
	AppStop       = "audit.app.stop"
	AppUpdate     = "audit.app.update"
	AppCreate     = "audit.app.create"
	AppDelete     = "audit.app.delete-request"
	AppSSHAuth    = "audit.app.ssh-authorized"
	AppSSHUnauth  = "audit.app.ssh-unauthorized"
	AppRestage    = "audit.app.restage"
	AppMapRoute   = "audit.app.map-route"
	AppUnmapRoute = "audit.app.unmap-route"
)

Exported event constants

View Source
const (
	FilterTimestamp = "timestamp"
	FilterActee     = "actee"
)

Exported filter constants

Variables

View Source
var ErrPreventRedirect = errors.New("prevent-redirect")
View Source
var MinStagingSpacesVersion *semver.Version = getMinStagingSpacesVersion()
View Source
var ValidOperators = []string{":", ">=", "<=", "<", ">", "IN"}

ValidOperators global variable for all valid operators in a query

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 IsBitsServiceError

func IsBitsServiceError(err error) bool

IsBitsServiceError returns a boolean indicating whether the error is known to report the Cloud Foundry error: - Cloud Foundry code: 290012 - HTTP code: 500 - message: "The bits service returned an error: %s"

func IsBlobstoreError

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 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 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 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 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 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 {
	Guid                     string                 `json:"guid"`
	CreatedAt                string                 `json:"created_at"`
	UpdatedAt                string                 `json:"updated_at"`
	Name                     string                 `json:"name"`
	Memory                   int                    `json:"memory"`
	Instances                int                    `json:"instances"`
	DiskQuota                int                    `json:"disk_quota"`
	SpaceGuid                string                 `json:"space_guid"`
	StackGuid                string                 `json:"stack_guid"`
	State                    string                 `json:"state"`
	PackageState             string                 `json:"package_state"`
	Command                  string                 `json:"command"`
	Buildpack                string                 `json:"buildpack"`
	DetectedBuildpack        string                 `json:"detected_buildpack"`
	DetectedBuildpackGuid    string                 `json:"detected_buildpack_guid"`
	HealthCheckHttpEndpoint  string                 `json:"health_check_http_endpoint"`
	HealthCheckType          string                 `json:"health_check_type"`
	HealthCheckTimeout       int                    `json:"health_check_timeout"`
	Diego                    bool                   `json:"diego"`
	EnableSSH                bool                   `json:"enable_ssh"`
	DetectedStartCommand     string                 `json:"detected_start_command"`
	DockerImage              string                 `json:"docker_image"`
	DockerCredentialsJSON    map[string]interface{} `json:"docker_credentials_json"`
	DockerCredentials        DockerCredentials      `json:"docker_credentials"`
	Environment              map[string]interface{} `json:"environment_json"`
	StagingFailedReason      string                 `json:"staging_failed_reason"`
	StagingFailedDescription string                 `json:"staging_failed_description"`
	Ports                    []int                  `json:"ports"`
	SpaceURL                 string                 `json:"space_url"`
	SpaceData                SpaceResource          `json:"space"`
	PackageUpdatedAt         string                 `json:"package_updated_at"`
	// contains filtered or unexported fields
}

func (*App) Space

func (a *App) Space() (Space, error)

func (*App) Summary

func (a *App) Summary() (AppSummary, error)

type AppCreateRequest

type AppCreateRequest struct {
	Name      string `json:"name"`
	SpaceGuid string `json:"space_guid"`
	// Memory for the app, in MB
	Memory int `json:"memory,omitempty"`
	// Instances to startup
	Instances int `json:"instances,omitempty"`
	// Disk quota in MB
	DiskQuota int    `json:"disk_quota,omitempty"`
	StackGuid string `json:"stack_guid,omitempty"`
	// Desired state of the app. Either "STOPPED" or "STARTED"
	State AppState `json:"state,omitempty"`
	// Command to start an app
	Command string `json:"command,omitempty"`
	// Buildpack to build the app. Three options:
	// 1. Blank for autodetection
	// 2. GIT url
	// 3. Name of an installed buildpack
	Buildpack string `json:"buildpack,omitempty"`
	// Endpoint to check if an app is healthy
	HealthCheckHttpEndpoint string `json:"health_check_http_endpoint,omitempty"`
	// How to check if an app is healthy. Defaults to HEALTH_PORT if not specified
	HealthCheckType    HealthCheckType        `json:"health_check_type,omitempty"`
	HealthCheckTimeout int                    `json:"health_check_timeout,omitempty"`
	Diego              bool                   `json:"diego,omitempty"`
	EnableSSH          bool                   `json:"enable_ssh,omitempty"`
	DockerImage        string                 `json:"docker_image,omitempty"`
	DockerCredentials  DockerCredentials      `json:"docker_credentials,omitempty"`
	Environment        map[string]interface{} `json:"environment_json,omitempty"`
}

type AppEnv

type AppEnv struct {
	// These can have arbitrary JSON so need to map to interface{}
	Environment    map[string]interface{} `json:"environment_json"`
	StagingEnv     map[string]interface{} `json:"staging_env_json"`
	RunningEnv     map[string]interface{} `json:"running_env_json"`
	SystemEnv      map[string]interface{} `json:"system_env_json"`
	ApplicationEnv map[string]interface{} `json:"application_env_json"`
}

type AppEventEntity

type AppEventEntity struct {
	// EventTypes are app.crash, audit.app.start, audit.app.stop, audit.app.update, audit.app.create, audit.app.delete-request
	EventType string `json:"type"`
	// The GUID of the actor.
	Actor string `json:"actor"`
	// The actor type, user or app
	ActorType string `json:"actor_type"`
	// The name of the actor.
	ActorName string `json:"actor_name"`
	// The GUID of the actee.
	Actee string `json:"actee"`
	// The actee type, space, app or v3-app
	ActeeType string `json:"actee_type"`
	// The name of the actee.
	ActeeName string `json:"actee_name"`
	// Timestamp format "2016-02-26T13:29:44Z". The event creation time.
	Timestamp time.Time `json:"timestamp"`
	MetaData  struct {
		// app.crash event fields
		ExitDescription string `json:"exit_description,omitempty"`
		ExitReason      string `json:"reason,omitempty"`
		ExitStatus      string `json:"exit_status,omitempty"`

		Request struct {
			Name              string  `json:"name,omitempty"`
			Instances         float64 `json:"instances,omitempty"`
			State             string  `json:"state,omitempty"`
			Memory            float64 `json:"memory,omitempty"`
			EnvironmentVars   string  `json:"environment_json,omitempty"`
			DockerCredentials string  `json:"docker_credentials_json,omitempty"`
			// audit.app.create event fields
			Console            bool    `json:"console,omitempty"`
			Buildpack          string  `json:"buildpack,omitempty"`
			Space              string  `json:"space_guid,omitempty"`
			HealthcheckType    string  `json:"health_check_type,omitempty"`
			HealthcheckTimeout float64 `json:"health_check_timeout,omitempty"`
			Production         bool    `json:"production,omitempty"`
			// app.crash event fields
			Index float64 `json:"index,omitempty"`
		} `json:"request"`
	} `json:"metadata"`
}

The AppEventEntity the actual app event body

type AppEventQuery

type AppEventQuery struct {
	Filter   string
	Operator string
	Value    string
}

AppEventQuery a struct for defining queries like 'q=filter>value' or 'q=filter IN a,b,c'

type AppEventResource

type AppEventResource struct {
	Meta   Meta           `json:"metadata"`
	Entity AppEventEntity `json:"entity"`
}

AppEventResource the event resources

type AppEventResponse

type AppEventResponse struct {
	Results   int                `json:"total_results"`
	Pages     int                `json:"total_pages"`
	PrevURL   string             `json:"prev_url"`
	NextURL   string             `json:"next_url"`
	Resources []AppEventResource `json:"resources"`
}

AppEventResponse the entire response

type AppInstance

type AppInstance struct {
	State string    `json:"state"`
	Since sinceTime `json:"since"`
}

type AppResource

type AppResource struct {
	Meta   Meta `json:"metadata"`
	Entity App  `json:"entity"`
}

type AppResponse

type AppResponse struct {
	Count     int           `json:"total_results"`
	Pages     int           `json:"total_pages"`
	NextUrl   string        `json:"next_url"`
	Resources []AppResource `json:"resources"`
}

type AppState

type AppState string
const (
	APP_STOPPED AppState = "STOPPED"
	APP_STARTED AppState = "STARTED"
)

type AppStats

type AppStats struct {
	State string `json:"state"`
	Stats struct {
		Name      string   `json:"name"`
		Uris      []string `json:"uris"`
		Host      string   `json:"host"`
		Port      int      `json:"port"`
		Uptime    int      `json:"uptime"`
		MemQuota  int      `json:"mem_quota"`
		DiskQuota int      `json:"disk_quota"`
		FdsQuota  int      `json:"fds_quota"`
		Usage     struct {
			Time statTime `json:"time"`
			CPU  float64  `json:"cpu"`
			Mem  int      `json:"mem"`
			Disk int      `json:"disk"`
		} `json:"usage"`
	} `json:"stats"`
}

type AppSummary

type AppSummary struct {
	Guid                     string                 `json:"guid"`
	Name                     string                 `json:"name"`
	ServiceCount             int                    `json:"service_count"`
	RunningInstances         int                    `json:"running_instances"`
	SpaceGuid                string                 `json:"space_guid"`
	StackGuid                string                 `json:"stack_guid"`
	Buildpack                string                 `json:"buildpack"`
	DetectedBuildpack        string                 `json:"detected_buildpack"`
	Environment              map[string]interface{} `json:"environment_json"`
	Memory                   int                    `json:"memory"`
	Instances                int                    `json:"instances"`
	DiskQuota                int                    `json:"disk_quota"`
	State                    string                 `json:"state"`
	Command                  string                 `json:"command"`
	PackageState             string                 `json:"package_state"`
	HealthCheckType          string                 `json:"health_check_type"`
	HealthCheckTimeout       int                    `json:"health_check_timeout"`
	StagingFailedReason      string                 `json:"staging_failed_reason"`
	StagingFailedDescription string                 `json:"staging_failed_description"`
	Diego                    bool                   `json:"diego"`
	DockerImage              string                 `json:"docker_image"`
	DetectedStartCommand     string                 `json:"detected_start_command"`
	EnableSSH                bool                   `json:"enable_ssh"`
	DockerCredentials        map[string]interface{} `json:"docker_credentials_json"`
}

type AppUpdateResource

type AppUpdateResource struct {
	Name                     string                 `json:"name,omitempty"`
	Memory                   int                    `json:"memory,omitempty"`
	Instances                int                    `json:"instances,omitempty"`
	DiskQuota                int                    `json:"disk_quota,omitempty"`
	SpaceGuid                string                 `json:"space_guid,omitempty"`
	StackGuid                string                 `json:"stack_guid,omitempty"`
	State                    AppState               `json:"state,omitempty"`
	Command                  string                 `json:"command,omitempty"`
	Buildpack                string                 `json:"buildpack,omitempty"`
	HealthCheckHttpEndpoint  string                 `json:"health_check_http_endpoint,omitempty"`
	HealthCheckType          string                 `json:"health_check_type,omitempty"`
	HealthCheckTimeout       int                    `json:"health_check_timeout,omitempty"`
	Diego                    bool                   `json:"diego,omitempty"`
	EnableSSH                bool                   `json:"enable_ssh,omitempty"`
	DockerImage              string                 `json:"docker_image,omitempty"`
	DockerCredentials        map[string]interface{} `json:"docker_credentials_json,omitempty"`
	Environment              map[string]interface{} `json:"environment_json,omitempty"`
	StagingFailedReason      string                 `json:"staging_failed_reason,omitempty"`
	StagingFailedDescription string                 `json:"staging_failed_description,omitempty"`
	Ports                    []int                  `json:"ports,omitempty"`
}

type AppUsageEvent

type AppUsageEvent struct {
	GUID                          string `json:"guid"`
	CreatedAt                     string `json:"created_at"`
	State                         string `json:"state"`
	PreviousState                 string `json:"previous_state"`
	MemoryInMbPerInstance         int    `json:"memory_in_mb_per_instance"`
	PreviousMemoryInMbPerInstance int    `json:"previous_memory_in_mb_per_instance"`
	InstanceCount                 int    `json:"instance_count"`
	PreviousInstanceCount         int    `json:"previous_instance_count"`
	AppGUID                       string `json:"app_guid"`
	SpaceGUID                     string `json:"space_guid"`
	SpaceName                     string `json:"space_name"`
	OrgGUID                       string `json:"org_guid"`
	BuildpackGUID                 string `json:"buildpack_guid"`
	BuildpackName                 string `json:"buildpack_name"`
	PackageState                  string `json:"package_state"`
	PreviousPackageState          string `json:"previous_package_state"`
	ParentAppGUID                 string `json:"parent_app_guid"`
	ParentAppName                 string `json:"parent_app_name"`
	ProcessType                   string `json:"process_type"`
	TaskName                      string `json:"task_name"`
	TaskGUID                      string `json:"task_guid"`
	// contains filtered or unexported fields
}

type AppUsageEventResource

type AppUsageEventResource struct {
	Meta   Meta          `json:"metadata"`
	Entity AppUsageEvent `json:"entity"`
}

type AppUsageEventsResponse

type AppUsageEventsResponse struct {
	TotalResults int                     `json:"total_results"`
	Pages        int                     `json:"total_pages"`
	NextURL      string                  `json:"next_url"`
	Resources    []AppUsageEventResource `json:"resources"`
}

type Buildpack

type Buildpack struct {
	Guid      string `json:"guid"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	Name      string `json:"name"`
	Enabled   bool   `json:"enabled"`
	Locked    bool   `json:"locked"`
	Position  int    `json:"position"`
	Filename  string `json:"filename"`
	Stack     string `json:"stack"`
	// contains filtered or unexported fields
}

func (*Buildpack) Update

func (b *Buildpack) Update(bpr *BuildpackRequest) error

func (*Buildpack) Upload

func (b *Buildpack) Upload(file io.Reader, fileName string) error

type BuildpackRequest

type BuildpackRequest struct {
	// These are all pointers to the values so that we can tell
	// whether people wanted position 0, or enable/unlock values,
	// vs whether they didn't specify them and want them unchanged/default.
	Name     *string `json:"name,omitempty"`
	Enabled  *bool   `json:"enabled,omitempty"`
	Locked   *bool   `json:"locked,omitempty"`
	Position *int    `json:"position,omitempty"`
	Stack    *string `json:"stack,omitempty"`
}

func (*BuildpackRequest) Disable

func (bpr *BuildpackRequest) Disable()

func (*BuildpackRequest) Enable

func (bpr *BuildpackRequest) Enable()

func (*BuildpackRequest) Lock

func (bpr *BuildpackRequest) Lock()

func (*BuildpackRequest) SetName

func (bpr *BuildpackRequest) SetName(s string)

func (*BuildpackRequest) SetPosition

func (bpr *BuildpackRequest) SetPosition(i int)

func (*BuildpackRequest) SetStack

func (bpr *BuildpackRequest) SetStack(s string)

func (*BuildpackRequest) Unlock

func (bpr *BuildpackRequest) Unlock()

type BuildpackResource

type BuildpackResource struct {
	Meta   Meta      `json:"metadata"`
	Entity Buildpack `json:"entity"`
}

type BuildpackResponse

type BuildpackResponse struct {
	Count     int                 `json:"total_results"`
	Pages     int                 `json:"total_pages"`
	NextUrl   string              `json:"next_url"`
	Resources []BuildpackResource `json:"resources"`
}

type Client

type Client struct {
	Config   Config
	Endpoint Endpoint
}

Client used to communicate with Cloud Foundry

func NewClient

func NewClient(config *Config) (client *Client, err error)

NewClient returns a new client

func (*Client) AddIsolationSegmentToOrg

func (c *Client) AddIsolationSegmentToOrg(isolationSegmentGUID, orgGUID string) error

func (*Client) AddIsolationSegmentToSpace

func (c *Client) AddIsolationSegmentToSpace(isolationSegmentGUID, spaceGUID string) error

func (*Client) AppByGuid

func (c *Client) AppByGuid(guid string) (App, error)

func (*Client) AppByName

func (c *Client) AppByName(appName, spaceGuid, orgGuid string) (App, error)

AppByName takes an appName, and GUIDs for a space and org, and performs the API lookup with those query parameters set to return you the desired App object.

func (*Client) AssignSpaceQuota

func (c *Client) AssignSpaceQuota(quotaGUID, spaceGUID string) error

func (*Client) AssociateOrgAuditor

func (c *Client) AssociateOrgAuditor(orgGUID, userGUID string) (Org, error)

func (*Client) AssociateOrgAuditorByUsername

func (c *Client) AssociateOrgAuditorByUsername(orgGUID, name string) (Org, error)

func (*Client) AssociateOrgAuditorByUsernameAndOrigin

func (c *Client) AssociateOrgAuditorByUsernameAndOrigin(orgGUID, name, origin string) (Org, error)

func (*Client) AssociateOrgBillingManager

func (c *Client) AssociateOrgBillingManager(orgGUID, userGUID string) (Org, error)

func (*Client) AssociateOrgBillingManagerByUsername

func (c *Client) AssociateOrgBillingManagerByUsername(orgGUID, name string) (Org, error)

func (*Client) AssociateOrgBillingManagerByUsernameAndOrigin

func (c *Client) AssociateOrgBillingManagerByUsernameAndOrigin(orgGUID, name, origin string) (Org, error)

func (*Client) AssociateOrgManager

func (c *Client) AssociateOrgManager(orgGUID, userGUID string) (Org, error)

func (*Client) AssociateOrgManagerByUsername

func (c *Client) AssociateOrgManagerByUsername(orgGUID, name string) (Org, error)

func (*Client) AssociateOrgManagerByUsernameAndOrigin

func (c *Client) AssociateOrgManagerByUsernameAndOrigin(orgGUID, name, origin string) (Org, error)

func (*Client) AssociateOrgUser

func (c *Client) AssociateOrgUser(orgGUID, userGUID string) (Org, error)

func (*Client) AssociateOrgUserByUsername

func (c *Client) AssociateOrgUserByUsername(orgGUID, name string) (Org, error)

func (*Client) AssociateOrgUserByUsernameAndOrigin

func (c *Client) AssociateOrgUserByUsernameAndOrigin(orgGUID, name, origin string) (Org, error)

func (*Client) AssociateSpaceAuditor

func (c *Client) AssociateSpaceAuditor(spaceGUID, userGUID string) (Space, error)

func (*Client) AssociateSpaceAuditorByUsername

func (c *Client) AssociateSpaceAuditorByUsername(spaceGUID, name string) (Space, error)

func (*Client) AssociateSpaceAuditorByUsernameAndOrigin

func (c *Client) AssociateSpaceAuditorByUsernameAndOrigin(spaceGUID, name, origin string) (Space, error)

func (*Client) AssociateSpaceDeveloper

func (c *Client) AssociateSpaceDeveloper(spaceGUID, userGUID string) (Space, error)

func (*Client) AssociateSpaceDeveloperByUsername

func (c *Client) AssociateSpaceDeveloperByUsername(spaceGUID, name string) (Space, error)

func (*Client) AssociateSpaceDeveloperByUsernameAndOrigin

func (c *Client) AssociateSpaceDeveloperByUsernameAndOrigin(spaceGUID, name, origin string) (Space, error)

func (*Client) AssociateSpaceManager

func (c *Client) AssociateSpaceManager(spaceGUID, userGUID string) (Space, error)

func (*Client) AssociateSpaceManagerByUsername

func (c *Client) AssociateSpaceManagerByUsername(spaceGUID, name string) (Space, error)

func (*Client) AssociateSpaceManagerByUsernameAndOrigin

func (c *Client) AssociateSpaceManagerByUsernameAndOrigin(spaceGUID, name, origin string) (Space, error)

func (*Client) BindRoute

func (c *Client) BindRoute(routeGUID, appGUID string) error

BindRoute associates the specified route with the application

func (*Client) BindRunningSecGroup

func (c *Client) BindRunningSecGroup(secGUID string) error

BindRunningSecGroup contacts the CF endpoint to associate a security group secGUID: identifies the security group to add a space to

func (*Client) BindSecGroup

func (c *Client) BindSecGroup(secGUID, spaceGUID string) error

BindSecGroup contacts the CF endpoint to associate a space with a security group secGUID: identifies the security group to add a space to spaceGUID: identifies the space to associate

func (*Client) BindStagingSecGroup

func (c *Client) BindStagingSecGroup(secGUID string) error

BindStagingSecGroup contacts the CF endpoint to associate a space with a security group secGUID: identifies the security group to add a space to

func (*Client) BindStagingSecGroupToSpace

func (c *Client) BindStagingSecGroupToSpace(secGUID, spaceGUID string) error

BindSpaceStagingSecGroup contacts the CF endpoint to associate a space with a security group for staging functions only secGUID: identifies the security group to add a space to spaceGUID: identifies the space to associate

func (*Client) CancelV3Deployment

func (c *Client) CancelV3Deployment(deploymentGUID string) error

func (*Client) CopyPackageV3

func (c *Client) CopyPackageV3(packageGUID, appGUID string) (*V3Package, error)

CopyPackageV3 makes a copy of a package that is associated with one app and associates the copy with a new app.

func (*Client) CreateApp

func (c *Client) CreateApp(req AppCreateRequest) (App, error)

CreateApp creates a new empty application that still needs it's app bit uploaded and to be started

func (*Client) CreateBuildpack

func (c *Client) CreateBuildpack(bpr *BuildpackRequest) (*Buildpack, error)

func (*Client) CreateDomain

func (c *Client) CreateDomain(name, orgGuid string) (*Domain, error)

func (*Client) CreateIsolationSegment

func (c *Client) CreateIsolationSegment(name string) (*IsolationSegment, error)

func (*Client) CreateOrg

func (c *Client) CreateOrg(req OrgRequest) (Org, error)

func (*Client) CreateOrgQuota

func (c *Client) CreateOrgQuota(orgQuote OrgQuotaRequest) (*OrgQuota, error)

func (*Client) CreateRoute

func (c *Client) CreateRoute(routeRequest RouteRequest) (Route, error)

CreateRoute creates a regular http route

func (*Client) CreateRouteServiceBinding

func (c *Client) CreateRouteServiceBinding(routeGUID, serviceInstanceGUID string) error

func (*Client) CreateSecGroup

func (c *Client) CreateSecGroup(name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)

CreateSecGroup contacts the CF endpoint for creating a new security group. name: the name to give to the created security group rules: A slice of rule objects that describe the rules that this security group enforces.

This can technically be nil or an empty slice - we won't judge you

spaceGuids: The security group will be associated with the spaces specified by the contents of this slice.

If nil, the security group will not be associated with any spaces initially.

func (*Client) CreateServiceBinding

func (c *Client) CreateServiceBinding(appGUID, serviceInstanceGUID string) (*ServiceBinding, error)

func (*Client) CreateServiceBroker

func (c *Client) CreateServiceBroker(csb CreateServiceBrokerRequest) (ServiceBroker, error)

func (*Client) CreateServiceInstance

func (c *Client) CreateServiceInstance(req ServiceInstanceRequest) (ServiceInstance, error)

func (*Client) CreateServiceKey

func (c *Client) CreateServiceKey(csr CreateServiceKeyRequest) (ServiceKey, error)

CreateServiceKey creates a service key from the request. If a service key exists already, it returns an error containing `CF-ServiceKeyNameTaken`

func (*Client) CreateServicePlanVisibility

func (c *Client) CreateServicePlanVisibility(servicePlanGuid string, organizationGuid string) (ServicePlanVisibility, error)

func (*Client) CreateServicePlanVisibilityByUniqueId

func (c *Client) CreateServicePlanVisibilityByUniqueId(uniqueId string, organizationGuid string) (ServicePlanVisibility, error)

a uniqueID is the id of the service in the catalog and not in cf internal db

func (*Client) CreateSharedDomain

func (c *Client) CreateSharedDomain(name string, internal bool, router_group_guid string) (*SharedDomain, error)

func (*Client) CreateSpace

func (c *Client) CreateSpace(req SpaceRequest) (Space, error)

func (*Client) CreateSpaceQuota

func (c *Client) CreateSpaceQuota(spaceQuote SpaceQuotaRequest) (*SpaceQuota, error)

func (*Client) CreateTask

func (c *Client) CreateTask(tr TaskRequest) (task Task, err error)

CreateTask creates a new task in CF system and returns its structure.

func (*Client) CreateTcpRoute

func (c *Client) CreateTcpRoute(routeRequest RouteRequest) (Route, error)

CreateTcpRoute creates a TCP route

func (*Client) CreateUser

func (c *Client) CreateUser(req UserRequest) (User, error)

func (*Client) CreateUserProvidedServiceInstance

func (c *Client) CreateUserProvidedServiceInstance(req UserProvidedServiceInstanceRequest) (*UserProvidedServiceInstance, error)

func (*Client) CreateV3App

func (c *Client) CreateV3App(r CreateV3AppRequest) (*V3App, error)

func (*Client) CreateV3Build

func (c *Client) CreateV3Build(packageGUID string, lifecycle *V3Lifecycle, metadata *V3Metadata) (*V3Build, error)

func (*Client) CreateV3Deployment

func (c *Client) CreateV3Deployment(appGUID string, optionalParams *CreateV3DeploymentOptionalParameters) (*V3Deployment, error)

func (*Client) CreateV3Organization

func (c *Client) CreateV3Organization(r CreateV3OrganizationRequest) (*V3Organization, error)

func (*Client) CreateV3SecurityGroup

func (c *Client) CreateV3SecurityGroup(r CreateV3SecurityGroupRequest) (*V3SecurityGroup, error)

CreateV3SecurityGroup creates security group from CreateV3SecurityGroupRequest

func (*Client) CreateV3Space

func (c *Client) CreateV3Space(r CreateV3SpaceRequest) (*V3Space, error)

func (*Client) DefaultIsolationSegmentForOrg

func (c *Client) DefaultIsolationSegmentForOrg(orgGUID, isolationSegmentGUID string) error

func (*Client) DeleteApp

func (c *Client) DeleteApp(guid string) error

func (*Client) DeleteBuildpack

func (c *Client) DeleteBuildpack(guid string, async bool) error

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(guid string) error

func (*Client) DeleteDroplet

func (c *Client) DeleteDroplet(dropletGUID string) error

func (*Client) DeleteIsolationSegmentByGUID

func (c *Client) DeleteIsolationSegmentByGUID(guid string) error

func (*Client) DeleteOrg

func (c *Client) DeleteOrg(guid string, recursive, async bool) error

func (*Client) DeleteOrgQuota

func (c *Client) DeleteOrgQuota(guid string, async bool) error

func (*Client) DeleteRoute

func (c *Client) DeleteRoute(guid string) error

func (*Client) DeleteRouteMapping

func (c *Client) DeleteRouteMapping(guid string) error

func (*Client) DeleteRouteServiceBinding

func (c *Client) DeleteRouteServiceBinding(routeGUID, serviceInstanceGUID string) error

func (*Client) DeleteSecGroup

func (c *Client) DeleteSecGroup(guid string) error

DeleteSecGroup contacts the CF endpoint to delete an existing security group. guid: Indentifies the security group to be deleted.

func (*Client) DeleteServiceBinding

func (c *Client) DeleteServiceBinding(guid string) error

func (*Client) DeleteServiceBroker

func (c *Client) DeleteServiceBroker(guid string) error

func (*Client) DeleteServiceInstance

func (c *Client) DeleteServiceInstance(guid string, recursive, async bool) error

func (*Client) DeleteServiceKey

func (c *Client) DeleteServiceKey(guid string) error

DeleteServiceKey removes a service key instance

func (*Client) DeleteServicePlanVisibility

func (c *Client) DeleteServicePlanVisibility(guid string, async bool) error

func (*Client) DeleteServicePlanVisibilityByPlanAndOrg

func (c *Client) DeleteServicePlanVisibilityByPlanAndOrg(servicePlanGuid string, organizationGuid string, async bool) error

func (*Client) DeleteSharedDomain

func (c *Client) DeleteSharedDomain(guid string, async bool) error

func (*Client) DeleteSpace

func (c *Client) DeleteSpace(guid string, recursive, async bool) error

func (*Client) DeleteUser

func (c *Client) DeleteUser(userGuid string) error

func (*Client) DeleteUserProvidedServiceInstance

func (c *Client) DeleteUserProvidedServiceInstance(guid string) error

func (*Client) DeleteV3App

func (c *Client) DeleteV3App(guid string) error

func (*Client) DeleteV3Organization

func (c *Client) DeleteV3Organization(organizationGUID string) error

func (*Client) DeleteV3SecurityGroup

func (c *Client) DeleteV3SecurityGroup(GUID string) error

DeleteV3SecurityGroup deletes security group by GUID

func (*Client) DeleteV3Space

func (c *Client) DeleteV3Space(spaceGUID string) error

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) DoRequest

func (c *Client) DoRequest(r *Request) (*http.Response, error)

DoRequest runs a request with our client

func (*Client) DoRequestWithoutRedirects

func (c *Client) DoRequestWithoutRedirects(r *Request) (*http.Response, error)

DoRequestWithoutRedirects executes the request without following redirects

func (*Client) GetAppBits

func (c *Client) GetAppBits(guid string) (io.ReadCloser, error)

GetAppBits downloads the application's bits as a tar file

func (*Client) GetAppByGuid

func (c *Client) GetAppByGuid(guid string) (App, error)

func (*Client) GetAppByGuidNoInlineCall

func (c *Client) GetAppByGuidNoInlineCall(guid string) (App, error)

GetAppByGuidNoInlineCall will fetch app info including space and orgs information Without using inline-relations-depth=2 call

func (*Client) GetAppEnv

func (c *Client) GetAppEnv(guid string) (AppEnv, error)

func (*Client) GetAppInstances

func (c *Client) GetAppInstances(guid string) (map[string]AppInstance, error)

func (*Client) GetAppRoutes

func (c *Client) GetAppRoutes(guid string) ([]Route, error)

func (*Client) GetAppStats

func (c *Client) GetAppStats(guid string) (map[string]AppStats, error)

func (*Client) GetBuildpackByGuid

func (c *Client) GetBuildpackByGuid(buildpackGUID string) (Buildpack, error)

func (*Client) GetCurrentDropletForV3App

func (c *Client) GetCurrentDropletForV3App(appGUID string) (*V3Droplet, error)

func (*Client) GetDomainByGuid

func (c *Client) GetDomainByGuid(guid string) (Domain, error)

func (*Client) GetDomainByName

func (c *Client) GetDomainByName(name string) (Domain, error)

func (*Client) GetDropletBits

func (c *Client) GetDropletBits(guid string) (io.ReadCloser, error)

GetDropletBits downloads the application's droplet bits as a tar file

func (*Client) GetInfo

func (c *Client) GetInfo() (*Info, error)

GetInfo retrieves Info from the Cloud Controller API

func (*Client) GetIsolationSegmentByGUID

func (c *Client) GetIsolationSegmentByGUID(guid string) (*IsolationSegment, error)

func (*Client) GetOrgByGuid

func (c *Client) GetOrgByGuid(guid string) (Org, error)

func (*Client) GetOrgByName

func (c *Client) GetOrgByName(name string) (Org, error)

func (*Client) GetOrgQuotaByName

func (c *Client) GetOrgQuotaByName(name string) (OrgQuota, error)

func (*Client) GetProcessStats

func (c *Client) GetProcessStats(processGUID string) ([]Stats, error)

func (*Client) GetRouteByGuid

func (c *Client) GetRouteByGuid(guid string) (Route, error)

func (*Client) GetRouteMappingByGuid

func (c *Client) GetRouteMappingByGuid(guid string) (*RouteMapping, error)

func (*Client) GetRunningEnvironmentVariableGroup

func (c *Client) GetRunningEnvironmentVariableGroup() (EnvironmentVariableGroup, error)

func (*Client) GetSSHCode

func (c *Client) GetSSHCode() (string, error)

func (*Client) GetSecGroup

func (c *Client) GetSecGroup(guid string) (*SecGroup, error)

GetSecGroup contacts the CF endpoint for fetching the info for a particular security group. guid: Identifies the security group to fetch information from

func (*Client) GetSecGroupByName

func (c *Client) GetSecGroupByName(name string) (secGroup SecGroup, err error)

func (*Client) GetServiceBindingByGuid

func (c *Client) GetServiceBindingByGuid(guid string) (ServiceBinding, error)

func (*Client) GetServiceBrokerByGuid

func (c *Client) GetServiceBrokerByGuid(guid string) (ServiceBroker, error)

func (*Client) GetServiceBrokerByName

func (c *Client) GetServiceBrokerByName(name string) (ServiceBroker, error)

func (*Client) GetServiceByGuid

func (c *Client) GetServiceByGuid(guid string) (Service, error)

func (*Client) GetServiceInstanceByGuid

func (c *Client) GetServiceInstanceByGuid(guid string) (ServiceInstance, error)

func (*Client) GetServiceInstanceParams

func (c *Client) GetServiceInstanceParams(guid string) (map[string]interface{}, error)

func (*Client) GetServiceKeyByGuid

func (c *Client) GetServiceKeyByGuid(guid string) (ServiceKey, error)

func (*Client) GetServiceKeyByInstanceGuid

func (c *Client) GetServiceKeyByInstanceGuid(guid string) (ServiceKey, error)

GetServiceKeyByInstanceGuid is deprecated in favor of GetServiceKeysByInstanceGuid

func (*Client) GetServiceKeyByName

func (c *Client) GetServiceKeyByName(name string) (ServiceKey, error)

func (*Client) GetServiceKeysByInstanceGuid

func (c *Client) GetServiceKeysByInstanceGuid(guid string) ([]ServiceKey, error)

GetServiceKeysByInstanceGuid returns the service keys for a service instance. If none are found, it returns an error.

func (*Client) GetServicePlanByGUID

func (c *Client) GetServicePlanByGUID(guid string) (*ServicePlan, error)

func (*Client) GetServicePlanVisibilityByGuid

func (c *Client) GetServicePlanVisibilityByGuid(guid string) (ServicePlanVisibility, error)

func (*Client) GetSharedDomainByGuid

func (c *Client) GetSharedDomainByGuid(guid string) (SharedDomain, error)

func (*Client) GetSharedDomainByName

func (c *Client) GetSharedDomainByName(name string) (SharedDomain, error)

func (*Client) GetSpaceByGuid

func (c *Client) GetSpaceByGuid(spaceGUID string) (Space, error)

func (*Client) GetSpaceByName

func (c *Client) GetSpaceByName(spaceName string, orgGuid string) (Space, error)

func (*Client) GetSpaceQuotaByName

func (c *Client) GetSpaceQuotaByName(name string) (SpaceQuota, error)

func (*Client) GetStackByGuid

func (c *Client) GetStackByGuid(stackGUID string) (Stack, error)

func (*Client) GetStagingEnvironmentVariableGroup

func (c *Client) GetStagingEnvironmentVariableGroup() (EnvironmentVariableGroup, error)

func (*Client) GetTaskByGuid

func (c *Client) GetTaskByGuid(guid string) (task Task, err error)

GetTaskByGuid returns a task structure by requesting it with the tasks GUID.

func (*Client) GetToken

func (c *Client) GetToken() (string, error)

func (*Client) GetUserByGUID

func (c *Client) GetUserByGUID(guid string) (User, error)

GetUserByGUID retrieves the user with the provided guid.

func (*Client) GetUserProvidedServiceInstanceByGuid

func (c *Client) GetUserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)

func (*Client) GetV3AppByGUID

func (c *Client) GetV3AppByGUID(guid string) (*V3App, error)

func (*Client) GetV3AppEnvironment

func (c *Client) GetV3AppEnvironment(appGUID string) (V3AppEnvironment, error)

func (*Client) GetV3BuildByGUID

func (c *Client) GetV3BuildByGUID(buildGUID string) (*V3Build, error)

func (*Client) GetV3Deployment

func (c *Client) GetV3Deployment(deploymentGUID string) (*V3Deployment, error)

func (*Client) GetV3OrganizationByGUID

func (c *Client) GetV3OrganizationByGUID(organizationGUID string) (*V3Organization, error)

func (*Client) GetV3SecurityGroupByGUID

func (c *Client) GetV3SecurityGroupByGUID(GUID string) (*V3SecurityGroup, error)

GetV3SecurityGroupByGUID retrieves security group base on provided GUID

func (*Client) GetV3SpaceByGUID

func (c *Client) GetV3SpaceByGUID(spaceGUID string) (*V3Space, error)

func (*Client) IsolationSegmentForSpace

func (c *Client) IsolationSegmentForSpace(spaceGUID, isolationSegmentGUID string) error

func (*Client) KillAppInstance

func (c *Client) KillAppInstance(guid string, index string) error

func (*Client) ListAllProcesses

func (c *Client) ListAllProcesses() ([]Process, error)

ListAllProcesses will call the v3 processes api

func (*Client) ListAllProcessesByQuery

func (c *Client) ListAllProcessesByQuery(query url.Values) ([]Process, error)

ListAllProcessesByQuery will call the v3 processes api

func (*Client) ListAppEvents

func (c *Client) ListAppEvents(eventType string) ([]AppEventEntity, error)

ListAppEvents returns all app events based on eventType

func (*Client) ListAppEventsByQuery

func (c *Client) ListAppEventsByQuery(eventType string, queries []AppEventQuery) ([]AppEventEntity, error)

ListAppEventsByQuery returns all app events based on eventType and queries

func (*Client) ListAppUsageEvents

func (c *Client) ListAppUsageEvents() ([]AppUsageEvent, error)

ListAppUsageEvents lists all unfiltered events.

func (*Client) ListAppUsageEventsByQuery

func (c *Client) ListAppUsageEventsByQuery(query url.Values) ([]AppUsageEvent, error)

ListAppUsageEventsByQuery lists all events matching the provided query.

func (*Client) ListApps

func (c *Client) ListApps() ([]App, error)

func (*Client) ListAppsByQuery

func (c *Client) ListAppsByQuery(query url.Values) ([]App, error)

func (*Client) ListAppsByQueryWithLimits

func (c *Client) ListAppsByQueryWithLimits(query url.Values, totalPages int) ([]App, error)

ListAppsByQueryWithLimits queries totalPages app info. When totalPages is less and equal than 0, it queries all app info When there are no more than totalPages apps on server side, all apps info will be returned

func (*Client) ListAppsByRoute

func (c *Client) ListAppsByRoute(routeGuid string) ([]App, error)

func (*Client) ListAppsBySpaceGuid

func (c *Client) ListAppsBySpaceGuid(spaceGuid string) ([]App, error)

func (*Client) ListBuildpacks

func (c *Client) ListBuildpacks() ([]Buildpack, error)

func (*Client) ListDomains

func (c *Client) ListDomains() ([]Domain, error)

func (*Client) ListDomainsByQuery

func (c *Client) ListDomainsByQuery(query url.Values) ([]Domain, error)

func (*Client) ListEvents

func (c *Client) ListEvents() ([]Event, error)

ListEvents lists all unfiltered events.

func (*Client) ListEventsByQuery

func (c *Client) ListEventsByQuery(query url.Values) ([]Event, error)

ListEventsByQuery lists all events matching the provided query.

func (*Client) ListIsolationSegments

func (c *Client) ListIsolationSegments() ([]IsolationSegment, error)

func (*Client) ListIsolationSegmentsByQuery

func (c *Client) ListIsolationSegmentsByQuery(query url.Values) ([]IsolationSegment, error)

func (*Client) ListOrgAuditors

func (c *Client) ListOrgAuditors(orgGUID string) ([]User, error)

func (*Client) ListOrgAuditorsByQuery

func (c *Client) ListOrgAuditorsByQuery(orgGUID string, query url.Values) ([]User, error)

func (*Client) ListOrgBillingManagers

func (c *Client) ListOrgBillingManagers(orgGUID string) ([]User, error)

func (*Client) ListOrgBillingManagersByQuery

func (c *Client) ListOrgBillingManagersByQuery(orgGUID string, query url.Values) ([]User, error)

func (*Client) ListOrgManagers

func (c *Client) ListOrgManagers(orgGUID string) ([]User, error)

func (*Client) ListOrgManagersByQuery

func (c *Client) ListOrgManagersByQuery(orgGUID string, query url.Values) ([]User, error)

func (*Client) ListOrgPrivateDomains

func (c *Client) ListOrgPrivateDomains(orgGUID string) ([]Domain, error)

func (*Client) ListOrgQuotas

func (c *Client) ListOrgQuotas() ([]OrgQuota, error)

func (*Client) ListOrgQuotasByQuery

func (c *Client) ListOrgQuotasByQuery(query url.Values) ([]OrgQuota, error)

func (*Client) ListOrgSpaceQuotas

func (c *Client) ListOrgSpaceQuotas(orgGUID string) ([]SpaceQuota, error)

func (*Client) ListOrgUsers

func (c *Client) ListOrgUsers(orgGUID string) ([]User, error)

func (*Client) ListOrgUsersByQuery

func (c *Client) ListOrgUsersByQuery(orgGUID string, query url.Values) ([]User, error)

func (*Client) ListOrgs

func (c *Client) ListOrgs() ([]Org, error)

func (*Client) ListOrgsByQuery

func (c *Client) ListOrgsByQuery(query url.Values) ([]Org, error)

func (*Client) ListPackagesForAppV3

func (c *Client) ListPackagesForAppV3(appGUID string, query url.Values) ([]V3Package, error)

func (*Client) ListRouteMappings

func (c *Client) ListRouteMappings() ([]*RouteMapping, error)

func (*Client) ListRouteMappingsByQuery

func (c *Client) ListRouteMappingsByQuery(query url.Values) ([]*RouteMapping, error)

func (*Client) ListRoutes

func (c *Client) ListRoutes() ([]Route, error)

func (*Client) ListRoutesByQuery

func (c *Client) ListRoutesByQuery(query url.Values) ([]Route, error)

func (*Client) ListRunningSecGroups

func (c *Client) ListRunningSecGroups() ([]SecGroup, error)

func (*Client) ListSecGroups

func (c *Client) ListSecGroups() (secGroups []SecGroup, err error)

func (*Client) ListServiceBindings

func (c *Client) ListServiceBindings() ([]ServiceBinding, error)

func (*Client) ListServiceBindingsByQuery

func (c *Client) ListServiceBindingsByQuery(query url.Values) ([]ServiceBinding, error)

func (*Client) ListServiceBrokers

func (c *Client) ListServiceBrokers() ([]ServiceBroker, error)

func (*Client) ListServiceBrokersByQuery

func (c *Client) ListServiceBrokersByQuery(query url.Values) ([]ServiceBroker, error)

func (*Client) ListServiceInstances

func (c *Client) ListServiceInstances() ([]ServiceInstance, error)

func (*Client) ListServiceInstancesByQuery

func (c *Client) ListServiceInstancesByQuery(query url.Values) ([]ServiceInstance, error)

func (*Client) ListServiceKeys

func (c *Client) ListServiceKeys() ([]ServiceKey, error)

func (*Client) ListServiceKeysByQuery

func (c *Client) ListServiceKeysByQuery(query url.Values) ([]ServiceKey, error)

func (*Client) ListServicePlanVisibilities

func (c *Client) ListServicePlanVisibilities() ([]ServicePlanVisibility, error)

func (*Client) ListServicePlanVisibilitiesByQuery

func (c *Client) ListServicePlanVisibilitiesByQuery(query url.Values) ([]ServicePlanVisibility, error)

func (*Client) ListServicePlans

func (c *Client) ListServicePlans() ([]ServicePlan, error)

func (*Client) ListServicePlansByQuery

func (c *Client) ListServicePlansByQuery(query url.Values) ([]ServicePlan, error)

func (*Client) ListServiceUsageEvents

func (c *Client) ListServiceUsageEvents() ([]ServiceUsageEvent, error)

ListServiceUsageEvents lists all unfiltered events.

func (*Client) ListServiceUsageEventsByQuery

func (c *Client) ListServiceUsageEventsByQuery(query url.Values) ([]ServiceUsageEvent, error)

ListServiceUsageEventsByQuery lists all events matching the provided query.

func (*Client) ListServices

func (c *Client) ListServices() ([]Service, error)

func (*Client) ListServicesByQuery

func (c *Client) ListServicesByQuery(query url.Values) ([]Service, error)

func (*Client) ListSharedDomains

func (c *Client) ListSharedDomains() ([]SharedDomain, error)

func (*Client) ListSharedDomainsByQuery

func (c *Client) ListSharedDomainsByQuery(query url.Values) ([]SharedDomain, error)

func (*Client) ListSpaceAuditors

func (c *Client) ListSpaceAuditors(spaceGUID string) ([]User, error)

func (*Client) ListSpaceAuditorsByQuery

func (c *Client) ListSpaceAuditorsByQuery(spaceGUID string, query url.Values) ([]User, error)

func (*Client) ListSpaceDevelopers

func (c *Client) ListSpaceDevelopers(spaceGUID string) ([]User, error)

func (*Client) ListSpaceDevelopersByQuery

func (c *Client) ListSpaceDevelopersByQuery(spaceGUID string, query url.Values) ([]User, error)

func (*Client) ListSpaceManagers

func (c *Client) ListSpaceManagers(spaceGUID string) ([]User, error)

func (*Client) ListSpaceManagersByQuery

func (c *Client) ListSpaceManagersByQuery(spaceGUID string, query url.Values) ([]User, error)

func (*Client) ListSpaceQuotas

func (c *Client) ListSpaceQuotas() ([]SpaceQuota, error)

func (*Client) ListSpaceQuotasByQuery

func (c *Client) ListSpaceQuotasByQuery(query url.Values) ([]SpaceQuota, error)

func (*Client) ListSpaceSecGroups

func (c *Client) ListSpaceSecGroups(spaceGUID string) (secGroups []SecGroup, err error)

func (*Client) ListSpaces

func (c *Client) ListSpaces() ([]Space, error)

func (*Client) ListSpacesByOrgGuid

func (c *Client) ListSpacesByOrgGuid(orgGuid string) ([]Space, error)

func (*Client) ListSpacesByQuery

func (c *Client) ListSpacesByQuery(query url.Values) ([]Space, error)

func (*Client) ListStacks

func (c *Client) ListStacks() ([]Stack, error)

func (*Client) ListStacksByQuery

func (c *Client) ListStacksByQuery(query url.Values) ([]Stack, error)

func (*Client) ListStagingSecGroups

func (c *Client) ListStagingSecGroups() ([]SecGroup, error)

func (*Client) ListTasks

func (c *Client) ListTasks() ([]Task, error)

ListTasks returns all tasks the user has access to. See http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks

func (*Client) ListTasksByQuery

func (c *Client) ListTasksByQuery(query url.Values) ([]Task, error)

ListTasksByQuery returns all tasks the user has access to, with query parameters. See http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks

func (*Client) ListUserAuditedOrgs

func (c *Client) ListUserAuditedOrgs(userGuid string) ([]Org, error)

func (*Client) ListUserAuditedSpaces

func (c *Client) ListUserAuditedSpaces(userGuid string) ([]Space, error)

func (*Client) ListUserBillingManagedOrgs

func (c *Client) ListUserBillingManagedOrgs(userGuid string) ([]Org, error)

func (*Client) ListUserManagedOrgs

func (c *Client) ListUserManagedOrgs(userGuid string) ([]Org, error)

func (*Client) ListUserManagedSpaces

func (c *Client) ListUserManagedSpaces(userGuid string) ([]Space, error)

func (*Client) ListUserOrgs

func (c *Client) ListUserOrgs(userGuid string) ([]Org, error)

func (*Client) ListUserProvidedServiceInstances

func (c *Client) ListUserProvidedServiceInstances() ([]UserProvidedServiceInstance, error)

func (*Client) ListUserProvidedServiceInstancesByQuery

func (c *Client) ListUserProvidedServiceInstancesByQuery(query url.Values) ([]UserProvidedServiceInstance, error)

func (*Client) ListUserSpaces

func (c *Client) ListUserSpaces(userGuid string) ([]Space, error)

func (*Client) ListUsers

func (c *Client) ListUsers() (Users, error)

func (*Client) ListUsersByQuery

func (c *Client) ListUsersByQuery(query url.Values) (Users, error)

func (*Client) ListV3AppsByQuery

func (c *Client) ListV3AppsByQuery(query url.Values) ([]V3App, error)

func (*Client) ListV3OrganizationsByQuery

func (c *Client) ListV3OrganizationsByQuery(query url.Values) ([]V3Organization, error)

func (*Client) ListV3RolesByQuery

func (c *Client) ListV3RolesByQuery(query url.Values) ([]V3Role, error)

ListV3RolesByQuery retrieves roles based on query

func (*Client) ListV3SecurityGroupsByQuery

func (c *Client) ListV3SecurityGroupsByQuery(query url.Values) ([]V3SecurityGroup, error)

ListV3SecurityGroupsByQuery retrieves security groups based on query

func (*Client) ListV3SpaceUsers

func (c *Client) ListV3SpaceUsers(spaceGUID string) ([]V3User, error)

ListV3SpaceUsers lists users by space GUID

func (*Client) ListV3SpacesByQuery

func (c *Client) ListV3SpacesByQuery(query url.Values) ([]V3Space, error)

func (*Client) ListV3StacksByQuery

func (c *Client) ListV3StacksByQuery(query url.Values) ([]V3Stack, error)

ListV3StacksByQuery retrieves stacks based on query

func (*Client) MakeServicePlanPrivate

func (c *Client) MakeServicePlanPrivate(servicePlanGUID string) error

func (*Client) MakeServicePlanPublic

func (c *Client) MakeServicePlanPublic(servicePlanGUID string) error

func (*Client) MappingAppAndRoute

func (c *Client) MappingAppAndRoute(req RouteMappingRequest) (*RouteMapping, error)

func (*Client) NewRequest

func (c *Client) NewRequest(method, path string) *Request

NewRequest is used to create a new Request

func (*Client) NewRequestWithBody

func (c *Client) NewRequestWithBody(method, path string, body io.Reader) *Request

NewRequestWithBody is used to create a new request with arbigtrary body io.Reader.

func (*Client) OrgMetadata

func (c *Client) OrgMetadata(orgGUID string) (*Metadata, error)

func (*Client) OrgSpaces

func (c *Client) OrgSpaces(guid string) ([]Space, error)

func (*Client) RemoveIsolationSegmentFromOrg

func (c *Client) RemoveIsolationSegmentFromOrg(isolationSegmentGUID, orgGUID string) error

func (*Client) RemoveIsolationSegmentFromSpace

func (c *Client) RemoveIsolationSegmentFromSpace(isolationSegmentGUID, spaceGUID string) error

func (*Client) RemoveOrgAuditor

func (c *Client) RemoveOrgAuditor(orgGUID, userGUID string) error

func (*Client) RemoveOrgAuditorByUsername

func (c *Client) RemoveOrgAuditorByUsername(orgGUID, name string) error

func (*Client) RemoveOrgAuditorByUsernameAndOrigin

func (c *Client) RemoveOrgAuditorByUsernameAndOrigin(orgGUID, name, origin string) error

func (*Client) RemoveOrgBillingManager

func (c *Client) RemoveOrgBillingManager(orgGUID, userGUID string) error

func (*Client) RemoveOrgBillingManagerByUsername

func (c *Client) RemoveOrgBillingManagerByUsername(orgGUID, name string) error

func (*Client) RemoveOrgBillingManagerByUsernameAndOrigin

func (c *Client) RemoveOrgBillingManagerByUsernameAndOrigin(orgGUID, name, origin string) error

func (*Client) RemoveOrgManager

func (c *Client) RemoveOrgManager(orgGUID, userGUID string) error

func (*Client) RemoveOrgManagerByUsername

func (c *Client) RemoveOrgManagerByUsername(orgGUID, name string) error

func (*Client) RemoveOrgManagerByUsernameAndOrigin

func (c *Client) RemoveOrgManagerByUsernameAndOrigin(orgGUID, name, origin string) error

func (*Client) RemoveOrgMetadata

func (c *Client) RemoveOrgMetadata(orgGUID string) error

func (*Client) RemoveOrgUser

func (c *Client) RemoveOrgUser(orgGUID, userGUID string) error

func (*Client) RemoveOrgUserByUsername

func (c *Client) RemoveOrgUserByUsername(orgGUID, name string) error

func (*Client) RemoveOrgUserByUsernameAndOrigin

func (c *Client) RemoveOrgUserByUsernameAndOrigin(orgGUID, name, origin string) error

func (*Client) RemoveSpaceAuditor

func (c *Client) RemoveSpaceAuditor(spaceGUID, userGUID string) error

func (*Client) RemoveSpaceAuditorByUsername

func (c *Client) RemoveSpaceAuditorByUsername(spaceGUID, name string) error

func (*Client) RemoveSpaceAuditorByUsernameAndOrigin

func (c *Client) RemoveSpaceAuditorByUsernameAndOrigin(spaceGUID, name, origin string) error

func (*Client) RemoveSpaceDeveloper

func (c *Client) RemoveSpaceDeveloper(spaceGUID, userGUID string) error

func (*Client) RemoveSpaceDeveloperByUsername

func (c *Client) RemoveSpaceDeveloperByUsername(spaceGUID, name string) error

func (*Client) RemoveSpaceDeveloperByUsernameAndOrigin

func (c *Client) RemoveSpaceDeveloperByUsernameAndOrigin(spaceGUID, name, origin string) error

func (*Client) RemoveSpaceManager

func (c *Client) RemoveSpaceManager(spaceGUID, userGUID string) error

func (*Client) RemoveSpaceManagerByUsername

func (c *Client) RemoveSpaceManagerByUsername(spaceGUID, name string) error

func (*Client) RemoveSpaceManagerByUsernameAndOrigin

func (c *Client) RemoveSpaceManagerByUsernameAndOrigin(spaceGUID, name, origin string) error

func (*Client) RemoveSpaceMetadata

func (c *Client) RemoveSpaceMetadata(spaceGUID string) error

func (*Client) ResetDefaultIsolationSegmentForOrg

func (c *Client) ResetDefaultIsolationSegmentForOrg(orgGUID string) error

func (*Client) ResetIsolationSegmentForSpace

func (c *Client) ResetIsolationSegmentForSpace(spaceGUID string) error

func (*Client) ResourceMatch

func (c *Client) ResourceMatch(resources []Resource) ([]Resource, error)

ResourceMatch matches given resource list of SHA / file size pairs against the Cloud Controller cache, and reports the subset which describes already existing files

func (*Client) RestageApp

func (c *Client) RestageApp(guid string) (UpdateResponse, error)

func (*Client) RestartApp

func (c *Client) RestartApp(guid string) error

func (*Client) ServiceBindingByGuid

func (c *Client) ServiceBindingByGuid(guid string) (ServiceBinding, error)

func (*Client) ServiceInstanceByGuid

func (c *Client) ServiceInstanceByGuid(guid string) (ServiceInstance, error)

func (*Client) SetCurrentDropletForV3App

func (c *Client) SetCurrentDropletForV3App(appGUID, dropletGUID string) (*CurrentDropletV3Response, error)

func (*Client) SetRunningEnvironmentVariableGroup

func (c *Client) SetRunningEnvironmentVariableGroup(evg EnvironmentVariableGroup) error

func (*Client) SetStagingEnvironmentVariableGroup

func (c *Client) SetStagingEnvironmentVariableGroup(evg EnvironmentVariableGroup) error

func (*Client) ShareOrgPrivateDomain

func (c *Client) ShareOrgPrivateDomain(orgGUID, privateDomainGUID string) (*Domain, error)

func (*Client) SpaceMetadata

func (c *Client) SpaceMetadata(spaceGUID string) (*Metadata, error)

func (*Client) StartApp

func (c *Client) StartApp(guid string) error

func (*Client) StartV3App

func (c *Client) StartV3App(guid string) (*V3App, error)

func (*Client) StopApp

func (c *Client) StopApp(guid string) error

func (*Client) SupportsMetadataAPI

func (c *Client) SupportsMetadataAPI() (bool, error)

func (*Client) TaskByGuid

func (c *Client) TaskByGuid(guid string) (task Task, err error)

func (*Client) TasksByApp

func (c *Client) TasksByApp(guid string) ([]Task, error)

TasksByApp returns task structures which aligned to an app identified by the given guid. See: http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks-for-an-app

func (*Client) TasksByAppByQuery

func (c *Client) TasksByAppByQuery(guid string, query url.Values) ([]Task, error)

TasksByAppByQuery returns task structures which aligned to an app identified by the given guid and filtered by the given query parameters. See: http://v3-apidocs.cloudfoundry.org/version/3.12.0/index.html#list-tasks-for-an-app

func (*Client) TerminateTask

func (c *Client) TerminateTask(guid string) error

TerminateTask cancels a task identified by its GUID.

func (*Client) TotalEvents

func (c *Client) TotalEvents() (int, error)

TotalEvents returns the number of unfiltered events.

func (*Client) TotalEventsByQuery

func (c *Client) TotalEventsByQuery(query url.Values) (int, error)

TotalEventsByQuery returns the number of events matching the provided query.

func (*Client) UnbindRunningSecGroup

func (c *Client) UnbindRunningSecGroup(secGUID string) error

UnbindRunningSecGroup contacts the CF endpoint to dis-associate a security group secGUID: identifies the security group to add a space to

func (*Client) UnbindSecGroup

func (c *Client) UnbindSecGroup(secGUID, spaceGUID string) error

UnbindSecGroup contacts the CF endpoint to dissociate a space from a security group secGUID: identifies the security group to remove a space from spaceGUID: identifies the space to dissociate from the security group

func (*Client) UnbindStagingSecGroup

func (c *Client) UnbindStagingSecGroup(secGUID string) error

UnbindStagingSecGroup contacts the CF endpoint to dis-associate a space with a security group secGUID: identifies the security group to add a space to

func (*Client) UnshareOrgPrivateDomain

func (c *Client) UnshareOrgPrivateDomain(orgGUID, privateDomainGUID string) error

func (*Client) UpdateApp

func (c *Client) UpdateApp(guid string, aur AppUpdateResource) (UpdateResponse, error)

func (*Client) UpdateOrg

func (c *Client) UpdateOrg(orgGUID string, orgRequest OrgRequest) (Org, error)

func (*Client) UpdateOrgMetadata

func (c *Client) UpdateOrgMetadata(orgGUID string, metadata Metadata) error

func (*Client) UpdateOrgQuota

func (c *Client) UpdateOrgQuota(orgQuotaGUID string, orgQuota OrgQuotaRequest) (*OrgQuota, error)

func (*Client) UpdateSI

func (c *Client) UpdateSI(serviceInstanceGuid string, req ServiceInstanceUpdateRequest, async bool) error

func (*Client) UpdateSecGroup

func (c *Client) UpdateSecGroup(guid, name string, rules []SecGroupRule, spaceGuids []string) (*SecGroup, error)

UpdateSecGroup contacts the CF endpoint to update an existing security group. guid: identifies the security group that you would like to update. name: the new name to give to the security group rules: A slice of rule objects that describe the rules that this security group enforces.

If this is left nil, the rules will not be changed.

spaceGuids: The security group will be associated with the spaces specified by the contents of this slice.

If nil, the space associations will not be changed.

func (*Client) UpdateServiceBroker

func (c *Client) UpdateServiceBroker(guid string, usb UpdateServiceBrokerRequest) (ServiceBroker, error)

func (*Client) UpdateServiceInstance

func (c *Client) UpdateServiceInstance(serviceInstanceGuid string, updatedConfiguration io.Reader, async bool) error

func (*Client) UpdateServicePlanVisibility

func (c *Client) UpdateServicePlanVisibility(guid string, servicePlanGuid string, organizationGuid string) (ServicePlanVisibility, error)

func (*Client) UpdateSpace

func (c *Client) UpdateSpace(spaceGUID string, req SpaceRequest) (Space, error)

func (*Client) UpdateSpaceMetadata

func (c *Client) UpdateSpaceMetadata(spaceGUID string, metadata Metadata) error

func (*Client) UpdateSpaceQuota

func (c *Client) UpdateSpaceQuota(spaceQuotaGUID string, spaceQuote SpaceQuotaRequest) (*SpaceQuota, error)

func (*Client) UpdateUserProvidedServiceInstance

func (c *Client) UpdateUserProvidedServiceInstance(guid string, req UserProvidedServiceInstanceRequest) (*UserProvidedServiceInstance, error)

func (*Client) UpdateV3App

func (c *Client) UpdateV3App(appGUID string, r UpdateV3AppRequest) (*V3App, error)

func (*Client) UpdateV3Organization

func (c *Client) UpdateV3Organization(organizationGUID string, r UpdateV3OrganizationRequest) (*V3Organization, error)

func (*Client) UpdateV3SecurityGroup

func (c *Client) UpdateV3SecurityGroup(GUID string, r UpdateV3SecurityGroupRequest) (*V3SecurityGroup, error)

UpdateV3SecurityGroup updates security group by GUID and from UpdateV3SecurityGroupRequest

func (*Client) UpdateV3Space

func (c *Client) UpdateV3Space(spaceGUID string, r UpdateV3SpaceRequest) (*V3Space, error)

func (*Client) UploadAppBits

func (c *Client) UploadAppBits(file io.Reader, appGUID string) error

UploadAppBits uploads the application's contents

func (*Client) UploadDropletBits

func (c *Client) UploadDropletBits(dropletReader io.Reader, appGUID string) (string, error)

GetDropletBits downloads the application's droplet bits as a tar file Returns the GUID, job URL for monitoring, and an error

func (*Client) UserProvidedServiceInstanceByGuid

func (c *Client) UserProvidedServiceInstanceByGuid(guid string) (UserProvidedServiceInstance, error)

type CloudFoundryError

type CloudFoundryError struct {
	Code        int    `json:"code"`
	ErrorCode   string `json:"error_code"`
	Description string `json:"description"`
}

func 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 NewBitsServiceError

func NewBitsServiceError() CloudFoundryError

NewBitsServiceError returns a new CloudFoundryError that IsBitsServiceError 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 NewCloudFoundryErrorFromV3Errors

func NewCloudFoundryErrorFromV3Errors(cfErrorsV3 CloudFoundryErrorsV3) CloudFoundryError

CF APIs v3 can return multiple errors, we take the first one and convert it into a V2 model

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 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 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 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 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 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 (cfErr CloudFoundryError) Error() string

type CloudFoundryErrorV3

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

type CloudFoundryErrorsV3

type CloudFoundryErrorsV3 struct {
	Errors []CloudFoundryErrorV3 `json:"errors"`
}

type CloudFoundryHTTPError

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

func (CloudFoundryHTTPError) Error

func (e CloudFoundryHTTPError) Error() string

type Config

type Config struct {
	ApiAddress        string `json:"api_url"`
	Username          string `json:"user"`
	Password          string `json:"password"`
	ClientID          string `json:"client_id"`
	ClientSecret      string `json:"client_secret"`
	SkipSslValidation bool   `json:"skip_ssl_validation"`
	HttpClient        *http.Client
	Token             string `json:"auth_token"`
	TokenSource       oauth2.TokenSource

	UserAgent string `json:"user_agent"`
	Origin    string `json:"-"`
	// contains filtered or unexported fields
}

Config is used to configure the creation of a client

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig creates a default config object used by CF client

func NewConfigFromCF

func NewConfigFromCF() (*Config, error)

func NewConfigFromCFHome

func NewConfigFromCFHome(cfHomeDir string) (*Config, error)

type CreateServiceBrokerRequest

type CreateServiceBrokerRequest struct {
	Name      string `json:"name"`
	BrokerURL string `json:"broker_url"`
	Username  string `json:"auth_username"`
	Password  string `json:"auth_password"`
	SpaceGUID string `json:"space_guid,omitempty"`
}

type CreateServiceKeyRequest

type CreateServiceKeyRequest struct {
	Name                string      `json:"name"`
	ServiceInstanceGuid string      `json:"service_instance_guid"`
	Parameters          interface{} `json:"parameters,omitempty"`
}

type CreateV3AppRequest

type CreateV3AppRequest struct {
	Name                 string
	SpaceGUID            string
	EnvironmentVariables map[string]string
	Lifecycle            *V3Lifecycle
	Metadata             *V3Metadata
}

type CreateV3DeploymentOptionalParameters

type CreateV3DeploymentOptionalParameters struct {
	Droplet  *V3Relationship       `json:"droplet,omitempty"`
	Revision *V3DeploymentRevision `json:"revision,omitempty"`
	Strategy *string               `json:"strategy,omitempty"`
	Metadata *V3Metadata           `json:"metadata,omitempty"`
}

type CreateV3OrganizationRequest

type CreateV3OrganizationRequest struct {
	Name      string
	Suspended *bool `json:"suspended,omitempty"`
	Metadata  *V3Metadata
}

type CreateV3SecurityGroupRequest

type CreateV3SecurityGroupRequest struct {
	Name            string                           `json:"name"`
	GloballyEnabled *V3GloballyEnabled               `json:"globally_enabled,omitempty"`
	Rules           []*V3Rule                        `json:"rules,omitempty"`
	Relationships   map[string]V3ToManyRelationships `json:"relationships,omitempty"`
}

CreateV3SecurityGroupRequest implements an object that is passed to CreateV3SecurityGroup method

type CreateV3SpaceRequest

type CreateV3SpaceRequest struct {
	Name     string
	OrgGUID  string
	Metadata *V3Metadata
}

type CurrentDropletV3Response

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

type DockerCredentials

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

type Domain

type Domain struct {
	Guid                   string `json:"guid"`
	Name                   string `json:"name"`
	CreatedAt              string `json:"created_at"`
	UpdatedAt              string `json:"updated_at"`
	OwningOrganizationGuid string `json:"owning_organization_guid"`
	OwningOrganizationUrl  string `json:"owning_organization_url"`
	SharedOrganizationsUrl string `json:"shared_organizations_url"`
	// contains filtered or unexported fields
}

type DomainResource

type DomainResource struct {
	Meta   Meta   `json:"metadata"`
	Entity Domain `json:"entity"`
}

type DomainsResponse

type DomainsResponse struct {
	Count     int              `json:"total_results"`
	Pages     int              `json:"total_pages"`
	NextUrl   string           `json:"next_url"`
	Resources []DomainResource `json:"resources"`
}

type Endpoint

type Endpoint struct {
	DopplerEndpoint   string `json:"doppler_logging_endpoint"`
	LoggingEndpoint   string `json:"logging_endpoint"`
	AuthEndpoint      string `json:"authorization_endpoint"`
	TokenEndpoint     string `json:"token_endpoint"`
	AppSSHEndpoint    string `json:"app_ssh_endpoint"`
	AppSSHOauthClient string `json:"app_ssh_oauth_client"`
}

func DefaultEndpoint

func DefaultEndpoint() *Endpoint

type EnvironmentVariableGroup

type EnvironmentVariableGroup map[string]interface{}

type Event

type Event struct {
	GUID             string                 `json:"guid"`
	Type             string                 `json:"type"`
	CreatedAt        string                 `json:"created_at"`
	Actor            string                 `json:"actor"`
	ActorType        string                 `json:"actor_type"`
	ActorName        string                 `json:"actor_name"`
	ActorUsername    string                 `json:"actor_username"`
	Actee            string                 `json:"actee"`
	ActeeType        string                 `json:"actee_type"`
	ActeeName        string                 `json:"actee_name"`
	OrganizationGUID string                 `json:"organization_guid"`
	SpaceGUID        string                 `json:"space_guid"`
	Metadata         map[string]interface{} `json:"metadata"`
	// contains filtered or unexported fields
}

Event is a type that contains event data.

type EventResource

type EventResource struct {
	Meta   Meta  `json:"metadata"`
	Entity Event `json:"entity"`
}

EventResource is a type that contains metadata and the entity for an event.

type EventsResponse

type EventsResponse struct {
	TotalResults int             `json:"total_results"`
	Pages        int             `json:"total_pages"`
	NextURL      string          `json:"next_url"`
	Resources    []EventResource `json:"resources"`
}

EventsResponse is a type that wraps a collection of event resources.

type HealthCheckType

type HealthCheckType string
const (
	HEALTH_HTTP    HealthCheckType = "http"
	HEALTH_PORT    HealthCheckType = "port"
	HEALTH_PROCESS HealthCheckType = "process"
)

type Info

type Info struct {
	Name                     string `json:"name"`
	Build                    string `json:"build"`
	Support                  string `json:"support"`
	Version                  int    `json:"version"`
	Description              string `json:"description"`
	AuthorizationEndpoint    string `json:"authorization_endpoint"`
	TokenEndpoint            string `json:"token_endpoint"`
	MinCLIVersion            string `json:"min_cli_version"`
	MinRecommendedCLIVersion string `json:"min_recommended_cli_version"`
	APIVersion               string `json:"api_version"`
	AppSSHEndpoint           string `json:"app_ssh_endpoint"`
	AppSSHHostKeyFingerprint string `json:"app_ssh_host_key_fingerprint"`
	AppSSHOauthClient        string `json:"app_ssh_oauth_client"`
	DopplerLoggingEndpoint   string `json:"doppler_logging_endpoint"`
	RoutingEndpoint          string `json:"routing_endpoint"`
	User                     string `json:"user,omitempty"`
}

Info is metadata about a Cloud Foundry deployment

type IsolationSegementResponse

type IsolationSegementResponse struct {
	GUID      string    `json:"guid"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	Links     struct {
		Self struct {
			Href string `json:"href"`
		} `json:"self"`
		Spaces struct {
			Href string `json:"href"`
		} `json:"spaces"`
		Organizations struct {
			Href string `json:"href"`
		} `json:"organizations"`
	} `json:"links"`
}

type IsolationSegment

type IsolationSegment struct {
	GUID      string    `json:"guid"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	// contains filtered or unexported fields
}

func (*IsolationSegment) AddOrg

func (i *IsolationSegment) AddOrg(orgGuid string) error

func (*IsolationSegment) AddSpace

func (i *IsolationSegment) AddSpace(spaceGuid string) error

func (*IsolationSegment) Delete

func (i *IsolationSegment) Delete() error

func (*IsolationSegment) RemoveOrg

func (i *IsolationSegment) RemoveOrg(orgGuid string) error

func (*IsolationSegment) RemoveSpace

func (i *IsolationSegment) RemoveSpace(spaceGuid string) error

type LastOperation

type LastOperation struct {
	Type        string `json:"type"`
	State       string `json:"state"`
	Description string `json:"description"`
	UpdatedAt   string `json:"updated_at"`
	CreatedAt   string `json:"created_at"`
}
type Link struct {
	Href   string `json:"href"`
	Method string `json:"method,omitempty"`
}

Link is a HATEOAS-style link for v3 apis

type ListIsolationSegmentsResponse

type ListIsolationSegmentsResponse struct {
	Pagination Pagination                  `json:"pagination"`
	Resources  []IsolationSegementResponse `json:"resources"`
}

type LoginHint

type LoginHint struct {
	Origin string `json:"origin"`
}

type MaintenanceInfo

type MaintenanceInfo struct {
	Version     string `json:"version"`
	Description string `json:"description"`
}

type Meta

type Meta struct {
	Guid      string `json:"guid"`
	Url       string `json:"url"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

type Metadata

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

func (*Metadata) AddAnnotation

func (m *Metadata) AddAnnotation(key string, value string)

func (*Metadata) AddLabel

func (m *Metadata) AddLabel(prefix, key string, value string)

func (*Metadata) Clear

func (m *Metadata) Clear() *Metadata

func (*Metadata) RemoveAnnotation

func (m *Metadata) RemoveAnnotation(key string)

func (*Metadata) RemoveLabel

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

type MetadataHolder

type MetadataHolder struct {
	Metadata Metadata `json:"metadata"`
}

type Org

type Org struct {
	Guid                        string `json:"guid"`
	CreatedAt                   string `json:"created_at"`
	UpdatedAt                   string `json:"updated_at"`
	Name                        string `json:"name"`
	Status                      string `json:"status"`
	QuotaDefinitionGuid         string `json:"quota_definition_guid"`
	DefaultIsolationSegmentGuid string `json:"default_isolation_segment_guid"`
	// contains filtered or unexported fields
}

func (*Org) AssociateAuditor

func (o *Org) AssociateAuditor(userGUID string) (Org, error)

func (*Org) AssociateAuditorByUsername

func (o *Org) AssociateAuditorByUsername(name string) (Org, error)

func (*Org) AssociateAuditorByUsernameAndOrigin

func (o *Org) AssociateAuditorByUsernameAndOrigin(name, origin string) (Org, error)

func (*Org) AssociateBillingManager

func (o *Org) AssociateBillingManager(userGUID string) (Org, error)

func (*Org) AssociateBillingManagerByUsername

func (o *Org) AssociateBillingManagerByUsername(name string) (Org, error)

func (*Org) AssociateBillingManagerByUsernameAndOrigin

func (o *Org) AssociateBillingManagerByUsernameAndOrigin(name, origin string) (Org, error)

func (*Org) AssociateManager

func (o *Org) AssociateManager(userGUID string) (Org, error)

func (*Org) AssociateManagerByUsername

func (o *Org) AssociateManagerByUsername(name string) (Org, error)

func (*Org) AssociateManagerByUsernameAndOrigin

func (o *Org) AssociateManagerByUsernameAndOrigin(name, origin string) (Org, error)

func (*Org) AssociateUser

func (o *Org) AssociateUser(userGUID string) (Org, error)

func (*Org) AssociateUserByUsername

func (o *Org) AssociateUserByUsername(name string) (Org, error)

func (*Org) AssociateUserByUsernameAndOrigin

func (o *Org) AssociateUserByUsernameAndOrigin(name, origin string) (Org, error)

func (*Org) ListPrivateDomains

func (o *Org) ListPrivateDomains() ([]Domain, error)

func (*Org) ListSpaceQuotas

func (o *Org) ListSpaceQuotas() ([]SpaceQuota, error)

func (*Org) Quota

func (o *Org) Quota() (*OrgQuota, error)

func (*Org) RemoveAuditor

func (o *Org) RemoveAuditor(userGUID string) error

func (*Org) RemoveAuditorByUsername

func (o *Org) RemoveAuditorByUsername(name string) error

func (*Org) RemoveAuditorByUsernameAndOrigin

func (o *Org) RemoveAuditorByUsernameAndOrigin(name, origin string) error

func (*Org) RemoveBillingManager

func (o *Org) RemoveBillingManager(userGUID string) error

func (*Org) RemoveBillingManagerByUsername

func (o *Org) RemoveBillingManagerByUsername(name string) error

func (*Org) RemoveBillingManagerByUsernameAndOrigin

func (o *Org) RemoveBillingManagerByUsernameAndOrigin(name, origin string) error

func (*Org) RemoveManager

func (o *Org) RemoveManager(userGUID string) error

func (*Org) RemoveManagerByUsername

func (o *Org) RemoveManagerByUsername(name string) error

func (*Org) RemoveManagerByUsernameAndOrigin

func (o *Org) RemoveManagerByUsernameAndOrigin(name, origin string) error

func (*Org) RemoveUser

func (o *Org) RemoveUser(userGUID string) error

func (*Org) RemoveUserByUsername

func (o *Org) RemoveUserByUsername(name string) error

func (*Org) RemoveUserByUsernameAndOrigin

func (o *Org) RemoveUserByUsernameAndOrigin(name, origin string) error

func (*Org) SharePrivateDomain

func (o *Org) SharePrivateDomain(privateDomainGUID string) (*Domain, error)

func (*Org) Summary

func (o *Org) Summary() (OrgSummary, error)

func (*Org) UnsharePrivateDomain

func (o *Org) UnsharePrivateDomain(privateDomainGUID string) error

type OrgQuota

type OrgQuota struct {
	Guid                    string `json:"guid"`
	Name                    string `json:"name"`
	CreatedAt               string `json:"created_at,omitempty"`
	UpdatedAt               string `json:"updated_at,omitempty"`
	NonBasicServicesAllowed bool   `json:"non_basic_services_allowed"`
	TotalServices           int    `json:"total_services"`
	TotalRoutes             int    `json:"total_routes"`
	TotalPrivateDomains     int    `json:"total_private_domains"`
	MemoryLimit             int    `json:"memory_limit"`
	TrialDBAllowed          bool   `json:"trial_db_allowed"`
	InstanceMemoryLimit     int    `json:"instance_memory_limit"`
	AppInstanceLimit        int    `json:"app_instance_limit"`
	AppTaskLimit            int    `json:"app_task_limit"`
	TotalServiceKeys        int    `json:"total_service_keys"`
	TotalReservedRoutePorts int    `json:"total_reserved_route_ports"`
	// contains filtered or unexported fields
}

type OrgQuotaRequest

type OrgQuotaRequest struct {
	Name                    string `json:"name"`
	NonBasicServicesAllowed bool   `json:"non_basic_services_allowed"`
	TotalServices           int    `json:"total_services"`
	TotalRoutes             int    `json:"total_routes"`
	TotalPrivateDomains     int    `json:"total_private_domains"`
	MemoryLimit             int    `json:"memory_limit"`
	TrialDBAllowed          bool   `json:"trial_db_allowed"`
	InstanceMemoryLimit     int    `json:"instance_memory_limit"`
	AppInstanceLimit        int    `json:"app_instance_limit"`
	AppTaskLimit            int    `json:"app_task_limit"`
	TotalServiceKeys        int    `json:"total_service_keys"`
	TotalReservedRoutePorts int    `json:"total_reserved_route_ports"`
}

type OrgQuotasResource

type OrgQuotasResource struct {
	Meta   Meta     `json:"metadata"`
	Entity OrgQuota `json:"entity"`
}

type OrgQuotasResponse

type OrgQuotasResponse struct {
	Count     int                 `json:"total_results"`
	Pages     int                 `json:"total_pages"`
	NextUrl   string              `json:"next_url"`
	Resources []OrgQuotasResource `json:"resources"`
}

type OrgRequest

type OrgRequest struct {
	Name                        string `json:"name"`
	Status                      string `json:"status,omitempty"`
	QuotaDefinitionGuid         string `json:"quota_definition_guid,omitempty"`
	DefaultIsolationSegmentGuid string `json:"default_isolation_segment_guid,omitempty"`
}

type OrgResource

type OrgResource struct {
	Meta   Meta `json:"metadata"`
	Entity Org  `json:"entity"`
}

type OrgResponse

type OrgResponse struct {
	Count     int           `json:"total_results"`
	Pages     int           `json:"total_pages"`
	NextUrl   string        `json:"next_url"`
	Resources []OrgResource `json:"resources"`
}

type OrgSummary

type OrgSummary struct {
	Guid   string             `json:"guid"`
	Name   string             `json:"name"`
	Status string             `json:"status"`
	Spaces []OrgSummarySpaces `json:"spaces"`
}

type OrgSummarySpaces

type OrgSummarySpaces struct {
	Guid         string `json:"guid"`
	Name         string `json:"name"`
	ServiceCount int    `json:"service_count"`
	AppCount     int    `json:"app_count"`
	MemDevTotal  int    `json:"mem_dev_total"`
	MemProdTotal int    `json:"mem_prod_total"`
}

type OrgUserResponse

type OrgUserResponse struct {
	Count     int            `json:"total_results"`
	Pages     int            `json:"total_pages"`
	NextURL   string         `json:"next_url"`
	Resources []UserResource `json:"resources"`
}

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 V3 apis

type Process

type Process struct {
	GUID        string `json:"guid"`
	Type        string `json:"type"`
	Instances   int    `json:"instances"`
	MemoryInMB  int    `json:"memory_in_mb"`
	DiskInMB    int    `json:"disk_in_mb"`
	Ports       []int  `json:"ports,omitempty"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
	HealthCheck struct {
		Type string `json:"type"`
		Data struct {
			Timeout           int    `json:"timeout"`
			InvocationTimeout int    `json:"invocation_timeout"`
			Endpoint          string `json:"endpoint"`
		} `json:"data"`
	} `json:"health_check"`
	Links struct {
		Self  Link `json:"self"`
		Scale Link `json:"scale"`
		App   Link `json:"app"`
		Space Link `json:"space"`
		Stats Link `json:"stats"`
	} `json:"links"`
}

Process represents a running process in a container.

type ProcessListResponse

type ProcessListResponse struct {
	Pagination Pagination `json:"pagination"`
	Processes  []Process  `json:"resources"`
}

ProcessListResponse is the json body returned from the API

type Request

type Request struct {
	// contains filtered or unexported fields
}

Request is used to help build up a request

type Resource

type Resource struct {
	Sha1 string `json:"sha1"`
	Size int    `json:"size"`
}

The Resource match Api retruns the response in the following data structure

type Route

type Route struct {
	Guid                string `json:"guid"`
	CreatedAt           string `json:"created_at"`
	UpdatedAt           string `json:"updated_at"`
	Host                string `json:"host"`
	Path                string `json:"path"`
	DomainGuid          string `json:"domain_guid"`
	DomainURL           string `json:"domain_url"`
	SpaceGuid           string `json:"space_guid"`
	ServiceInstanceGuid string `json:"service_instance_guid"`
	Port                int    `json:"port"`
	// contains filtered or unexported fields
}

func (*Route) Domain

func (r *Route) Domain() (*Domain, error)

type RouteMapping

type RouteMapping struct {
	Guid      string `json:"guid"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	AppPort   int    `json:"app_port"`
	AppGUID   string `json:"app_guid"`
	RouteGUID string `json:"route_guid"`
	AppUrl    string `json:"app_url"`
	RouteUrl  string `json:"route_url"`
	// contains filtered or unexported fields
}

type RouteMappingRequest

type RouteMappingRequest struct {
	AppGUID   string `json:"app_guid"`
	RouteGUID string `json:"route_guid"`
	AppPort   int    `json:"app_port"`
}

type RouteMappingResource

type RouteMappingResource struct {
	Meta   Meta         `json:"metadata"`
	Entity RouteMapping `json:"entity"`
}

type RouteMappingResponse

type RouteMappingResponse struct {
	Count     int                    `json:"total_results"`
	Pages     int                    `json:"total_pages"`
	NextUrl   string                 `json:"next_url"`
	Resources []RouteMappingResource `json:"resources"`
}

type RouteRequest

type RouteRequest struct {
	DomainGuid string `json:"domain_guid"`
	SpaceGuid  string `json:"space_guid"`
	Host       string `json:"host"` // required for http routes
	Path       string `json:"path"`
	Port       int    `json:"port"`
}

type RoutesResource

type RoutesResource struct {
	Meta   Meta  `json:"metadata"`
	Entity Route `json:"entity"`
}

type RoutesResponse

type RoutesResponse struct {
	Count     int              `json:"total_results"`
	Pages     int              `json:"total_pages"`
	NextUrl   string           `json:"next_url"`
	Resources []RoutesResource `json:"resources"`
}

type SecGroup

type SecGroup struct {
	Guid              string          `json:"guid"`
	Name              string          `json:"name"`
	CreatedAt         string          `json:"created_at"`
	UpdatedAt         string          `json:"updated_at"`
	Rules             []SecGroupRule  `json:"rules"`
	Running           bool            `json:"running_default"`
	Staging           bool            `json:"staging_default"`
	SpacesURL         string          `json:"spaces_url"`
	StagingSpacesURL  string          `json:"staging_spaces_url"`
	SpacesData        []SpaceResource `json:"spaces"`
	StagingSpacesData []SpaceResource `json:"staging_spaces"`
	// contains filtered or unexported fields
}

func (*SecGroup) ListSpaceResources

func (secGroup *SecGroup) ListSpaceResources() ([]SpaceResource, error)

func (*SecGroup) ListStagingSpaceResources

func (secGroup *SecGroup) ListStagingSpaceResources() ([]SpaceResource, error)

type SecGroupCreateResponse

type SecGroupCreateResponse struct {
	Code        int    `json:"code"`
	ErrorCode   string `json:"error_code"`
	Description string `json:"description"`
}

type SecGroupResource

type SecGroupResource struct {
	Meta   Meta     `json:"metadata"`
	Entity SecGroup `json:"entity"`
}

type SecGroupResponse

type SecGroupResponse struct {
	Count     int                `json:"total_results"`
	Pages     int                `json:"total_pages"`
	NextUrl   string             `json:"next_url"`
	Resources []SecGroupResource `json:"resources"`
}

type SecGroupRule

type SecGroupRule struct {
	Protocol    string `json:"protocol"`
	Ports       string `json:"ports,omitempty"`       // e.g. "4000-5000,9142"
	Destination string `json:"destination"`           // CIDR Format
	Description string `json:"description,omitempty"` // Optional description
	Code        int    `json:"code"`                  // ICMP code
	Type        int    `json:"type"`                  // ICMP type. Only valid if Protocol=="icmp"
	Log         bool   `json:"log,omitempty"`         // If true, log this rule
}

type Service

type Service struct {
	Guid                 string   `json:"guid"`
	Label                string   `json:"label"`
	CreatedAt            string   `json:"created_at"`
	UpdatedAt            string   `json:"updated_at"`
	Description          string   `json:"description"`
	Active               bool     `json:"active"`
	Bindable             bool     `json:"bindable"`
	ServiceBrokerGuid    string   `json:"service_broker_guid"`
	ServiceBrokerName    string   `json:"service_broker_name"`
	PlanUpdateable       bool     `json:"plan_updateable"`
	Tags                 []string `json:"tags"`
	UniqueID             string   `json:"unique_id"`
	Extra                string   `json:"extra"`
	Requires             []string `json:"requires"`
	InstancesRetrievable bool     `json:"instances_retrievable"`
	BindingsRetrievable  bool     `json:"bindings_retrievable"`
	// contains filtered or unexported fields
}

type ServiceBinding

type ServiceBinding struct {
	Guid                string      `json:"guid"`
	Name                string      `json:"name"`
	CreatedAt           string      `json:"created_at"`
	UpdatedAt           string      `json:"updated_at"`
	AppGuid             string      `json:"app_guid"`
	ServiceInstanceGuid string      `json:"service_instance_guid"`
	Credentials         interface{} `json:"credentials"`
	BindingOptions      interface{} `json:"binding_options"`
	GatewayData         interface{} `json:"gateway_data"`
	GatewayName         string      `json:"gateway_name"`
	SyslogDrainUrl      string      `json:"syslog_drain_url"`
	VolumeMounts        interface{} `json:"volume_mounts"`
	AppUrl              string      `json:"app_url"`
	ServiceInstanceUrl  string      `json:"service_instance_url"`
	// contains filtered or unexported fields
}

type ServiceBindingResource

type ServiceBindingResource struct {
	Meta   Meta           `json:"metadata"`
	Entity ServiceBinding `json:"entity"`
}

type ServiceBindingsResponse

type ServiceBindingsResponse struct {
	Count     int                      `json:"total_results"`
	Pages     int                      `json:"total_pages"`
	Resources []ServiceBindingResource `json:"resources"`
	NextUrl   string                   `json:"next_url"`
}

type ServiceBroker

type ServiceBroker struct {
	Guid      string `json:"guid"`
	Name      string `json:"name"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	BrokerURL string `json:"broker_url"`
	Username  string `json:"auth_username"`
	Password  string `json:"auth_password"`
	SpaceGUID string `json:"space_guid,omitempty"`
}

type ServiceBrokerResource

type ServiceBrokerResource struct {
	Meta   Meta          `json:"metadata"`
	Entity ServiceBroker `json:"entity"`
}

type ServiceBrokerResponse

type ServiceBrokerResponse struct {
	Count     int                     `json:"total_results"`
	Pages     int                     `json:"total_pages"`
	NextUrl   string                  `json:"next_url"`
	Resources []ServiceBrokerResource `json:"resources"`
}

type ServiceInstance

type ServiceInstance struct {
	Name               string                 `json:"name"`
	CreatedAt          string                 `json:"created_at"`
	UpdatedAt          string                 `json:"updated_at"`
	Credentials        map[string]interface{} `json:"credentials"`
	ServicePlanGuid    string                 `json:"service_plan_guid"`
	SpaceGuid          string                 `json:"space_guid"`
	DashboardUrl       string                 `json:"dashboard_url"`
	Type               string                 `json:"type"`
	LastOperation      LastOperation          `json:"last_operation"`
	Tags               []string               `json:"tags"`
	ServiceGuid        string                 `json:"service_guid"`
	SpaceUrl           string                 `json:"space_url"`
	ServicePlanUrl     string                 `json:"service_plan_url"`
	ServiceBindingsUrl string                 `json:"service_bindings_url"`
	ServiceKeysUrl     string                 `json:"service_keys_url"`
	RoutesUrl          string                 `json:"routes_url"`
	ServiceUrl         string                 `json:"service_url"`
	Guid               string                 `json:"guid"`
	// contains filtered or unexported fields
}

type ServiceInstanceRequest

type ServiceInstanceRequest struct {
	Name            string                 `json:"name"`
	SpaceGuid       string                 `json:"space_guid"`
	ServicePlanGuid string                 `json:"service_plan_guid"`
	Parameters      map[string]interface{} `json:"parameters,omitempty"`
	Tags            []string               `json:"tags,omitempty"`
}

type ServiceInstanceResource

type ServiceInstanceResource struct {
	Meta   Meta            `json:"metadata"`
	Entity ServiceInstance `json:"entity"`
}

type ServiceInstanceUpdateRequest

type ServiceInstanceUpdateRequest struct {
	Name            string                 `json:"name,omitempty"`
	ServicePlanGuid string                 `json:"service_plan_guid,omitempty"`
	Parameters      map[string]interface{} `json:"parameters,omitempty"`
	Tags            []string               `json:"tags,omitempty"`
}

type ServiceInstancesResponse

type ServiceInstancesResponse struct {
	Count     int                       `json:"total_results"`
	Pages     int                       `json:"total_pages"`
	NextUrl   string                    `json:"next_url"`
	Resources []ServiceInstanceResource `json:"resources"`
}

type ServiceKey

type ServiceKey struct {
	Name                string      `json:"name"`
	Guid                string      `json:"guid"`
	CreatedAt           string      `json:"created_at"`
	UpdatedAt           string      `json:"updated_at"`
	ServiceInstanceGuid string      `json:"service_instance_guid"`
	Credentials         interface{} `json:"credentials"`
	ServiceInstanceUrl  string      `json:"service_instance_url"`
	// contains filtered or unexported fields
}

type ServiceKeyResource

type ServiceKeyResource struct {
	Meta   Meta       `json:"metadata"`
	Entity ServiceKey `json:"entity"`
}

type ServiceKeysResponse

type ServiceKeysResponse struct {
	Count     int                  `json:"total_results"`
	Pages     int                  `json:"total_pages"`
	Resources []ServiceKeyResource `json:"resources"`
	NextUrl   string               `json:"next_url"`
}

type ServiceOfferingEntity

type ServiceOfferingEntity struct {
	Label        string
	Description  string
	Provider     string        `json:"provider"`
	BrokerGUID   string        `json:"service_broker_guid"`
	Requires     []string      `json:"requires"`
	ServicePlans []interface{} `json:"service_plans"`
	Extra        ServiceOfferingExtra
}

type ServiceOfferingExtra

type ServiceOfferingExtra struct {
	DisplayName      string `json:"displayName"`
	DocumentationURL string `json:"documentationURL"`
	LongDescription  string `json:"longDescription"`
}

func (*ServiceOfferingExtra) UnmarshalJSON

func (resource *ServiceOfferingExtra) UnmarshalJSON(rawData []byte) error

type ServiceOfferingResource

type ServiceOfferingResource struct {
	Metadata Meta
	Entity   ServiceOfferingEntity
}

type ServiceOfferingResponse

type ServiceOfferingResponse struct {
	Count     int                       `json:"total_results"`
	Pages     int                       `json:"total_pages"`
	NextUrl   string                    `json:"next_url"`
	PrevUrl   string                    `json:"prev_url"`
	Resources []ServiceOfferingResource `json:"resources"`
}

type ServicePlan

type ServicePlan struct {
	Name                string      `json:"name"`
	Guid                string      `json:"guid"`
	CreatedAt           string      `json:"created_at"`
	UpdatedAt           string      `json:"updated_at"`
	Free                bool        `json:"free"`
	Description         string      `json:"description"`
	ServiceGuid         string      `json:"service_guid"`
	Extra               interface{} `json:"extra"`
	UniqueId            string      `json:"unique_id"`
	Public              bool        `json:"public"`
	Active              bool        `json:"active"`
	Bindable            bool        `json:"bindable"`
	PlanUpdateable      bool        `json:"plan_updateable"`
	ServiceUrl          string      `json:"service_url"`
	ServiceInstancesUrl string      `json:"service_instances_url"`
	// contains filtered or unexported fields
}

type ServicePlanEntity

type ServicePlanEntity struct {
	Name                string                  `json:"name"`
	Free                bool                    `json:"free"`
	Public              bool                    `json:"public"`
	Active              bool                    `json:"active"`
	Description         string                  `json:"description"`
	ServiceOfferingGUID string                  `json:"service_guid"`
	ServiceOffering     ServiceOfferingResource `json:"service"`
}

type ServicePlanResource

type ServicePlanResource struct {
	Meta   Meta        `json:"metadata"`
	Entity ServicePlan `json:"entity"`
}

type ServicePlanVisibilitiesResponse

type ServicePlanVisibilitiesResponse struct {
	Count     int                             `json:"total_results"`
	Pages     int                             `json:"total_pages"`
	NextUrl   string                          `json:"next_url"`
	Resources []ServicePlanVisibilityResource `json:"resources"`
}

type ServicePlanVisibility

type ServicePlanVisibility struct {
	Guid             string `json:"guid"`
	CreatedAt        string `json:"created_at"`
	UpdatedAt        string `json:"updated_at"`
	ServicePlanGuid  string `json:"service_plan_guid"`
	OrganizationGuid string `json:"organization_guid"`
	ServicePlanUrl   string `json:"service_plan_url"`
	OrganizationUrl  string `json:"organization_url"`
	// contains filtered or unexported fields
}

type ServicePlanVisibilityResource

type ServicePlanVisibilityResource struct {
	Meta   Meta                  `json:"metadata"`
	Entity ServicePlanVisibility `json:"entity"`
}

type ServicePlansResponse

type ServicePlansResponse struct {
	Count     int                   `json:"total_results"`
	Pages     int                   `json:"total_pages"`
	NextUrl   string                `json:"next_url"`
	Resources []ServicePlanResource `json:"resources"`
}

type ServiceSummary

type ServiceSummary struct {
	Guid              string          `json:"guid"`
	Name              string          `json:"name"`
	BoundAppCount     int             `json:"bound_app_count"`
	DashboardURL      string          `json:"dashboard_url"`
	ServiceBrokerName string          `json:"service_broker_name"`
	MaintenanceInfo   MaintenanceInfo `json:"maintenance_info"`
	ServicePlan       struct {
		Guid            string          `json:"guid"`
		Name            string          `json:"name"`
		MaintenanceInfo MaintenanceInfo `json:"maintenance_info"`
		Service         struct {
			Guid     string `json:"guid"`
			Label    string `json:"label"`
			Provider string `json:"provider"`
			Version  string `json:"version"`
		} `json:"service"`
	} `json:"service_plan"`
}

type ServiceUsageEvent

type ServiceUsageEvent struct {
	GUID                string `json:"guid"`
	CreatedAt           string `json:"created_at"`
	State               string `json:"state"`
	OrgGUID             string `json:"org_guid"`
	SpaceGUID           string `json:"space_guid"`
	SpaceName           string `json:"space_name"`
	ServiceInstanceGUID string `json:"service_instance_guid"`
	ServiceInstanceName string `json:"service_instance_name"`
	ServiceInstanceType string `json:"service_instance_type"`
	ServicePlanGUID     string `json:"service_plan_guid"`
	ServicePlanName     string `json:"service_plan_name"`
	ServiceGUID         string `json:"service_guid"`
	ServiceLabel        string `json:"service_label"`
	// contains filtered or unexported fields
}

type ServiceUsageEventResource

type ServiceUsageEventResource struct {
	Meta   Meta              `json:"metadata"`
	Entity ServiceUsageEvent `json:"entity"`
}

type ServiceUsageEventsResponse

type ServiceUsageEventsResponse struct {
	TotalResults int                         `json:"total_results"`
	Pages        int                         `json:"total_pages"`
	NextURL      string                      `json:"next_url"`
	Resources    []ServiceUsageEventResource `json:"resources"`
}

type ServicesResource

type ServicesResource struct {
	Meta   Meta    `json:"metadata"`
	Entity Service `json:"entity"`
}

type ServicesResponse

type ServicesResponse struct {
	Count     int                `json:"total_results"`
	Pages     int                `json:"total_pages"`
	NextUrl   string             `json:"next_url"`
	Resources []ServicesResource `json:"resources"`
}

type SharedDomain

type SharedDomain struct {
	Guid            string `json:"guid"`
	Name            string `json:"name"`
	CreatedAt       string `json:"created_at"`
	UpdatedAt       string `json:"updated_at"`
	RouterGroupGuid string `json:"router_group_guid"`
	RouterGroupType string `json:"router_group_type"`
	Internal        bool   `json:"internal"`
	// contains filtered or unexported fields
}

type SharedDomainResource

type SharedDomainResource struct {
	Meta   Meta         `json:"metadata"`
	Entity SharedDomain `json:"entity"`
}

type SharedDomainsResponse

type SharedDomainsResponse struct {
	Count     int                    `json:"total_results"`
	Pages     int                    `json:"total_pages"`
	NextUrl   string                 `json:"next_url"`
	Resources []SharedDomainResource `json:"resources"`
}

type Space

type Space struct {
	Guid                 string      `json:"guid"`
	CreatedAt            string      `json:"created_at"`
	UpdatedAt            string      `json:"updated_at"`
	Name                 string      `json:"name"`
	OrganizationGuid     string      `json:"organization_guid"`
	OrgURL               string      `json:"organization_url"`
	OrgData              OrgResource `json:"organization"`
	QuotaDefinitionGuid  string      `json:"space_quota_definition_guid"`
	IsolationSegmentGuid string      `json:"isolation_segment_guid"`
	AllowSSH             bool        `json:"allow_ssh"`
	// contains filtered or unexported fields
}

func (*Space) AssociateAuditor

func (s *Space) AssociateAuditor(userGUID string) (Space, error)

func (*Space) AssociateAuditorByUsername

func (s *Space) AssociateAuditorByUsername(name string) (Space, error)

func (*Space) AssociateAuditorByUsernameAndOrigin

func (s *Space) AssociateAuditorByUsernameAndOrigin(name, origin string) (Space, error)

func (*Space) AssociateDeveloper

func (s *Space) AssociateDeveloper(userGUID string) (Space, error)

func (*Space) AssociateDeveloperByUsername

func (s *Space) AssociateDeveloperByUsername(name string) (Space, error)

func (*Space) AssociateDeveloperByUsernameAndOrigin

func (s *Space) AssociateDeveloperByUsernameAndOrigin(name, origin string) (Space, error)

func (*Space) AssociateManager

func (s *Space) AssociateManager(userGUID string) (Space, error)

func (*Space) AssociateManagerByUsername

func (s *Space) AssociateManagerByUsername(name string) (Space, error)

func (*Space) AssociateManagerByUsernameAndOrigin

func (s *Space) AssociateManagerByUsernameAndOrigin(name, origin string) (Space, error)

func (*Space) GetServiceOfferings

func (s *Space) GetServiceOfferings() (ServiceOfferingResponse, error)

func (*Space) ListSecGroups

func (s *Space) ListSecGroups() (secGroups []SecGroup, err error)

func (*Space) Org

func (s *Space) Org() (Org, error)

func (*Space) Quota

func (s *Space) Quota() (*SpaceQuota, error)

func (*Space) RemoveAuditor

func (s *Space) RemoveAuditor(userGUID string) error

func (*Space) RemoveAuditorByUsername

func (s *Space) RemoveAuditorByUsername(name string) error

func (*Space) RemoveAuditorByUsernameAndOrigin

func (s *Space) RemoveAuditorByUsernameAndOrigin(name, origin string) error

func (*Space) RemoveDeveloper

func (s *Space) RemoveDeveloper(userGUID string) error

func (*Space) RemoveDeveloperByUsername

func (s *Space) RemoveDeveloperByUsername(name string) error

func (*Space) RemoveDeveloperByUsernameAndOrigin

func (s *Space) RemoveDeveloperByUsernameAndOrigin(name, origin string) error

func (*Space) RemoveManager

func (s *Space) RemoveManager(userGUID string) error

func (*Space) RemoveManagerByUsername

func (s *Space) RemoveManagerByUsername(name string) error

func (*Space) RemoveManagerByUsernameAndOrigin

func (s *Space) RemoveManagerByUsernameAndOrigin(name, origin string) error

func (*Space) Roles

func (s *Space) Roles() ([]SpaceRole, error)

func (*Space) Summary

func (s *Space) Summary() (SpaceSummary, error)

func (*Space) Update

func (s *Space) Update(req SpaceRequest) (Space, error)

type SpaceQuota

type SpaceQuota struct {
	Guid                    string `json:"guid"`
	CreatedAt               string `json:"created_at,omitempty"`
	UpdatedAt               string `json:"updated_at,omitempty"`
	Name                    string `json:"name"`
	OrganizationGuid        string `json:"organization_guid"`
	NonBasicServicesAllowed bool   `json:"non_basic_services_allowed"`
	TotalServices           int    `json:"total_services"`
	TotalRoutes             int    `json:"total_routes"`
	MemoryLimit             int    `json:"memory_limit"`
	InstanceMemoryLimit     int    `json:"instance_memory_limit"`
	AppInstanceLimit        int    `json:"app_instance_limit"`
	AppTaskLimit            int    `json:"app_task_limit"`
	TotalServiceKeys        int    `json:"total_service_keys"`
	TotalReservedRoutePorts int    `json:"total_reserved_route_ports"`
	// contains filtered or unexported fields
}

type SpaceQuotaRequest

type SpaceQuotaRequest struct {
	Name                    string `json:"name"`
	OrganizationGuid        string `json:"organization_guid"`
	NonBasicServicesAllowed bool   `json:"non_basic_services_allowed"`
	TotalServices           int    `json:"total_services"`
	TotalRoutes             int    `json:"total_routes"`
	MemoryLimit             int    `json:"memory_limit"`
	InstanceMemoryLimit     int    `json:"instance_memory_limit"`
	AppInstanceLimit        int    `json:"app_instance_limit"`
	AppTaskLimit            int    `json:"app_task_limit"`
	TotalServiceKeys        int    `json:"total_service_keys"`
	TotalReservedRoutePorts int    `json:"total_reserved_route_ports"`
}

type SpaceQuotasResource

type SpaceQuotasResource struct {
	Meta   Meta       `json:"metadata"`
	Entity SpaceQuota `json:"entity"`
}

type SpaceQuotasResponse

type SpaceQuotasResponse struct {
	Count     int                   `json:"total_results"`
	Pages     int                   `json:"total_pages"`
	NextUrl   string                `json:"next_url"`
	Resources []SpaceQuotasResource `json:"resources"`
}

type SpaceRequest

type SpaceRequest struct {
	Name                 string   `json:"name"`
	OrganizationGuid     string   `json:"organization_guid"`
	DeveloperGuid        []string `json:"developer_guids,omitempty"`
	ManagerGuid          []string `json:"manager_guids,omitempty"`
	AuditorGuid          []string `json:"auditor_guids,omitempty"`
	DomainGuid           []string `json:"domain_guids,omitempty"`
	SecurityGroupGuids   []string `json:"security_group_guids,omitempty"`
	SpaceQuotaDefGuid    string   `json:"space_quota_definition_guid,omitempty"`
	IsolationSegmentGuid string   `json:"isolation_segment_guid,omitempty"`
	AllowSSH             bool     `json:"allow_ssh"`
}

type SpaceResource

type SpaceResource struct {
	Meta   Meta  `json:"metadata"`
	Entity Space `json:"entity"`
}

type SpaceResponse

type SpaceResponse struct {
	Count     int             `json:"total_results"`
	Pages     int             `json:"total_pages"`
	NextUrl   string          `json:"next_url"`
	Resources []SpaceResource `json:"resources"`
}

type SpaceRole

type SpaceRole struct {
	Guid                           string   `json:"guid"`
	Admin                          bool     `json:"admin"`
	Active                         bool     `json:"active"`
	DefaultSpaceGuid               string   `json:"default_space_guid"`
	Username                       string   `json:"username"`
	SpaceRoles                     []string `json:"space_roles"`
	SpacesUrl                      string   `json:"spaces_url"`
	OrganizationsUrl               string   `json:"organizations_url"`
	ManagedOrganizationsUrl        string   `json:"managed_organizations_url"`
	BillingManagedOrganizationsUrl string   `json:"billing_managed_organizations_url"`
	AuditedOrganizationsUrl        string   `json:"audited_organizations_url"`
	ManagedSpacesUrl               string   `json:"managed_spaces_url"`
	AuditedSpacesUrl               string   `json:"audited_spaces_url"`
	// contains filtered or unexported fields
}

type SpaceRoleResource

type SpaceRoleResource struct {
	Meta   Meta      `json:"metadata"`
	Entity SpaceRole `json:"entity"`
}

type SpaceRoleResponse

type SpaceRoleResponse struct {
	Count     int                 `json:"total_results"`
	Pages     int                 `json:"total_pages"`
	NextUrl   string              `json:"next_url"`
	Resources []SpaceRoleResource `json:"resources"`
}

type SpaceSummary

type SpaceSummary struct {
	Guid     string           `json:"guid"`
	Name     string           `json:"name"`
	Apps     []AppSummary     `json:"apps"`
	Services []ServiceSummary `json:"services"`
}

type SpaceUserResponse

type SpaceUserResponse struct {
	Count     int            `json:"total_results"`
	Pages     int            `json:"total_pages"`
	NextURL   string         `json:"next_url"`
	Resources []UserResource `json:"resources"`
}

type Stack

type Stack struct {
	Guid        string `json:"guid"`
	Name        string `json:"name"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
	Description string `json:"description"`
	// contains filtered or unexported fields
}

type StacksResource

type StacksResource struct {
	Meta   Meta  `json:"metadata"`
	Entity Stack `json:"entity"`
}

type StacksResponse

type StacksResponse struct {
	Count     int              `json:"total_results"`
	Pages     int              `json:"total_pages"`
	NextUrl   string           `json:"next_url"`
	Resources []StacksResource `json:"resources"`
}

type Stats

type Stats struct {
	Type  string `json:"type"`
	Index int    `json:"index"`
	State string `json:"state"`
	Usage struct {
		Time string  `json:"time"`
		CPU  float64 `json:"cpu"`
		Mem  int     `json:"mem"`
		Disk int     `json:"disk"`
	} `json:"usage"`
	Host          string `json:"host"`
	InstancePorts []struct {
		External             int `json:"external"`
		Internal             int `json:"internal"`
		ExternalTLSProxyPort int `json:"external_tls_proxy_port"`
		InternalTLSProxyPort int `json:"internal_tls_proxy_port"`
	} `json:"instance_ports"`
	Uptime           int    `json:"uptime"`
	MemQuota         int    `json:"mem_quota"`
	DiskQuota        int    `json:"disk_quota"`
	FdsQuota         int    `json:"fds_quota"`
	IsolationSegment string `json:"isolation_segment"`
	Details          string `json:"details"`
}

Stats represents the stats of a process

type StatsGetResponse

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

StatsGetResponse is the json body returned from the API

type Task

type Task struct {
	GUID       string `json:"guid"`
	SequenceID int    `json:"sequence_id"`
	Name       string `json:"name"`
	Command    string `json:"command"`
	State      string `json:"state"`
	MemoryInMb int    `json:"memory_in_mb"`
	DiskInMb   int    `json:"disk_in_mb"`
	Result     struct {
		FailureReason string `json:"failure_reason"`
	} `json:"result"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	DropletGUID string    `json:"droplet_guid"`
	Links       struct {
		Self    Link `json:"self"`
		App     Link `json:"app"`
		Droplet Link `json:"droplet"`
	} `json:"links"`
}

Task is a description of a task element.

type TaskListResponse

type TaskListResponse struct {
	Pagination Pagination `json:"pagination"`
	Tasks      []Task     `json:"resources"`
}

TaskListResponse is the JSON response from the API.

type TaskRequest

type TaskRequest struct {
	Command          string `json:"command"`
	Name             string `json:"name"`
	MemoryInMegabyte int    `json:"memory_in_mb"`
	DiskInMegabyte   int    `json:"disk_in_mb"`
	DropletGUID      string `json:"droplet_guid"`
}

TaskRequest is a v3 JSON object as described in: http://v3-apidocs.cloudfoundry.org/version/3.0.0/index.html#create-a-task

type UpdateResponse

type UpdateResponse struct {
	Metadata Meta                 `json:"metadata"`
	Entity   UpdateResponseEntity `json:"entity"`
}

type UpdateResponseEntity

type UpdateResponseEntity struct {
	Name                     string                 `json:"name"`
	Production               bool                   `json:"production"`
	SpaceGuid                string                 `json:"space_guid"`
	StackGuid                string                 `json:"stack_guid"`
	Buildpack                string                 `json:"buildpack"`
	DetectedBuildpack        string                 `json:"detected_buildpack"`
	DetectedBuildpackGuid    string                 `json:"detected_buildpack_guid"`
	Environment              map[string]interface{} `json:"environment_json"`
	Memory                   int                    `json:"memory"`
	Instances                int                    `json:"instances"`
	DiskQuota                int                    `json:"disk_quota"`
	State                    string                 `json:"state"`
	Version                  string                 `json:"version"`
	Command                  string                 `json:"command"`
	Console                  bool                   `json:"console"`
	Debug                    string                 `json:"debug"`
	StagingTaskId            string                 `json:"staging_task_id"`
	PackageState             string                 `json:"package_state"`
	HealthCheckHttpEndpoint  string                 `json:"health_check_http_endpoint"`
	HealthCheckType          string                 `json:"health_check_type"`
	HealthCheckTimeout       int                    `json:"health_check_timeout"`
	StagingFailedReason      string                 `json:"staging_failed_reason"`
	StagingFailedDescription string                 `json:"staging_failed_description"`
	Diego                    bool                   `json:"diego,omitempty"`
	DockerImage              string                 `json:"docker_image"`
	DockerCredentials        struct {
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"docker_credentials"`
	PackageUpdatedAt     string `json:"package_updated_at"`
	DetectedStartCommand string `json:"detected_start_command"`
	EnableSSH            bool   `json:"enable_ssh"`
	Ports                []int  `json:"ports"`
	SpaceURL             string `json:"space_url"`
	StackURL             string `json:"stack_url"`
	RoutesURL            string `json:"routes_url"`
	EventsURL            string `json:"events_url"`
	ServiceBindingsUrl   string `json:"service_bindings_url"`
	RouteMappingsUrl     string `json:"route_mappings_url"`
}

type UpdateServiceBrokerRequest

type UpdateServiceBrokerRequest struct {
	Name      string `json:"name"`
	BrokerURL string `json:"broker_url"`
	Username  string `json:"auth_username"`
	Password  string `json:"auth_password"`
}

type UpdateV3AppRequest

type UpdateV3AppRequest struct {
	Name      string       `json:"name"`
	Lifecycle *V3Lifecycle `json:"lifecycle"`
	Metadata  *V3Metadata  `json:"metadata"`
}

type UpdateV3OrganizationRequest

type UpdateV3OrganizationRequest struct {
	Name      string
	Suspended *bool `json:"suspended,omitempty"`
	Metadata  *V3Metadata
}

type UpdateV3SecurityGroupRequest

type UpdateV3SecurityGroupRequest struct {
	Name            string             `json:"name,omitempty"`
	GloballyEnabled *V3GloballyEnabled `json:"globally_enabled,omitempty"`
	Rules           []*V3Rule          `json:"rules,omitempty"`
}

UpdateV3SecurityGroupRequest implements an object that is passed to UpdateV3SecurityGroup method

type UpdateV3SpaceRequest

type UpdateV3SpaceRequest struct {
	Name     string
	Metadata *V3Metadata
}

type User

type User struct {
	Guid                  string `json:"guid"`
	CreatedAt             string `json:"created_at"`
	UpdatedAt             string `json:"updated_at"`
	Admin                 bool   `json:"admin"`
	Active                bool   `json:"active"`
	DefaultSpaceGUID      string `json:"default_space_guid"`
	Username              string `json:"username"`
	SpacesURL             string `json:"spaces_url"`
	OrgsURL               string `json:"organizations_url"`
	ManagedOrgsURL        string `json:"managed_organizations_url"`
	BillingManagedOrgsURL string `json:"billing_managed_organizations_url"`
	AuditedOrgsURL        string `json:"audited_organizations_url"`
	ManagedSpacesURL      string `json:"managed_spaces_url"`
	AuditedSpacesURL      string `json:"audited_spaces_url"`
	// contains filtered or unexported fields
}

type UserProvidedServiceInstance

type UserProvidedServiceInstance struct {
	Guid               string                 `json:"guid"`
	Name               string                 `json:"name"`
	CreatedAt          string                 `json:"created_at"`
	UpdatedAt          string                 `json:"updated_at"`
	Credentials        map[string]interface{} `json:"credentials"`
	SpaceGuid          string                 `json:"space_guid"`
	Type               string                 `json:"type"`
	Tags               []string               `json:"tags"`
	SpaceUrl           string                 `json:"space_url"`
	ServiceBindingsUrl string                 `json:"service_bindings_url"`
	RoutesUrl          string                 `json:"routes_url"`
	RouteServiceUrl    string                 `json:"route_service_url"`
	SyslogDrainUrl     string                 `json:"syslog_drain_url"`
	// contains filtered or unexported fields
}

type UserProvidedServiceInstanceRequest

type UserProvidedServiceInstanceRequest struct {
	Name            string                 `json:"name"`
	Credentials     map[string]interface{} `json:"credentials"`
	SpaceGuid       string                 `json:"space_guid"`
	Tags            []string               `json:"tags"`
	RouteServiceUrl string                 `json:"route_service_url"`
	SyslogDrainUrl  string                 `json:"syslog_drain_url"`
}

type UserProvidedServiceInstanceResource

type UserProvidedServiceInstanceResource struct {
	Meta   Meta                        `json:"metadata"`
	Entity UserProvidedServiceInstance `json:"entity"`
}

type UserProvidedServiceInstancesResponse

type UserProvidedServiceInstancesResponse struct {
	Count     int                                   `json:"total_results"`
	Pages     int                                   `json:"total_pages"`
	NextUrl   string                                `json:"next_url"`
	Resources []UserProvidedServiceInstanceResource `json:"resources"`
}

type UserRequest

type UserRequest struct {
	Guid             string `json:"guid"`
	DefaultSpaceGuid string `json:"default_space_guid,omitempty"`
}

type UserResource

type UserResource struct {
	Meta   Meta `json:"metadata"`
	Entity User `json:"entity"`
}

type UserResponse

type UserResponse struct {
	Count     int            `json:"total_results"`
	Pages     int            `json:"total_pages"`
	NextUrl   string         `json:"next_url"`
	Resources []UserResource `json:"resources"`
}

type Users

type Users []User

func (Users) GetUserByUsername

func (u Users) GetUserByUsername(username string) User

type V3App

type V3App struct {
	Name          string                         `json:"name,omitempty"`
	State         string                         `json:"state,omitempty"`
	Lifecycle     V3Lifecycle                    `json:"lifecycle,omitempty"`
	GUID          string                         `json:"guid,omitempty"`
	CreatedAt     string                         `json:"created_at,omitempty"`
	UpdatedAt     string                         `json:"updated_at,omitempty"`
	Relationships map[string]V3ToOneRelationship `json:"relationships,omitempty"`
	Links         map[string]Link                `json:"links,omitempty"`
	Metadata      V3Metadata                     `json:"metadata,omitempty"`
}

type V3AppEnvironment

type V3AppEnvironment 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 V3BitsPackage

type V3BitsPackage struct {
	Error    string `json:"error,omitempty"`
	Checksum struct {
		Type  string `json:"type,omitempty"`  // eg. sha256
		Value string `json:"value,omitempty"` // populated after the bits are uploaded
	} `json:"checksum,omitempty"`
}

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

type V3Build

type V3Build struct {
	State     string          `json:"state,omitempty"`
	Error     string          `json:"error,omitempty"`
	Lifecycle V3Lifecycle     `json:"lifecycle,omitempty"`
	Package   V3Relationship  `json:"package,omitempty"`
	Droplet   V3Relationship  `json:"droplet,omitempty"`
	GUID      string          `json:"guid,omitempty"`
	CreatedAt string          `json:"created_at,omitempty"`
	UpdatedAt string          `json:"updated_at,omitempty"`
	CreatedBy V3CreatedBy     `json:"created_by,omitempty"`
	Links     map[string]Link `json:"links,omitempty"`
	Metadata  V3Metadata      `json:"metadata,omitempty"`
}

type V3BuildpackLifecycle

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

type V3CreatedBy

type V3CreatedBy struct {
	GUID  string `json:"guid,omitempty"`
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
}

type V3Deployment

type V3Deployment struct {
	GUID            string                         `json:"guid"`
	State           string                         `json:"state"`
	Status          V3DeploymentStatus             `json:"status"`
	Strategy        string                         `json:"strategy"`
	Droplet         V3Relationship                 `json:"droplet"`
	PreviousDroplet V3Relationship                 `json:"previous_droplet"`
	NewProcesses    []V3ProcessReference           `json:"new_processes"`
	Revision        V3DeploymentRevision           `json:"revision"`
	CreatedAt       string                         `json:"created_at,omitempty"`
	UpdatedAt       string                         `json:"updated_at,omitempty"`
	Links           map[string]Link                `json:"links,omitempty"`
	Metadata        V3Metadata                     `json:"metadata,omitempty"`
	Relationships   map[string]V3ToOneRelationship `json:"relationships,omitempty"`
}

type V3DeploymentRevision

type V3DeploymentRevision struct {
	GUID    string `json:"guid"`
	Version int    `json:"version"`
}

type V3DeploymentStatus

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

type V3DetectedBuildpack

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

type V3DockerPackage

type V3DockerPackage struct {
	Image    string `json:"image,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

V3DockerPackage is the data for V3Packages of type docker. It references a docker image from a registry.

type V3Droplet

type V3Droplet struct {
	State             string            `json:"state,omitempty"`
	Error             string            `json:"error,omitempty"`
	Lifecycle         V3Lifecycle       `json:"lifecycle,omitempty"`
	GUID              string            `json:"guid,omitempty"`
	CreatedAt         string            `json:"created_at,omitempty"`
	UpdatedAt         string            `json:"updated_at,omitempty"`
	Links             map[string]Link   `json:"links,omitempty"`
	ExecutionMetadata string            `json:"execution_metadata,omitempty"`
	ProcessTypes      map[string]string `json:"process_types,omitempty"`
	Metadata          V3Metadata        `json:"metadata,omitempty"`

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

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

V3Droplet 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 V3GloballyEnabled

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

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

type V3Lifecycle

type V3Lifecycle struct {
	Type          string               `json:"type,omitempty"`
	BuildpackData V3BuildpackLifecycle `json:"data,omitempty"`
}

type V3Metadata

type V3Metadata struct {
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

type V3Organization

type V3Organization struct {
	Name          string                         `json:"name,omitempty"`
	GUID          string                         `json:"guid,omitempty"`
	Suspended     *bool                          `json:"suspended,omitempty"`
	CreatedAt     string                         `json:"created_at,omitempty"`
	UpdatedAt     string                         `json:"updated_at,omitempty"`
	Relationships map[string]V3ToOneRelationship `json:"relationships,omitempty"`
	Links         map[string]Link                `json:"links,omitempty"`
	Metadata      V3Metadata                     `json:"metadata,omitempty"`
}

type V3Package

type V3Package struct {
	Type      string          `json:"type,omitempty"` // bits or docker
	Data      json.RawMessage `json:"data,omitempty"` // depends on value of Type
	State     V3PackageState  `json:"state,omitempty"`
	GUID      string          `json:"guid,omitempty"`
	CreatedAt string          `json:"created_at,omitempty"`
	UpdatedAt string          `json:"updated_at,omitempty"`
	Links     map[string]Link `json:"links,omitempty"`
	Metadata  V3Metadata      `json:"metadata,omitempty"`
}

func (*V3Package) BitsData

func (v *V3Package) BitsData() (V3BitsPackage, error)

func (*V3Package) DockerData

func (v *V3Package) DockerData() (V3DockerPackage, error)

type V3PackageState

type V3PackageState string
const (
	AwaitingUpload   V3PackageState = "AWAITING_UPLOAD"
	ProcessingUpload V3PackageState = "PROCESSING_UPLOAD"
	Ready            V3PackageState = "READY"
	Failed           V3PackageState = "FAILED"
	Copying          V3PackageState = "COPYING"
	Expired          V3PackageState = "EXPIRED"
)

type V3ProcessReference

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

type V3Relationship

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

type V3Role

type V3Role struct {
	GUID          string                         `json:"guid,omitempty"`
	CreatedAt     string                         `json:"created_at,omitempty"`
	UpdatedAt     string                         `json:"updated_at,omitempty"`
	Type          string                         `json:"type,omitempty"`
	Relationships map[string]V3ToOneRelationship `json:"relationships,omitempty"`
	Links         map[string]Link                `json:"links,omitempty"`
}

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

type V3Rule

type V3Rule struct {
	Protocol    string `json:"protocol,omitempty"`
	Destination string `json:"destination,omitempty"`
	Ports       string `json:"ports,omitempty"`
	Type        *int   `json:"type,omitempty"`
	Code        *int   `json:"code,omitempty"`
	Description string `json:"description,omitempty"`
	Log         bool   `json:"log,omitempty"`
}

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

type V3SecurityGroup

type V3SecurityGroup struct {
	Name            string                           `json:"name,omitempty"`
	GUID            string                           `json:"guid,omitempty"`
	CreatedAt       string                           `json:"created_at,omitempty"`
	UpdatedAt       string                           `json:"updated_at,omitempty"`
	GloballyEnabled V3GloballyEnabled                `json:"globally_enabled,omitempty"`
	Rules           []V3Rule                         `json:"rules,omitempty"`
	Relationships   map[string]V3ToManyRelationships `json:"relationships,omitempty"`
	Links           map[string]Link                  `json:"links,omitempty"`
}

V3SecurityGroup 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 V3Space

type V3Space struct {
	Name          string                         `json:"name,omitempty"`
	GUID          string                         `json:"guid,omitempty"`
	CreatedAt     string                         `json:"created_at,omitempty"`
	UpdatedAt     string                         `json:"updated_at,omitempty"`
	Relationships map[string]V3ToOneRelationship `json:"relationships,omitempty"`
	Links         map[string]Link                `json:"links,omitempty"`
	Metadata      V3Metadata                     `json:"metadata,omitempty"`
}

type V3SpaceUsers

type V3SpaceUsers struct {
	Name          string                         `json:"name,omitempty"`
	GUID          string                         `json:"guid,omitempty"`
	CreatedAt     string                         `json:"created_at,omitempty"`
	UpdatedAt     string                         `json:"updated_at,omitempty"`
	Relationships map[string]V3ToOneRelationship `json:"relationships,omitempty"`
	Links         map[string]Link                `json:"links,omitempty"`
	Metadata      V3Metadata                     `json:"metadata,omitempty"`
}

type V3Stack

type V3Stack struct {
	Name        string          `json:"name,omitempty"`
	GUID        string          `json:"guid,omitempty"`
	CreatedAt   string          `json:"created_at,omitempty"`
	UpdatedAt   string          `json:"updated_at,omitempty"`
	Description string          `json:"description,omitempty"`
	Links       map[string]Link `json:"links,omitempty"`
	Metadata    V3Metadata      `json:"metadata,omitempty"`
}

V3Stack 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 V3ToManyRelationships

type V3ToManyRelationships struct {
	Data []V3Relationship `json:"data,omitempty"`
}

V3ToManyRelationships is a relationship to multiple objects

type V3ToOneRelationship

type V3ToOneRelationship struct {
	Data V3Relationship `json:"data,omitempty"`
}

V3ToOneRelationship is a relationship to a single object

type V3User

type V3User struct {
	GUID             string          `json:"guid,omitempty"`
	CreatedAt        string          `json:"created_at,omitempty"`
	UpdatedAt        string          `json:"updated_at,omitempty"`
	Username         string          `json:"username,omitempty"`
	PresentationName string          `json:"presentation_name,omitempty"`
	Origin           string          `json:"origin,omitempty"`
	Links            map[string]Link `json:"links,omitempty"`
	Metadata         V3Metadata      `json:"metadata,omitempty"`
}

V3User implements the user object

type V3Version

type V3Version struct {
	Links struct {
		CCV3 struct {
			Meta struct {
				Version string `json:"version"`
			} `json:"meta"`
		} `json:"cloud_controller_v3"`
	} `json:"links"`
}

Jump to

Keyboard shortcuts

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