actionerror

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 423

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrichAPIErrors

func EnrichAPIErrors(e error) error

Types

type ActiveDeploymentNotFoundError

type ActiveDeploymentNotFoundError struct {
}

ActiveDeploymentNotFoundError is an error wrapper that represents the case when the deployment is not found.

func (ActiveDeploymentNotFoundError) Error

Error method to display the error message.

type AddPluginRepositoryError

type AddPluginRepositoryError struct {
	Name    string
	URL     string
	Message string
}

func (AddPluginRepositoryError) Error

func (e AddPluginRepositoryError) Error() string

type AllInstancesCrashedError

type AllInstancesCrashedError struct {
}

func (AllInstancesCrashedError) Error

func (e AllInstancesCrashedError) Error() string

type AmbiguousUserError

type AmbiguousUserError struct {
	Username string
	Origins  []string
}

func (AmbiguousUserError) Error

func (e AmbiguousUserError) Error() string

type AppNotFoundInManifestError

type AppNotFoundInManifestError struct {
	Name string
}

func (AppNotFoundInManifestError) Error

type ApplicationInstanceCrashedError

type ApplicationInstanceCrashedError struct {
	Name string
}

ApplicationInstanceCrashedError is returned when an instance crashes.

func (ApplicationInstanceCrashedError) Error

type ApplicationInstanceFlappingError

type ApplicationInstanceFlappingError struct {
	Name string
}

ApplicationInstanceFlappingError is returned when an instance crashes.

func (ApplicationInstanceFlappingError) Error

type ApplicationInstancesNotFoundError

type ApplicationInstancesNotFoundError struct {
	ApplicationGUID string
}

ApplicationInstancesNotFoundError is returned when the application does not have running instances.

func (ApplicationInstancesNotFoundError) Error

type ApplicationManifestError

type ApplicationManifestError struct {
	Message string
}

ApplicationManifestError when applying the manifest fails

func (ApplicationManifestError) Error

func (a ApplicationManifestError) Error() string

type ApplicationNotFoundError

type ApplicationNotFoundError struct {
	GUID string
	Name string
}

ApplicationNotFoundError is returned when a requested application is not found.

func (ApplicationNotFoundError) Error

func (e ApplicationNotFoundError) Error() string

type ApplicationNotStartedError

type ApplicationNotStartedError struct {
	Name string
}

ApplicationNotStartedError is returned when trying to ssh to an application that is not STARTED.

func (ApplicationNotStartedError) Error

type ApplicationsNotFoundError

type ApplicationsNotFoundError struct {
}

ApplicationsNotFoundError is returned when requested applications are not found.

func (ApplicationsNotFoundError) Error

type AssignDropletError

type AssignDropletError struct {
	Message string
}

AssignDropletError is returned when assigning the current droplet of an app fails

func (AssignDropletError) Error

func (a AssignDropletError) Error() string

type BuildpackAlreadyExistsForStackError

type BuildpackAlreadyExistsForStackError struct {
	Message string
}

func (BuildpackAlreadyExistsForStackError) Error

type BuildpackInvalidError

type BuildpackInvalidError struct {
	Message string
}

func (BuildpackInvalidError) Error

func (e BuildpackInvalidError) Error() string

type BuildpackNameTakenError

type BuildpackNameTakenError struct {
	Name string
}

func (BuildpackNameTakenError) Error

func (e BuildpackNameTakenError) Error() string

type BuildpackNotFoundError

type BuildpackNotFoundError struct {
	BuildpackName string
	StackName     string
}

BuildpackNotFoundError is returned when a requested buildpack is not found.

func (BuildpackNotFoundError) Error

func (e BuildpackNotFoundError) Error() string

type BuildpackStackChangeError

type BuildpackStackChangeError struct {
	BuildpackName string
	BinaryName    string
}

func (BuildpackStackChangeError) Error

type CommandLineOptionsAndManifestConflictError

type CommandLineOptionsAndManifestConflictError struct {
	ManifestAttribute  string
	CommandLineOptions []string
}

func (CommandLineOptionsAndManifestConflictError) Error

type CommandLineOptionsWithMultipleAppsError

type CommandLineOptionsWithMultipleAppsError struct{}

func (CommandLineOptionsWithMultipleAppsError) Error

type DockerPasswordNotSetError

type DockerPasswordNotSetError struct {
}

