ccerror

package
v6.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APINotFoundError

type APINotFoundError struct {
	URL string
}

APINotFoundError is returned when the API endpoint is not found.

func (APINotFoundError) Error

func (e APINotFoundError) Error() string

type ApplicationNotFoundError added in v6.29.1

type ApplicationNotFoundError struct {
	Name string
}

ApplicationNotFoundError is returned when an endpoint cannot find the specified application

func (ApplicationNotFoundError) Error added in v6.29.1

func (e ApplicationNotFoundError) Error() string

type ApplicationStoppedStatsError

type ApplicationStoppedStatsError struct {
	Message string
}

ApplicationStoppedStatsError is returned when requesting instance information from a stopped app.

func (ApplicationStoppedStatsError) Error

type BadRequestError

type BadRequestError struct {
	Message string
}

BadRequestError is returned when the server says the request was bad.

func (BadRequestError) Error

func (e BadRequestError) Error() string

type BuildpackAlreadyExistsForStackError added in v6.38.0

type BuildpackAlreadyExistsForStackError struct {
	Message string
}

func (BuildpackAlreadyExistsForStackError) Error added in v6.38.0

type BuildpackInvalidError added in v6.48.0

type BuildpackInvalidError struct {
	Message string
}

func (BuildpackInvalidError) Error added in v6.48.0

func (e BuildpackInvalidError) Error() string

type BuildpackNameTakenError added in v6.38.0

type BuildpackNameTakenError struct {
	Message string
}

func (BuildpackNameTakenError) Error added in v6.38.0

func (e BuildpackNameTakenError) Error() string

type BuildpackStackDoesNotExistError added in v6.43.0

type BuildpackStackDoesNotExistError struct {
	Message string
}

func (BuildpackStackDoesNotExistError) Error added in v6.43.0

type BuildpackStacksDontMatchError added in v6.43.0

type BuildpackStacksDontMatchError struct {
	Message string
}

func (BuildpackStacksDontMatchError) Error added in v6.43.0

type BuildpackZipInvalidError added in v6.43.0

type BuildpackZipInvalidError struct {
	Message string
}

func (BuildpackZipInvalidError) Error added in v6.43.0

func (e BuildpackZipInvalidError) Error() string

type DeploymentNotFoundError added in v6.40.0

type DeploymentNotFoundError struct {
}

DeploymentNotFoundError is returned when an endpoint cannot find the specified deployment

func (DeploymentNotFoundError) Error added in v6.40.0

func (e DeploymentNotFoundError) Error() string

type DropletNotFoundError added in v6.30.0

type DropletNotFoundError struct {
}

DropletNotFoundError is returned when an endpoint cannot find the specified application

func (DropletNotFoundError) Error added in v6.30.0

func (e DropletNotFoundError) Error() string

type FeatureFlagNotFoundError added in v6.44.0

type FeatureFlagNotFoundError struct {
}

FeatureFlagNotFoundError is returned when the API endpoint is not found.

func (FeatureFlagNotFoundError) Error added in v6.44.0

func (e FeatureFlagNotFoundError) Error() string

type ForbiddenError

type ForbiddenError struct {
	Message string
}

ForbiddenError is returned when the client is forbidden from executing the request.

func (ForbiddenError) Error

func (e ForbiddenError) Error() string

type InstanceNotFoundError added in v6.29.1

type InstanceNotFoundError struct {
}

InstanceNotFoundError is returned when an endpoint cannot find the specified instance

func (InstanceNotFoundError) Error added in v6.29.1

func (e InstanceNotFoundError) Error() string

type InstancesError

type InstancesError struct {
	Message string
}

InstancesError is returned when requesting instance information encounters an error.

func (InstancesError) Error

func (e InstancesError) Error() string

type InvalidAuthTokenError

type InvalidAuthTokenError struct {
	Message string
}

InvalidAuthTokenError is returned when the client has an invalid authorization header.

func (InvalidAuthTokenError) Error

func (e InvalidAuthTokenError) Error() string

type InvalidBuildpackError added in v6.29.0

