actionerror

package
v6.34.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPluginRepositoryError

type AddPluginRepositoryError struct {
	Name    string
	URL     string
	Message string
}

func (AddPluginRepositoryError) Error

func (e AddPluginRepositoryError) Error() string

type AppNotFoundInManifestError

type AppNotFoundInManifestError struct {
	Name string
}

func (AppNotFoundInManifestError) Error

type ApplicationAlreadyExistsError

type ApplicationAlreadyExistsError struct {
	Name string
}

ApplicationAlreadyExistsError represents the error that occurs when the application already exists.

func (ApplicationAlreadyExistsError) 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 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 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 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 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 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 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 ccv2.SecurityGroupLifecycle
}

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 MissingNameError

type MissingNameError struct{}

func (MissingNameError) Error

func (MissingNameError) Error() string

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 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 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 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 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 PackageProcessingExpiredError

type PackageProcessingExpiredError struct{}

func (PackageProcessingExpiredError) Error

type PackageProcessingFailedError

type PackageProcessingFailedError struct{}

func (PackageProcessingFailedError) 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 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 proccess 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 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
}

RouteAlreadyExistsError is returned when a route already exists

func (RouteAlreadyExistsError) Error

func (e RouteAlreadyExistsError) Error() string

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
	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 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 SecurityGroupNotBoundError

type SecurityGroupNotBoundError struct {
	Lifecycle ccv2.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 SecurityGroupNotFoundError

type SecurityGroupNotFoundError struct {
	Name string
}

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

func (SecurityGroupNotFoundError) Error

type ServiceBindingNotFoundError

type ServiceBindingNotFoundError struct {
	AppGUID             string
	ServiceInstanceGUID string
}

ServiceBindingNotFoundError is returned when a service binding cannot be found.

func (ServiceBindingNotFoundError) Error

type ServiceInstanceNotFoundError

type ServiceInstanceNotFoundError struct {
	GUID string
	Name string
}

func (ServiceInstanceNotFoundError) 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 SharedServiceInstanceNotFoundError

type SharedServiceInstanceNotFoundError struct {
}

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

func (SharedServiceInstanceNotFoundError) Error

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

Source Files

Jump to

Keyboard shortcuts

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