func (DockerPasswordNotSetError) Error

type DomainNotFoundError

type DomainNotFoundError struct {
	Name string
	GUID string
}

DomainNotFoundError is an error wrapper that represents the case when the domain is not found.

func (DomainNotFoundError) Error

func (e DomainNotFoundError) Error() string

Error method to display the error message.

type DropletNotFoundError

type DropletNotFoundError struct {
	AppGUID string
}

DropletNotFoundError is returned when a requested droplet from an application is not found.

func (DropletNotFoundError) Error

func (e DropletNotFoundError) Error() string

type DuplicateServiceError

type DuplicateServiceError struct {
	Name           string
	ServiceBrokers []string
}

func (DuplicateServiceError) Error

func (e DuplicateServiceError) Error() string

type DuplicateServicePlanError

type DuplicateServicePlanError struct {
	Name                string
	ServiceOfferingName string
	ServiceBrokerName   string
}

func (DuplicateServicePlanError) Error

type EmptyArchiveError

type EmptyArchiveError struct {
	Path string
}

func (EmptyArchiveError) Error

func (e EmptyArchiveError) Error() string

type EmptyBuildpackDirectoryError

type EmptyBuildpackDirectoryError struct {
	Path string
}

EmptyBuildpackDirectoryError represents the error when a user tries to upload new buildpack bits but specifies an empty directory as the path to these bits.

func (EmptyBuildpackDirectoryError) Error

type EmptyDirectoryError

type EmptyDirectoryError struct {
	Path string
}

func (EmptyDirectoryError) Error

func (e EmptyDirectoryError) Error() string

type EnvironmentVariableNotSetError

type EnvironmentVariableNotSetError struct {
	EnvironmentVariableName string
}

EnvironmentVariableNotSetError is returned when trying to unset env variable that was not previously set.

func (EnvironmentVariableNotSetError) Error

type FeatureFlagNotFoundError

type FeatureFlagNotFoundError struct {
	FeatureFlagName string
}

FeatureFlagNotFoundError is returned when a requested feature flag is not found.

func (FeatureFlagNotFoundError) Error

func (e FeatureFlagNotFoundError) Error() string

type FetchingPluginInfoFromRepositoryError

type FetchingPluginInfoFromRepositoryError struct {
	RepositoryName string
	Err            error
}

FetchingPluginInfoFromRepositoryError is returned an error is encountered getting plugin info from a repository.

func (FetchingPluginInfoFromRepositoryError) Error

type FileChangedError

type FileChangedError struct {
	Filename string
}

func (FileChangedError) Error

func (e FileChangedError) Error() string

type GettingPluginRepositoryError

type GettingPluginRepositoryError struct {
	Name    string
	Message string
}

GettingPluginRepositoryError is returned when there's an error accessing the plugin repository.

func (GettingPluginRepositoryError) Error

type HTTPHealthCheckInvalidError

type HTTPHealthCheckInvalidError struct {
}

HTTPHealthCheckInvalidError is returned when an HTTP endpoint is used with a health check type that is not HTTP.

func (HTTPHealthCheckInvalidError) Error

type HostnameWithTCPDomainError

type HostnameWithTCPDomainError struct {
}

func (HostnameWithTCPDomainError) Error

type InvalidBuildpacksError

type InvalidBuildpacksError struct {
}

func (InvalidBuildpacksError) Error

func (err InvalidBuildpacksError) Error() string

type InvalidCommandError

type InvalidCommandError struct {
	CommandName string
}

InvalidCommandError represents an error that happens when help is called with an invalid command.

func (InvalidCommandError) Error

func (err InvalidCommandError) Error() string

type InvalidHTTPRouteSettings

type InvalidHTTPRouteSettings struct {
	Domain string
}

func (InvalidHTTPRouteSettings) Error

func (e InvalidHTTPRouteSettings) Error() string

type InvalidLifecycleError

type InvalidLifecycleError struct {
	Lifecycle string
}

InvalidLifecycleError is returned when the lifecycle specified is neither running nor staging.

func (InvalidLifecycleError) Error

func (e InvalidLifecycleError) Error() string

type InvalidRouteError

type InvalidRouteError struct {
	Route string
}

InvalidRouteError is returned when a route is provided that isn't properly formed URL.

func (InvalidRouteError) Error