type InvalidBuildpackError struct {
}

func (InvalidBuildpackError) Error added in v6.29.0

func (e InvalidBuildpackError) Error() string

type InvalidRelationError added in v6.27.0

type InvalidRelationError struct {
	Message string
}

InvalidRelationError is returned when an association between two entities cannot be created.

func (InvalidRelationError) Error added in v6.27.0

func (e InvalidRelationError) Error() string

type InvalidStartError added in v6.47.1

type InvalidStartError struct {
}

func (InvalidStartError) Error added in v6.47.1

func (e InvalidStartError) Error() string

type InvalidStateError added in v6.52.0

type InvalidStateError struct {
}

func (InvalidStateError) Error added in v6.52.0

func (e InvalidStateError) Error() string

type JobTimeoutError

type JobTimeoutError struct {
	JobGUID string
	Timeout time.Duration
}

JobTimeoutError is returned from PollJob when the OverallPollingTimeout has been reached.

func (JobTimeoutError) Error

func (e JobTimeoutError) Error() string

type MinimumAPIVersionNotMetError added in v6.31.0

type MinimumAPIVersionNotMetError struct {
	CurrentVersion string
	MinimumVersion string
}

func (MinimumAPIVersionNotMetError) Error added in v6.31.0

type MultiError added in v6.38.0

type MultiError struct {
	Errors       []V3Error
	ResponseCode int
}

func (MultiError) Details added in v6.38.0

func (e MultiError) Details() []string

func (MultiError) Error added in v6.38.0

func (e MultiError) Error() string

type NameNotUniqueInOrgError added in v6.46.1

type NameNotUniqueInOrgError struct {
}

func (NameNotUniqueInOrgError) Error added in v6.46.1

func (e NameNotUniqueInOrgError) Error() string

type NameNotUniqueInSpaceError added in v6.29.0

type NameNotUniqueInSpaceError struct {
	UnprocessableEntityError
}

type NilObjectError added in v6.27.0

type NilObjectError struct {
	Object string
}

NilObjectError gets returned when passed a nil object as a parameter.

func (NilObjectError) Error added in v6.27.0

func (e NilObjectError) Error() string

type NotStagedError

type NotStagedError struct {
	Message string
}

NotStagedError is returned when requesting instance information from a not staged app.

func (NotStagedError) Error

func (e NotStagedError) Error() string

type OrganizationNameTakenError added in v6.39.0

type OrganizationNameTakenError struct {
	UnprocessableEntityError
}

OrganizationNameTakenError is returned when an organization with the requested name already exists in the Cloud Controller.

type PipeSeekError added in v6.27.0

type PipeSeekError struct {
	// Err is the error that caused the Seek to be called.
	Err error
}

PipeSeekError is returned by Pipebomb when a Seek is called.

func (PipeSeekError) Error added in v6.27.0

func (e PipeSeekError) Error() string

type ProcessNotFoundError added in v6.29.1

type ProcessNotFoundError struct {
}

ProcessNotFoundError is returned when an endpoint cannot find the specified process

func (ProcessNotFoundError) Error added in v6.29.1

func (e ProcessNotFoundError) Error() string

type QuotaAlreadyExists added in v6.50.0

type QuotaAlreadyExists struct {
	Message string
}

func (QuotaAlreadyExists) Error added in v6.50.0

func (e QuotaAlreadyExists) Error() string

type RawHTTPStatusError

type RawHTTPStatusError struct {
	StatusCode  int
	RawResponse []byte
	RequestIDs  []string
}

RawHTTPStatusError represents any response with a 4xx or 5xx status code.

func (RawHTTPStatusError) Error

func (r RawHTTPStatusError) Error() string

type RequestError

type RequestError struct {
	Err error
}

RequestError represents a generic error encountered while performing the HTTP request. This generic error occurs before a HTTP response is obtained.

func (RequestError) Error

func (e RequestError) Error() string

type ResourceNotFoundError

type ResourceNotFoundError struct {
	Message string
}

ResourceNotFoundError is returned when the client requests a resource that does not exist or does not have permissions to see.