func (err InvalidRouteError) Error() string

type InvalidTCPRouteSettings

type InvalidTCPRouteSettings struct {
	Domain string
}

func (InvalidTCPRouteSettings) Error

func (e InvalidTCPRouteSettings) Error() string

type IsolationSegmentAlreadyExistsError

type IsolationSegmentAlreadyExistsError struct {
	Name string
}

IsolationSegmentAlreadyExistsError gets returned when an isolation segment already exists.

func (IsolationSegmentAlreadyExistsError) Error

type IsolationSegmentNotFoundError

type IsolationSegmentNotFoundError struct {
	Name string
}

IsolationSegmentNotFoundError represents the error that occurs when the isolation segment is not found.

func (IsolationSegmentNotFoundError) Error

type LogCacheTimeoutError

type LogCacheTimeoutError struct{}

func (LogCacheTimeoutError) Error

func (LogCacheTimeoutError) Error() string

type MissingNameError

type MissingNameError struct{}

func (MissingNameError) Error

func (MissingNameError) Error() string

type MissingSecurityGroupArgsError

type MissingSecurityGroupArgsError struct{}

func (MissingSecurityGroupArgsError) Error

type MultipleBuildpacksFoundError

type MultipleBuildpacksFoundError struct {
	BuildpackName string
}

MultipleBuildpacksFoundError represents the scenario when the cloud controller returns multiple buildpacks when filtering by name.

func (MultipleBuildpacksFoundError) Error

type MultipleOrganizationQuotasFoundForNameError

type MultipleOrganizationQuotasFoundForNameError struct {
	Name  string
	GUIDs []string
}

func (MultipleOrganizationQuotasFoundForNameError) Error

type MultipleOrganizationsFoundError

type MultipleOrganizationsFoundError struct {
	Name  string
	GUIDs []string
}

MultipleOrganizationsFoundError represents the scenario when the cloud controller returns multiple organizations when filtering by name. This is a far out edge case and should not happen.

func (MultipleOrganizationsFoundError) Error

type MultipleSpacesFoundError

type MultipleSpacesFoundError struct {
	Name    string
	OrgGUID string
}

MultipleSpacesFoundError represents the scenario when the cloud controller returns multiple spaces when filtering by name. This is a far out edge case and should not happen.

func (MultipleSpacesFoundError) Error

func (e MultipleSpacesFoundError) Error() string

type MultipleUAAUsersFoundError

type MultipleUAAUsersFoundError struct {
	Username string
	Origins  []string
}

func (MultipleUAAUsersFoundError) Error

type NOAATimeoutError

type NOAATimeoutError struct{}

func (NOAATimeoutError) Error

func (NOAATimeoutError) Error() string

type NoCompatibleBinaryError

type NoCompatibleBinaryError struct {
}

NoCompatibleBinaryError is returned when a repository contains a specified plugin but not for the specified platform.

func (NoCompatibleBinaryError) Error

func (e NoCompatibleBinaryError) Error() string

type NoDomainsFoundError

type NoDomainsFoundError struct {
	OrganizationGUID string
}

NoDomainsFoundError is returned when there are no private or shared domains accessible to an organization.

func (NoDomainsFoundError) Error

func (e NoDomainsFoundError) Error() string

type NoEligiblePackagesError

type NoEligiblePackagesError struct {
	AppName    string
	BinaryName string
}

func (NoEligiblePackagesError) Error

func (e NoEligiblePackagesError) Error() string

type NoHostnameAndSharedDomainError

type NoHostnameAndSharedDomainError struct{}

func (NoHostnameAndSharedDomainError) Error

type NoMatchingDomainError

type NoMatchingDomainError struct {
	Route string
}

func (NoMatchingDomainError) Error

func (e NoMatchingDomainError) Error() string

type NoOrganizationTargetedError

type NoOrganizationTargetedError struct {
	BinaryName string
}

NoOrganizationTargetedError represents the scenario when an org is not targeted.

func (NoOrganizationTargetedError) Error

type NoRelationshipError

type NoRelationshipError struct {
}

func (NoRelationshipError) Error

func (e NoRelationshipError) Error() string

type NoSpaceTargetedError

type NoSpaceTargetedError struct {
	BinaryName string
}

NoSpaceTargetedError represents the scenario when a space is not targeted.

func (NoSpaceTargetedError) Error

func (NoSpaceTargetedError) Error() string

type NonexistentAppPathError

type NonexistentAppPathError struct {
	Path string
}

func (NonexistentAppPathError) Error

func (e NonexistentAppPathError) Error() string

type NotLoggedInError

type NotLoggedInError struct {
	BinaryName string
}

NotLoggedInError represents the scenario when the user is not logged in.

func (NotLoggedInError) Error

func (NotLoggedInError) Error() string

type OrganizationNameTakenError

type OrganizationNameTakenError struct {
	Name string
}

OrganizationNameTakenError represents the error that occurs when creating an organization fails because an organization with that name already exists

func (OrganizationNameTakenError) Error

type OrganizationNotFoundError

type OrganizationNotFoundError struct {
	GUID string
	Name string
}

OrganizationNotFoundError represents the error that occurs when the organization is not found.

func (OrganizationNotFoundError) Error

type OrganizationQuotaNotFoundError

type OrganizationQuotaNotFoundError struct {
	GUID string
}

func (OrganizationQuotaNotFoundError) Error

type OrganizationQuotaNotFoundForNameError

type OrganizationQuotaNotFoundForNameError struct {
	Name string
}

func (OrganizationQuotaNotFoundForNameError) Error

type OrphanedRoutesNotFoundError

type OrphanedRoutesNotFoundError struct{}

OrphanedRoutesNotFoundError is an error wrapper that represents the case when no orphaned routes are found.

func (OrphanedRoutesNotFoundError) Error

Error method to display the error message.

type PackageNotFoundInAppError

type PackageNotFoundInAppError struct {
	GUID       string
	AppName    string
	BinaryName string
}

func (PackageNotFoundInAppError) Error

type PackageProcessingExpiredError

type PackageProcessingExpiredError struct{}

func (PackageProcessingExpiredError) Error

type PackageProcessingFailedError

type PackageProcessingFailedError struct{}

func (PackageProcessingFailedError) Error

type PasswordGrantTypeLogoutRequiredError

type PasswordGrantTypeLogoutRequiredError struct{}

PasswordGrantTypeLogoutRequiredError is returned when a user tries to authenticate with the password grant type, but a previous user had authenticated with the client grant type

func (PasswordGrantTypeLogoutRequiredError) Error

type PluginBinaryRemoveFailedError

type PluginBinaryRemoveFailedError struct {
	Err error
}

PluginBinaryRemoveFailedError is returned when running the plugin binary fails.

func (PluginBinaryRemoveFailedError) Error

type PluginCommandsConflictError

type PluginCommandsConflictError struct {
	PluginName     string
	PluginVersion  string
	CommandNames   []string
	CommandAliases []string
}

PluginCommandsConflictError is returned when a plugin command name conflicts with a core or existing plugin command name.

func (PluginCommandsConflictError) Error

type PluginExecuteError

type PluginExecuteError struct {
	Err error
}

PluginExecuteError is returned when running the plugin binary fails.

func (PluginExecuteError) Error

func (e PluginExecuteError) Error() string

type PluginInvalidError

type PluginInvalidError struct {
	Err error
}

PluginInvalidError is returned with a plugin is invalid because it is missing a name or has 0 commands.

func (PluginInvalidError) Error

func (PluginInvalidError) Error() string

type PluginInvalidLibraryVersionError

type PluginInvalidLibraryVersionError struct {
}

PluginInvalidLibraryVersionError is returned with a plugin is invalid because it is compiled with an incompatible version of the library.

func (PluginInvalidLibraryVersionError) Error

type PluginNotFoundError

type PluginNotFoundError struct {
	PluginName string
}

PluginNotFoundError is an error returned when a plugin is not found.

func (PluginNotFoundError) Error

func (e PluginNotFoundError) Error() string

Error outputs a plugin not found error message.

type PluginNotFoundInAnyRepositoryError

type PluginNotFoundInAnyRepositoryError struct {
	PluginName string
}

PluginNotFoundInAnyRepositoryError is an error returned when a plugin cannot be found in any repositories.

func (PluginNotFoundInAnyRepositoryError) Error

Error outputs that the plugin cannot be found in any repositories.

type PluginNotFoundInRepositoryError

type PluginNotFoundInRepositoryError struct {
	PluginName     string
	RepositoryName string
}