func (ResourceNotFoundError) Error

func (e ResourceNotFoundError) Error() string

type RoleAlreadyExistsError added in v6.47.2

type RoleAlreadyExistsError struct {
	UnprocessableEntityError
}

RoleAlreadyExistsError is returned when a role with the same type, user, and org or space already exists in the Cloud Controller.

type RouteNotUniqueError added in v6.45.0

type RouteNotUniqueError struct {
	UnprocessableEntityError
}

type SSLValidationHostnameError

type SSLValidationHostnameError struct {
	Message string
}

SSLValidationHostnameError replaces x509.HostnameError when the server has SSL certificate that does not match the hostname.

func (SSLValidationHostnameError) Error

type SecurityGroupAlreadyExists added in v6.50.0

type SecurityGroupAlreadyExists struct {
	Message string
}

func (SecurityGroupAlreadyExists) Error added in v6.50.0

type SecurityGroupNotBound added in v6.51.0

type SecurityGroupNotBound struct {
	Message string
}

func (SecurityGroupNotBound) Error added in v6.51.0

func (e SecurityGroupNotBound) Error() string

type ServiceBindingTakenError added in v6.27.0

type ServiceBindingTakenError struct {
	Message string
}

ServiceBindingTakenError is returned when creating a service binding that already exists

func (ServiceBindingTakenError) Error added in v6.27.0

func (e ServiceBindingTakenError) Error() string

type ServiceBrokerBadResponseError added in v6.42.0

type ServiceBrokerBadResponseError struct {
	Message string
}

ServiceBrokerBadResponseError is returned when CC returns an error of type CF-ServiceBrokerBadResponse.

func (ServiceBrokerBadResponseError) Error added in v6.42.0

type ServiceBrokerCatalogInvalidError added in v6.42.0

type ServiceBrokerCatalogInvalidError struct {
	Message string
}

func (ServiceBrokerCatalogInvalidError) Error added in v6.42.0

type ServiceBrokerRequestRejectedError added in v6.42.0

type ServiceBrokerRequestRejectedError struct {
	Message string
}

ServiceBrokerRequestRejectedError is returned when CC returns an error of type CF-ServiceBrokerRequestRejected.

func (ServiceBrokerRequestRejectedError) Error added in v6.42.0

type ServiceInstanceNameTakenError added in v6.42.0

type ServiceInstanceNameTakenError struct {
	Message string
}

ServiceInstanceNameTakenError is returned when creating a service instance that already exists.

func (ServiceInstanceNameTakenError) Error added in v6.42.0

type ServiceKeyTakenError added in v6.40.1

type ServiceKeyTakenError struct {
	Message string
}

ServiceKeyTakenError is returned when creating a service key that already exists

func (ServiceKeyTakenError) Error added in v6.40.1

func (e ServiceKeyTakenError) Error() string

type ServiceOfferingNameAmbiguityError added in v6.51.0

type ServiceOfferingNameAmbiguityError struct {
	ServiceOfferingName string
	ServiceBrokerNames  []string
}

func (ServiceOfferingNameAmbiguityError) Error added in v6.51.0

type ServiceOfferingNotFoundError added in v6.51.0

type ServiceOfferingNotFoundError struct {
	ServiceOfferingName, ServiceBrokerName string
}

func (ServiceOfferingNotFoundError) Error added in v6.51.0

type ServicePlanVisibilityExistsError added in v6.43.0

type ServicePlanVisibilityExistsError struct {
	Message string
}

ServicePlanVisibilityExistsError is returned when creating a service plan visibility that already exists

func (ServicePlanVisibilityExistsError) Error added in v6.43.0

type ServiceUnavailableError

type ServiceUnavailableError struct {
	Message string
}

ServiceUnavailableError wraps a http 503 error.

func (ServiceUnavailableError) Error

func (e ServiceUnavailableError) Error() string

type SpaceNameTakenError added in v6.40.0

type SpaceNameTakenError struct {
	Message string
}

SpaceNameTakenError is returned when creating a space that already exists.