PluginNotFoundInRepositoryError is an error returned when a plugin is not found.

func (PluginNotFoundInRepositoryError) Error

Error outputs the plugin not found in repository error message.

type PolicyDoesNotExistError

type PolicyDoesNotExistError struct{}

func (PolicyDoesNotExistError) Error

type PortNotProvidedForQueryError

type PortNotProvidedForQueryError struct {
}

func (PortNotProvidedForQueryError) Error

PortNotProvidedForQueryError is returned when trying to GetRouteByComponents, querying by a tcp domain, but omitting a port

type ProcessInstanceNotFoundError

type ProcessInstanceNotFoundError struct {
	ProcessType   string
	InstanceIndex uint
}

ProcessInstanceNotFoundError is returned when the process type or process instance cannot be found

func (ProcessInstanceNotFoundError) Error

type ProcessInstanceNotRunningError

type ProcessInstanceNotRunningError struct {
	ProcessType   string
	InstanceIndex uint
}

ProcessInstanceNotRunningError is returned when trying to perform an action on an instance that is not running

func (ProcessInstanceNotRunningError) Error

type ProcessNotFoundError

type ProcessNotFoundError struct {
	ProcessType string
}

ProcessNotFoundError is returned when a requested application is not found.

func (ProcessNotFoundError) Error

func (e ProcessNotFoundError) Error() string

type PropertyCombinationError

type PropertyCombinationError struct {
	AppName    string
	Properties []string
}

func (PropertyCombinationError) Error

func (e PropertyCombinationError) Error() string

type QuotaNotFoundForNameError

type QuotaNotFoundForNameError struct {
	Name string
}

func (QuotaNotFoundForNameError) Error

type RepositoryAlreadyExistsError

type RepositoryAlreadyExistsError struct {
	Name string
	URL  string
}

func (RepositoryAlreadyExistsError) Error

type RepositoryNameTakenError

type RepositoryNameTakenError struct {
	Name string
}

func (RepositoryNameTakenError) Error

func (e RepositoryNameTakenError) Error() string

type RepositoryNotRegisteredError

type RepositoryNotRegisteredError struct {
	Name string
}

func (RepositoryNotRegisteredError) Error

type RouteAlreadyExistsError

type RouteAlreadyExistsError struct {
	Route string
	Err   error
}

RouteAlreadyExistsError is returned when a route already exists

func (RouteAlreadyExistsError) Error

func (e RouteAlreadyExistsError) Error() string

type RouteBoundToMultipleAppsError

type RouteBoundToMultipleAppsError struct {
	AppName  string
	RouteURL string
}

RouteNotFoundError is returned when a route cannot be found

func (RouteBoundToMultipleAppsError) Error

type RouteDestinationNotFoundError

type RouteDestinationNotFoundError struct {
	AppGUID     string
	ProcessType string
	RouteGUID   string
}

RouteDestinationNotFoundError is returned when a route destination cannot be found

func (RouteDestinationNotFoundError) Error

type RouteInDifferentSpaceError

type RouteInDifferentSpaceError struct {
	Route string
}

RouteInDifferentSpaceError is returned when the route exists in a different space than the one requesting it.

func (RouteInDifferentSpaceError) Error

type RouteNotFoundError

type RouteNotFoundError struct {
	Host       string
	DomainGUID string
	DomainName string
	Path       string
	Port       int
}

RouteNotFoundError is returned when a route cannot be found

func (RouteNotFoundError) Error

func (e RouteNotFoundError) Error() string

type RoutePathWithTCPDomainError

type RoutePathWithTCPDomainError struct {
}

func (RoutePathWithTCPDomainError) Error

type RouterGroupNotFoundError

type RouterGroupNotFoundError struct {
	Name string
}

func (RouterGroupNotFoundError) Error

func (err RouterGroupNotFoundError) Error() string

type SSHEndpointNotSetError

type SSHEndpointNotSetError struct {
}

SSHEndpointNotSetError is returned when staging an application fails.

func (SSHEndpointNotSetError) Error

func (e SSHEndpointNotSetError) Error() string

type SSHHostKeyFingerprintNotSetError

type SSHHostKeyFingerprintNotSetError struct {
}

SSHHostKeyFingerprintNotSetError is returned when staging an application fails.

func (SSHHostKeyFingerprintNotSetError) Error

type SecurityGroupJsonSyntaxError

type SecurityGroupJsonSyntaxError struct {
	Path string
}

func (SecurityGroupJsonSyntaxError) Error

type SecurityGroupNotBoundError

type SecurityGroupNotBoundError struct {
	Lifecycle constant.SecurityGroupLifecycle
	Name      string
}

SecurityGroupNotBoundError is returned when a requested security group is not bound in the requested lifecycle phase to the requested space.

func (SecurityGroupNotBoundError) Error

type SecurityGroupNotBoundToSpaceError

type SecurityGroupNotBoundToSpaceError struct {
	Lifecycle constant.SecurityGroupLifecycle
	Name      string
	Space     string
}

SecurityGroupNotBoundToSpaceError is returned when a requested security group is not bound in the requested lifecycle phase to the requested space.

func (SecurityGroupNotBoundToSpaceError) Error

type SecurityGroupNotFoundError

type SecurityGroupNotFoundError struct {
	Name string
}

SecurityGroupNotFoundError is returned when a requested security group is not found.

func (SecurityGroupNotFoundError) Error

type ServiceAndBrokerCombinationNotFoundError

type ServiceAndBrokerCombinationNotFoundError struct {
	BrokerName  string
	ServiceName string
}

func (ServiceAndBrokerCombinationNotFoundError) Error

type ServiceBindingNotFoundError

type ServiceBindingNotFoundError struct {
	AppGUID             string
	ServiceInstanceGUID string
}

ServiceBindingNotFoundError is returned when a service binding cannot be found.

func (ServiceBindingNotFoundError) Error

type ServiceBrokerNotFoundError

type ServiceBrokerNotFoundError struct {
	Name string
}

func (ServiceBrokerNotFoundError) Error

type ServiceInstanceAlreadySharedError

type ServiceInstanceAlreadySharedError struct{}

ServiceInstanceAlreadySharedError is returned when attempting to shared a service instance to a space in which the service instance has already been shared with.

func (ServiceInstanceAlreadySharedError) Error

type ServiceInstanceNotFoundError

type ServiceInstanceNotFoundError struct {
	GUID string
	Name string
}

func (ServiceInstanceNotFoundError) Error

type ServiceInstanceNotShareableError

type ServiceInstanceNotShareableError struct {
	FeatureFlagEnabled          bool
	ServiceBrokerSharingEnabled bool
}

ServiceInstanceNotShareableError is returned when either the service_instance_sharing feature flag is disabled or the service broker has disabled sharing

func (ServiceInstanceNotShareableError) Error

type ServiceInstanceNotSharedToSpaceError

type ServiceInstanceNotSharedToSpaceError struct {
	ServiceInstanceName string
}

ServiceInstanceNotSharedToSpaceError is returned when attempting to unshare a service instance from a space to which it is not shared.

func (ServiceInstanceNotSharedToSpaceError) Error

type ServiceNotFoundError

type ServiceNotFoundError struct {
	Name, Broker string
}

func (ServiceNotFoundError) Error

func (e ServiceNotFoundError) Error() string

type ServiceOfferingNameAmbiguityError

type ServiceOfferingNameAmbiguityError struct {
	ccerror.ServiceOfferingNameAmbiguityError
}

func (ServiceOfferingNameAmbiguityError) Error

type ServicePlanNotFoundError

type ServicePlanNotFoundError struct {
	PlanName     string
	OfferingName string
}

func (ServicePlanNotFoundError) Error

func (e ServicePlanNotFoundError) Error() string

type ServicePlanVisibilityTypeError

type ServicePlanVisibilityTypeError struct {
}

func (ServicePlanVisibilityTypeError) Error

type ServiceUpgradeNotAvailableError

type ServiceUpgradeNotAvailableError struct{}

ServiceUpgradeNotAvailableError is returned when attempting to upgrade a single service instance, but there is no upgrade available on the current service plan, i.e., service instance is already up-to-date.

func (ServiceUpgradeNotAvailableError) Error

type SharedServiceInstanceNotFoundError

type SharedServiceInstanceNotFoundError struct {
}

SharedServiceInstanceNotFoundError is returned when a service instance is not found when performing a share service.

func (SharedServiceInstanceNotFoundError) Error

type SpaceAlreadyExistsError

type SpaceAlreadyExistsError struct {
	Space string
	Err   error
}