func (SpaceNameTakenError) Error added in v6.40.0

func (e SpaceNameTakenError) Error() string

type TaskWorkersUnavailableError

type TaskWorkersUnavailableError struct {
	Message string
}

TaskWorkersUnavailableError represents the case when no Diego workers are available.

func (TaskWorkersUnavailableError) Error

type UnauthorizedError

type UnauthorizedError struct {
	Message string
}

UnauthorizedError is returned when the client does not have the correct permissions to execute the request.

func (UnauthorizedError) Error

func (e UnauthorizedError) Error() string

type UnknownHTTPSourceError added in v6.33.0

type UnknownHTTPSourceError struct {
	StatusCode  int
	RawResponse []byte
}

UnknownHTTPSourceError represents HTTP responses with status code >= 400 that we cannot unmarshal into a {V2,V3}ErrorResponse. Ex: In "cf api google.com", google will return a 404, but the body will not match an error from the Cloud Controller

func (UnknownHTTPSourceError) Error added in v6.33.0

func (r UnknownHTTPSourceError) Error() string

type UnknownObjectInListError

type UnknownObjectInListError struct {
	Expected   interface{}
	Unexpected interface{}
}

UnknownObjectInListError is returned when iterating through a paginated list. Assuming tests are written for the paginated function, this should be impossible to get.

func (UnknownObjectInListError) Error

func (e UnknownObjectInListError) Error() string

type UnprocessableEntityError

type UnprocessableEntityError struct {
	Message string
}

UnprocessableEntityError is returned when the request cannot be processed by the cloud controller.

func (UnprocessableEntityError) Error

func (e UnprocessableEntityError) Error() string

type UnverifiedServerError

type UnverifiedServerError struct {
	URL string
}

UnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate

func (UnverifiedServerError) Error

func (UnverifiedServerError) Error() string

type UserNotFoundError added in v6.49.0

type UserNotFoundError struct {
	Username string
	Origin   string
}

UserNotFoundError is returned when a role does not exist.

func (UserNotFoundError) Error added in v6.49.0

func (e UserNotFoundError) Error() string

type V2ErrorResponse

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

V2ErrorResponse represents a generic Cloud Controller V2 error response.

type V2JobFailedError added in v6.43.0

type V2JobFailedError struct {
	JobGUID string
	Message string
}

V2JobFailedError represents a failed Cloud Controller Job. It wraps the error returned back from the Cloud Controller.

func (V2JobFailedError) Error added in v6.43.0

func (e V2JobFailedError) Error() string

type V2UnexpectedResponseError

type V2UnexpectedResponseError struct {
	V2ErrorResponse

	RequestIDs   []string
	ResponseCode int
}

V2UnexpectedResponseError is returned when the client gets an error that has not been accounted for.

func (V2UnexpectedResponseError) Error

type V3Error

type V3Error struct {
	Code   int64  `json:"code"`
	Detail string `json:"detail"`
	Title  string `json:"title"`
}

V3Error represents a cloud controller error.

type V3ErrorResponse

type V3ErrorResponse struct {
	Errors []V3Error `json:"errors"`
}

V3ErrorResponse represents a generic Cloud Controller V3 error response.

type V3JobFailedError added in v6.43.0

type V3JobFailedError struct {
	JobGUID string

	// Code is a numeric code for this error.
	Code constant.JobErrorCode `json:"code"`
	// Detail is a verbose description of the error.
	Detail string `json:"detail"`
	// Title is a short description of the error.
	Title string `json:"title"`
}

V3JobFailedError represents a failed Cloud Controller Job. It wraps the error returned back from the Cloud Controller.

func (V3JobFailedError) Error added in v6.43.0

func (e V3JobFailedError) Error() string

type V3UnexpectedResponseError

type V3UnexpectedResponseError struct {
	V3ErrorResponse

	ResponseCode int
	RequestIDs   []string
}

V3UnexpectedResponseError is returned when the client gets an error that has not been accounted for.

func (V3UnexpectedResponseError) Error

Source Files

Jump to

Keyboard shortcuts

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