SpaceAlreadyExistsError is returned when a space already exists

func (SpaceAlreadyExistsError) Error

func (e SpaceAlreadyExistsError) Error() string

type SpaceNameTakenError

type SpaceNameTakenError struct {
	Name string
}

func (SpaceNameTakenError) Error

func (err SpaceNameTakenError) Error() string

type SpaceNotFoundError

type SpaceNotFoundError struct {
	GUID string
	Name string
}

SpaceNotFoundError represents the scenario when the space searched for could not be found.

func (SpaceNotFoundError) Error

func (e SpaceNotFoundError) Error() string

type SpaceQuotaNotFoundError

type SpaceQuotaNotFoundError struct {
	GUID string
}

func (SpaceQuotaNotFoundError) Error

func (e SpaceQuotaNotFoundError) Error() string

type SpaceQuotaNotFoundForNameError

type SpaceQuotaNotFoundForNameError struct {
	Name string
}

func (SpaceQuotaNotFoundForNameError) Error

type SpaceSSHAlreadyDisabledError

type SpaceSSHAlreadyDisabledError struct {
	Space string
	Err   error
}

SpaceSSHAlreadyDisabledError is returned when ssh is already disabled on the space

func (SpaceSSHAlreadyDisabledError) Error

type SpaceSSHAlreadyEnabledError

type SpaceSSHAlreadyEnabledError struct {
	Space string
	Err   error
}

SpaceSSHAlreadyEnabledError is returned when ssh is already enabled on the space

func (SpaceSSHAlreadyEnabledError) Error

type StackNotFoundError

type StackNotFoundError struct {
	GUID string
	Name string
}

StackNotFoundError is returned when a requested stack is not found.

func (StackNotFoundError) Error

func (e StackNotFoundError) Error() string

type StagingFailedError

type StagingFailedError struct {
	Reason string
}

StagingFailedError is returned when staging an application fails.

func (StagingFailedError) Error

func (e StagingFailedError) Error() string

type StagingFailedNoAppDetectedError

type StagingFailedNoAppDetectedError struct {
	Reason string
}

StagingFailedNoAppDetectedError is returned when staging an application fails.

func (StagingFailedNoAppDetectedError) Error

type StagingTimeoutError

type StagingTimeoutError struct {
	AppName string
	Timeout time.Duration
}

StagingTimeoutError is returned when staging timeout is reached waiting for an application to stage.

func (StagingTimeoutError) Error

func (e StagingTimeoutError) Error() string

type StartupTimeoutError

type StartupTimeoutError struct {
	Name string
}

StartupTimeoutError is returned when startup timeout is reached waiting for an application to start.

func (StartupTimeoutError) Error

func (e StartupTimeoutError) Error() string

type TCPLookupWithoutPort

type TCPLookupWithoutPort struct {
}

func (TCPLookupWithoutPort) Error

func (TCPLookupWithoutPort) Error() string

type TCPRouteOptionsNotProvidedError

type TCPRouteOptionsNotProvidedError struct {
	Domain string
}

func (TCPRouteOptionsNotProvidedError) Error

type TaskNotFoundError

type TaskNotFoundError struct {
	SequenceID int
}

TaskNotFoundError is returned when no tasks matching the filters are found.

func (TaskNotFoundError) Error

func (e TaskNotFoundError) Error() string

type TaskWorkersUnavailableError

type TaskWorkersUnavailableError struct {
	Message string
}

TaskWorkersUnavailableError is returned when there are no workers to run a given task.

func (TaskWorkersUnavailableError) Error

type TriggerLegacyPushError

type TriggerLegacyPushError struct {
	DomainHostRelated  []string
	GlobalRelated      []string
	InheritanceRelated bool
	RandomRouteRelated bool
}

func (TriggerLegacyPushError) Error

func (e TriggerLegacyPushError) Error() string

type UploadFailedError

type UploadFailedError struct {
	Err error
}

func (UploadFailedError) Error

func (UploadFailedError) Error() string

type UserNotFoundError

type UserNotFoundError struct {
	Username string
	Origin   string
}

UserNotFoundError is an error wrapper that represents the case when the user is not found in UAA.

func (UserNotFoundError) Error

func (e UserNotFoundError) Error() string

Error method to display the error message.

Source Files

Jump to

Keyboard shortcuts

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