translatableerror

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: 13 Imported by: 406

Documentation

Overview

Package translatableerror contains all the command layer translatable errors.

In order to prevent future import cycles, this package should **not** have any non-builtin dependencies!!!

Index

Constants

View Source
const (
	BadCredentialMessage   = "Bad credentials"
	InvalidOriginMessage   = "The origin provided in the login hint is invalid."
	UnmatchedOriginMessage = "The origin provided in the login_hint does not match an active Identity Provider, that supports password grant."
)

Variables

This section is empty.

Functions

func ConvertToTranslatableError

func ConvertToTranslatableError(err error) error

Types

type APINotFoundError

type APINotFoundError struct {
	URL string
}

func (APINotFoundError) Error

func (APINotFoundError) Error() string

func (APINotFoundError) Translate

func (e APINotFoundError) Translate(translate func(string, ...interface{}) string) string

type APIRequestError

type APIRequestError struct {
	Err error
}

func (APIRequestError) Error

func (APIRequestError) Error() string

func (APIRequestError) Translate

func (e APIRequestError) Translate(translate func(string, ...interface{}) string) string

type AccountLockedError

type AccountLockedError struct {
	Message string
}

func (AccountLockedError) Error

func (e AccountLockedError) Error() string

func (AccountLockedError) Translate

func (e AccountLockedError) Translate(translate func(string, ...interface{}) string) string

type AddPluginRepositoryError

type AddPluginRepositoryError struct {
	Name    string
	URL     string
	Message string
}

func (AddPluginRepositoryError) Error

func (AddPluginRepositoryError) Translate

func (e AddPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string

type AppNameOrManifestRequiredError

type AppNameOrManifestRequiredError struct {
	Args []string
}

AppNameOrManifestRequiredError represent an error caused by using two command line arguments that cannot be used together.

func (AppNameOrManifestRequiredError) DisplayUsage

func (AppNameOrManifestRequiredError) DisplayUsage()

func (AppNameOrManifestRequiredError) Error

func (AppNameOrManifestRequiredError) Translate

func (e AppNameOrManifestRequiredError) Translate(translate func(string, ...interface{}) string) string

type AppNotFoundInManifestError

type AppNotFoundInManifestError struct {
	Name string
}

func (AppNotFoundInManifestError) Error

func (AppNotFoundInManifestError) Translate

func (e AppNotFoundInManifestError) Translate(translate func(string, ...interface{}) string) string

type ApplicationNotFoundError

type ApplicationNotFoundError struct {
	GUID string
	Name string
}

func (ApplicationNotFoundError) Error

func (e ApplicationNotFoundError) Error() string

func (ApplicationNotFoundError) Translate

func (e ApplicationNotFoundError) Translate(translate func(string, ...interface{}) string) string

type ApplicationNotStartedError

type ApplicationNotStartedError struct {
	Name string
}

func (ApplicationNotStartedError) Error

func (ApplicationNotStartedError) Translate

func (e ApplicationNotStartedError) Translate(translate func(string, ...interface{}) string) string

type ApplicationUnableToStartError

type ApplicationUnableToStartError struct {
	AppName    string
	BinaryName string
}

func (ApplicationUnableToStartError) Error

func (ApplicationUnableToStartError) Translate

func (e ApplicationUnableToStartError) Translate(translate func(string, ...interface{}) string) string

type ArgumentCombinationError

type ArgumentCombinationError struct {
	Args []string
}

ArgumentCombinationError represent an error caused by using two command line arguments that cannot be used together.

func (ArgumentCombinationError) DisplayUsage

func (ArgumentCombinationError) DisplayUsage()

func (ArgumentCombinationError) Error

func (ArgumentCombinationError) Translate

func (e ArgumentCombinationError) Translate(translate func(string, ...interface{}) string) string

type ArgumentManifestMismatchError

type ArgumentManifestMismatchError struct {
	Arg              string
	ManifestProperty string
	ManifestValue    string
}

ArgumentManifestMismatchError represent an error caused by using a command line flag that conflicts with a given manifest property.

func (ArgumentManifestMismatchError) DisplayUsage

func (ArgumentManifestMismatchError) DisplayUsage()

func (ArgumentManifestMismatchError) Error

func (ArgumentManifestMismatchError) Translate

func (e ArgumentManifestMismatchError) Translate(translate func(string, ...interface{}) string) string

type AssignDropletError

type AssignDropletError struct {
	Message string
}

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

func (AssignDropletError) Error

func (AssignDropletError) Error() string

func (AssignDropletError) Translate

func (e AssignDropletError) Translate(translate func(string, ...interface{}) string) string

type AuthorizationEndpointNotFoundError

type AuthorizationEndpointNotFoundError struct {
}

func (AuthorizationEndpointNotFoundError) Error

func (AuthorizationEndpointNotFoundError) Translate

func (e AuthorizationEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string

type BuildpackNotFoundError

type BuildpackNotFoundError struct {
	BuildpackName string
	StackName     string
}

func (BuildpackNotFoundError) Error

func (e BuildpackNotFoundError) Error() string

func (BuildpackNotFoundError) Translate

func (e BuildpackNotFoundError) Translate(translate func(string, ...interface{}) string) string

type BuildpackStackChangeError

type BuildpackStackChangeError struct {
	BuildpackName string
	BinaryName    string
}

func (BuildpackStackChangeError) Error

func (BuildpackStackChangeError) Translate

func (e BuildpackStackChangeError) Translate(translate func(string, ...interface{}) string) string

type CFNetworkingEndpointNotFoundError

type CFNetworkingEndpointNotFoundError struct {
}

func (CFNetworkingEndpointNotFoundError) Error

func (CFNetworkingEndpointNotFoundError) Translate

func (e CFNetworkingEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string

type CommandLineArgsWithMultipleAppsError

type CommandLineArgsWithMultipleAppsError struct {
}

func (CommandLineArgsWithMultipleAppsError) Error

func (CommandLineArgsWithMultipleAppsError) Translate

func (e CommandLineArgsWithMultipleAppsError) Translate(translate func(string, ...interface{}) string) string

type CommandLineOptionsAndManifestConflictError

type CommandLineOptionsAndManifestConflictError struct {
	ManifestAttribute  string
	CommandLineOptions []string
}

func (CommandLineOptionsAndManifestConflictError) Error

func (CommandLineOptionsAndManifestConflictError) Translate

func (e CommandLineOptionsAndManifestConflictError) Translate(translate func(string, ...interface{}) string) string

type ConflictingBuildpacksError

type ConflictingBuildpacksError struct {
}

func (ConflictingBuildpacksError) Error

func (ConflictingBuildpacksError) Translate

func (e ConflictingBuildpacksError) Translate(translate func(string, ...interface{}) string) string

type DockerPasswordNotSetError

type DockerPasswordNotSetError struct{}

func (DockerPasswordNotSetError) Error

func (DockerPasswordNotSetError) Translate

func (e DockerPasswordNotSetError) Translate(translate func(string, ...interface{}) string) string

type DomainNotFoundError

type DomainNotFoundError struct {
	Name string
	GUID string
}

func (DomainNotFoundError) Error

func (e DomainNotFoundError) Error() string

func (DomainNotFoundError) Translate

func (e DomainNotFoundError) Translate(translate func(string, ...interface{}) string) string

type DownloadPluginHTTPError

type DownloadPluginHTTPError struct {
	Message string
}

func (DownloadPluginHTTPError) Error

func (DownloadPluginHTTPError) Translate

func (e DownloadPluginHTTPError) Translate(translate func(string, ...interface{}) string) string

type DropletFileError

type DropletFileError struct {
	Err error
}

func (DropletFileError) Error

func (DropletFileError) Error() string

func (DropletFileError) Translate

func (e DropletFileError) Translate(translate func(string, ...interface{}) string) string

type EmptyBuildpackDirectoryError

type EmptyBuildpackDirectoryError struct {
	Path string
}

func (EmptyBuildpackDirectoryError) Error

func (EmptyBuildpackDirectoryError) Translate

func (e EmptyBuildpackDirectoryError) Translate(translate func(string, ...interface{}) string) string

type EmptyBuildpacksError

type EmptyBuildpacksError struct{}

func (EmptyBuildpacksError) Error

func (EmptyBuildpacksError) Error() string

func (EmptyBuildpacksError) Translate

func (e EmptyBuildpacksError) Translate(translate func(string, ...interface{}) string) string

type EmptyConfigError

type EmptyConfigError struct {
	FilePath string
}

func (EmptyConfigError) Error

func (EmptyConfigError) Error() string

func (EmptyConfigError) Translate

func (e EmptyConfigError) Translate(translate func(string, ...interface{}) string) string

type EmptyDirectoryError

type EmptyDirectoryError struct {
	Path string
}

func (EmptyDirectoryError) Error

func (e EmptyDirectoryError) Error() string

func (EmptyDirectoryError) Translate

func (e EmptyDirectoryError) Translate(translate func(string, ...interface{}) string) string

type FeatureFlagNotFoundError

type FeatureFlagNotFoundError struct {
	Name string
}

func (FeatureFlagNotFoundError) Error

func (e FeatureFlagNotFoundError) Error() string

func (FeatureFlagNotFoundError) Translate

func (e FeatureFlagNotFoundError) Translate(translate func(string, ...interface{}) string) string

type FetchingPluginInfoFromRepositoriesError

type FetchingPluginInfoFromRepositoriesError struct {
	Message        string
	RepositoryName string
}

func (FetchingPluginInfoFromRepositoriesError) Error

func (FetchingPluginInfoFromRepositoriesError) Translate

func (e FetchingPluginInfoFromRepositoriesError) Translate(translate func(string, ...interface{}) string) string

type FileChangedError

type FileChangedError struct {
	Filename string
}

func (FileChangedError) Error

func (e FileChangedError) Error() string

func (FileChangedError) Translate

func (e FileChangedError) Translate(translate func(string, ...interface{}) string) string

type FileNotFoundError

type FileNotFoundError struct {
	Path string
}

FileNotFoundError is returned when a local plugin binary is not found during installation.

func (FileNotFoundError) Error

func (FileNotFoundError) Error() string

func (FileNotFoundError) Translate

func (e FileNotFoundError) Translate(translate func(string, ...interface{}) string) string

type FlagNoLongerSupportedError

type FlagNoLongerSupportedError struct {
	Flag string
}

FlagNoLongerSupportedError can be used to indicate a flag is no longer supported

func (FlagNoLongerSupportedError) Error

func (FlagNoLongerSupportedError) Translate

func (e FlagNoLongerSupportedError) Translate(translate func(string, ...interface{}) string) 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

func (GettingPluginRepositoryError) Translate

func (e GettingPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string

type HTTPHealthCheckInvalidError

type HTTPHealthCheckInvalidError struct {
}

func (HTTPHealthCheckInvalidError) Error

func (HTTPHealthCheckInvalidError) Translate

func (e HTTPHealthCheckInvalidError) Translate(translate func(string, ...interface{}) string) string

type HTTPStatusError

type HTTPStatusError struct {
	Status string
}

func (HTTPStatusError) Error

func (e HTTPStatusError) Error() string

func (HTTPStatusError) Translate

func (e HTTPStatusError) Translate(translate func(string, ...interface{}) string) string

type HealthCheckTypeUnsupportedError

type HealthCheckTypeUnsupportedError struct {
	SupportedTypes []string
}

func (HealthCheckTypeUnsupportedError) Error

func (HealthCheckTypeUnsupportedError) Translate

func (e HealthCheckTypeUnsupportedError) Translate(translate func(string, ...interface{}) string) string

type HostAndPathNotAllowedWithTCPDomainError

type HostAndPathNotAllowedWithTCPDomainError struct {
	Domain string
}

func (HostAndPathNotAllowedWithTCPDomainError) Error

func (HostAndPathNotAllowedWithTCPDomainError) Translate

func (e HostAndPathNotAllowedWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string

type HostnameWithTCPDomainError

type HostnameWithTCPDomainError struct{}

func (HostnameWithTCPDomainError) Error

func (HostnameWithTCPDomainError) Translate

func (e HostnameWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string

type IncorrectUsageError

type IncorrectUsageError struct {
	Message string
}

func (IncorrectUsageError) DisplayUsage

func (IncorrectUsageError) DisplayUsage()

func (IncorrectUsageError) Error

func (IncorrectUsageError) Error() string

func (IncorrectUsageError) Translate

func (e IncorrectUsageError) Translate(translate func(string, ...interface{}) string) string

type InterpolationError

type InterpolationError struct {
	Err error
}

func (InterpolationError) Error

func (e InterpolationError) Error() string

func (InterpolationError) Translate

func (e InterpolationError) Translate(translate func(string, ...interface{}) string) string

type InvalidBuildpacksError

type InvalidBuildpacksError struct{}

func (InvalidBuildpacksError) Error

func (InvalidBuildpacksError) Translate

func (e InvalidBuildpacksError) Translate(translate func(string, ...interface{}) string) string

type InvalidChecksumError

type InvalidChecksumError struct{}

func (InvalidChecksumError) Error

func (InvalidChecksumError) Error() string

func (InvalidChecksumError) Translate

func (e InvalidChecksumError) Translate(translate func(string, ...interface{}) string) string

type InvalidRefreshTokenError

type InvalidRefreshTokenError struct {
}

func (InvalidRefreshTokenError) Error

func (InvalidRefreshTokenError) Translate

func (e InvalidRefreshTokenError) Translate(translate func(string, ...interface{}) string) string

type InvalidRouteError

type InvalidRouteError struct {
	Route string
}

func (InvalidRouteError) Error

func (InvalidRouteError) Error() string

func (InvalidRouteError) Translate

func (e InvalidRouteError) Translate(translate func(string, ...interface{}) string) string

type InvalidSSLCertError

type InvalidSSLCertError struct {
	URL              string
	SuggestedCommand string
}

func (InvalidSSLCertError) Error

func (InvalidSSLCertError) Error() string

func (InvalidSSLCertError) Translate

func (e InvalidSSLCertError) Translate(translate func(string, ...interface{}) string) string

type InvalidYAMLError

type InvalidYAMLError struct {
	Err error
}

func (InvalidYAMLError) Error

func (e InvalidYAMLError) Error() string

func (InvalidYAMLError) Translate

func (e InvalidYAMLError) Translate(translate func(string, ...interface{}) string) string

type IsolationSegmentNotFoundError

type IsolationSegmentNotFoundError struct {
	Name string
}

func (IsolationSegmentNotFoundError) Error

func (IsolationSegmentNotFoundError) Translate

func (e IsolationSegmentNotFoundError) Translate(translate func(string, ...interface{}) string) string

type JSONSyntaxError

type JSONSyntaxError struct {
	Err error
}

func (JSONSyntaxError) Error

func (e JSONSyntaxError) Error() string

func (JSONSyntaxError) Translate

func (e JSONSyntaxError) Translate(translate func(string, ...interface{}) string) string

type JobFailedError

type JobFailedError struct {
	JobGUID string
	Message string
}

func (JobFailedError) Error

func (JobFailedError) Error() string

func (JobFailedError) Translate

func (e JobFailedError) Translate(translate func(string, ...interface{}) string) string

type JobTimeoutError

type JobTimeoutError struct {
	JobGUID string
	Timeout time.Duration
}

func (JobTimeoutError) Error

func (JobTimeoutError) Error() string

func (JobTimeoutError) Translate

func (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string

type LifecycleMinimumAPIVersionNotMetError

type LifecycleMinimumAPIVersionNotMetError struct {
	CurrentVersion string
	MinimumVersion string
}

func (LifecycleMinimumAPIVersionNotMetError) Error

func (LifecycleMinimumAPIVersionNotMetError) Translate

func (e LifecycleMinimumAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type ManifestCreationError

type ManifestCreationError struct {
	Err error
}

func (ManifestCreationError) Error

func (ManifestCreationError) Error() string

func (ManifestCreationError) Translate

func (e ManifestCreationError) Translate(translate func(string, ...interface{}) string) string

type ManifestFileNotFoundInDirectoryError

type ManifestFileNotFoundInDirectoryError struct {
	PathToManifest string
}

func (ManifestFileNotFoundInDirectoryError) Error

func (ManifestFileNotFoundInDirectoryError) Translate

func (e ManifestFileNotFoundInDirectoryError) Translate(translate func(string, ...interface{}) string) string

type ManualClientCredentialsError

type ManualClientCredentialsError struct{}

func (ManualClientCredentialsError) Error

func (ManualClientCredentialsError) Translate

func (e ManualClientCredentialsError) Translate(translate func(string, ...interface{}) string) string

type MinimumCFAPIVersionNotMetError

type MinimumCFAPIVersionNotMetError struct {
	Command        string
	CurrentVersion string
	MinimumVersion string
}

func (MinimumCFAPIVersionNotMetError) Error

func (MinimumCFAPIVersionNotMetError) Translate

func (e MinimumCFAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type MinimumCLIVersionNotMetError

type MinimumCLIVersionNotMetError struct {
	APIVersion    string
	MinCLIVersion string
	BinaryVersion string
}

func (MinimumCLIVersionNotMetError) Error

func (MinimumCLIVersionNotMetError) Translate

func (e MinimumCLIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type MinimumUAAAPIVersionNotMetError

type MinimumUAAAPIVersionNotMetError struct {
	Command        string
	MinimumVersion string
}

func (MinimumUAAAPIVersionNotMetError) Error

func (MinimumUAAAPIVersionNotMetError) Translate

func (e MinimumUAAAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type MissingCredentialsError

type MissingCredentialsError struct {
	MissingUsername bool
	MissingPassword bool
}

func (MissingCredentialsError) DisplayUsage

func (MissingCredentialsError) DisplayUsage()

func (MissingCredentialsError) Error

func (e MissingCredentialsError) Error() string

func (MissingCredentialsError) Translate

func (e MissingCredentialsError) Translate(translate func(string, ...interface{}) string) string

type MultiError

type MultiError struct {
	Messages []string
}

func (MultiError) Error

func (MultiError) Error() string

func (MultiError) Translate

func (e MultiError) Translate(translate func(string, ...interface{}) string) string

type MultipleBuildpacksFoundError

type MultipleBuildpacksFoundError struct {
	BuildpackName string
}

func (MultipleBuildpacksFoundError) Error

func (MultipleBuildpacksFoundError) Translate

func (e MultipleBuildpacksFoundError) Translate(translate func(string, ...interface{}) string) string

type NetworkPolicyDestinationOrgWithoutSpaceError

type NetworkPolicyDestinationOrgWithoutSpaceError struct{}

func (NetworkPolicyDestinationOrgWithoutSpaceError) DisplayUsage

func (NetworkPolicyDestinationOrgWithoutSpaceError) Error

func (NetworkPolicyDestinationOrgWithoutSpaceError) Translate

func (e NetworkPolicyDestinationOrgWithoutSpaceError) Translate(translate func(string, ...interface{}) string) string

type NetworkPolicyProtocolOrPortNotProvidedError

type NetworkPolicyProtocolOrPortNotProvidedError struct{}

func (NetworkPolicyProtocolOrPortNotProvidedError) DisplayUsage

func (NetworkPolicyProtocolOrPortNotProvidedError) Error

func (NetworkPolicyProtocolOrPortNotProvidedError) Translate

func (e NetworkPolicyProtocolOrPortNotProvidedError) Translate(translate func(string, ...interface{}) string) string

type NoAPISetError

type NoAPISetError struct {
	BinaryName string
}

func (NoAPISetError) Error

func (NoAPISetError) Error() string

func (NoAPISetError) Translate

func (e NoAPISetError) Translate(translate func(string, ...interface{}) string) string

type NoCompatibleBinaryError

type NoCompatibleBinaryError struct {
}

func (NoCompatibleBinaryError) Error

func (e NoCompatibleBinaryError) Error() string

func (NoCompatibleBinaryError) Translate

func (e NoCompatibleBinaryError) Translate(translate func(string, ...interface{}) string) string

type NoDomainsFoundError

type NoDomainsFoundError struct {
}

func (NoDomainsFoundError) Error

func (NoDomainsFoundError) Error() string

func (NoDomainsFoundError) Translate

func (e NoDomainsFoundError) Translate(translate func(string, ...interface{}) string) string

type NoDropletForAppError

type NoDropletForAppError struct {
	AppName     string
	DropletGUID string
}

NoDropletForAppError will default to current droplet if no droplet GUID is provided

func (NoDropletForAppError) Error

func (e NoDropletForAppError) Error() string

func (NoDropletForAppError) Translate

func (e NoDropletForAppError) Translate(translate func(string, ...interface{}) string) string

type NoEligiblePackagesError

type NoEligiblePackagesError struct {
	AppName    string
	BinaryName string
}

func (NoEligiblePackagesError) Error

func (NoEligiblePackagesError) Translate

func (e NoEligiblePackagesError) Translate(translate func(string, ...interface{}) string) string

type NoHostnameAndSharedDomainError

type NoHostnameAndSharedDomainError struct{}

func (NoHostnameAndSharedDomainError) Error

func (NoHostnameAndSharedDomainError) Translate

func (e NoHostnameAndSharedDomainError) Translate(translate func(string, ...interface{}) string) string

type NoMatchingDomainError

type NoMatchingDomainError struct {
	Route string
}

func (NoMatchingDomainError) Error

func (e NoMatchingDomainError) Error() string

func (NoMatchingDomainError) Translate

func (e NoMatchingDomainError) Translate(translate func(string, ...interface{}) string) string

type NoOrganizationTargetedError

type NoOrganizationTargetedError struct {
	BinaryName string
}

func (NoOrganizationTargetedError) Error

func (NoOrganizationTargetedError) Translate

func (e NoOrganizationTargetedError) Translate(translate func(string, ...interface{}) string) string

type NoPluginRepositoriesError

type NoPluginRepositoriesError struct{}

func (NoPluginRepositoriesError) Error

func (NoPluginRepositoriesError) Translate

func (e NoPluginRepositoriesError) Translate(translate func(string, ...interface{}) string) string

type NoSpaceTargetedError

type NoSpaceTargetedError struct {
	BinaryName string
}

func (NoSpaceTargetedError) Error

func (NoSpaceTargetedError) Error() string

func (NoSpaceTargetedError) Translate

func (e NoSpaceTargetedError) Translate(translate func(string, ...interface{}) string) string

type NotLoggedInError

type NotLoggedInError struct {
	BinaryName string
}

func (NotLoggedInError) Error

func (NotLoggedInError) Error() string

func (NotLoggedInError) Translate

func (e NotLoggedInError) Translate(translate func(string, ...interface{}) string) string

type NotSharedDomainError

type NotSharedDomainError struct {
	DomainName string
}

func (NotSharedDomainError) Error

func (NotSharedDomainError) Error() string

func (NotSharedDomainError) Translate

func (e NotSharedDomainError) Translate(translate func(string, ...interface{}) string) string

type OrganizationNotFoundError

type OrganizationNotFoundError struct {
	GUID string
	Name string
}

func (OrganizationNotFoundError) Error

func (OrganizationNotFoundError) Translate

func (e OrganizationNotFoundError) Translate(translate func(string, ...interface{}) string) string

type OrganizationWithSpaceNotFoundError

type OrganizationWithSpaceNotFoundError struct {
	GUID      string
	Name      string
	SpaceName string
}

func (OrganizationWithSpaceNotFoundError) Error

func (OrganizationWithSpaceNotFoundError) Translate

func (e OrganizationWithSpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type PackageNotFoundInAppError

type PackageNotFoundInAppError struct {
	AppName    string
	BinaryName string
}

func (PackageNotFoundInAppError) Error

func (PackageNotFoundInAppError) Translate

func (e PackageNotFoundInAppError) Translate(translate func(string, ...interface{}) string) string

type ParseArgumentError

type ParseArgumentError struct {
	ArgumentName string
	ExpectedType string
}

func (ParseArgumentError) DisplayUsage

func (ParseArgumentError) DisplayUsage()

func (ParseArgumentError) Error

func (ParseArgumentError) Error() string

func (ParseArgumentError) Translate

func (e ParseArgumentError) Translate(translate func(string, ...interface{}) string) string

type PasswordGrantTypeLogoutRequiredError

type PasswordGrantTypeLogoutRequiredError struct{}

func (PasswordGrantTypeLogoutRequiredError) Error

func (PasswordGrantTypeLogoutRequiredError) Translate

func (e PasswordGrantTypeLogoutRequiredError) Translate(translate func(string, ...interface{}) string) string

type PasswordVerificationFailedError

type PasswordVerificationFailedError struct{}

func (PasswordVerificationFailedError) Error

func (PasswordVerificationFailedError) Translate

func (e PasswordVerificationFailedError) Translate(translate func(string, ...interface{}) string) string

type PluginAlreadyInstalledError

type PluginAlreadyInstalledError struct {
	BinaryName string
	Name       string
	Version    string
}

PluginAlreadyInstalledError is returned when the plugin has the same name as an installed plugin.

func (PluginAlreadyInstalledError) Error

func (PluginAlreadyInstalledError) Translate

func (e PluginAlreadyInstalledError) Translate(translate func(string, ...interface{}) string) string

type PluginBinaryRemoveFailedError

type PluginBinaryRemoveFailedError struct {
	Err error
}

PluginBinaryRemoveFailedError is returned when the removal of a plugin binary fails.

func (PluginBinaryRemoveFailedError) Error

func (PluginBinaryRemoveFailedError) Translate

func (e PluginBinaryRemoveFailedError) Translate(translate func(string, ...interface{}) string) string

type PluginBinaryUninstallError

type PluginBinaryUninstallError struct {
	Err error
}

PluginBinaryUninstallError is returned when running the plugin's uninstall hook fails.

func (PluginBinaryUninstallError) Error

func (PluginBinaryUninstallError) Translate

func (e PluginBinaryUninstallError) Translate(translate func(string, ...interface{}) string) string

type PluginCommandsConflictError

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

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

func (PluginCommandsConflictError) Error

func (PluginCommandsConflictError) Translate

func (e PluginCommandsConflictError) Translate(translate func(string, ...interface{}) string) 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 (e PluginInvalidError) Error() string

func (PluginInvalidError) Translate

func (e PluginInvalidError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundError

type PluginNotFoundError struct {
	PluginName string
}

func (PluginNotFoundError) Error

func (e PluginNotFoundError) Error() string

func (PluginNotFoundError) Translate

func (e PluginNotFoundError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundInRepositoryError

type PluginNotFoundInRepositoryError struct {
	BinaryName     string
	PluginName     string
	RepositoryName string
}

func (PluginNotFoundInRepositoryError) Error

func (PluginNotFoundInRepositoryError) Translate

func (e PluginNotFoundInRepositoryError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundOnDiskOrInAnyRepositoryError

type PluginNotFoundOnDiskOrInAnyRepositoryError struct {
	PluginName string
	BinaryName string
}

func (PluginNotFoundOnDiskOrInAnyRepositoryError) Error

func (PluginNotFoundOnDiskOrInAnyRepositoryError) Translate

func (e PluginNotFoundOnDiskOrInAnyRepositoryError) Translate(translate func(string, ...interface{}) string) string

type PortNotAllowedWithHTTPDomainError

type PortNotAllowedWithHTTPDomainError struct {
	Domain string
}

func (PortNotAllowedWithHTTPDomainError) Error

func (PortNotAllowedWithHTTPDomainError) Translate

func (e PortNotAllowedWithHTTPDomainError) Translate(translate func(string, ...interface{}) string) string

type ProcessInstanceNotFoundError

type ProcessInstanceNotFoundError struct {
	ProcessType   string
	InstanceIndex uint
}

ProcessInstanceNotFoundError is returned when a process type or process instance can't be found

func (ProcessInstanceNotFoundError) Error

func (ProcessInstanceNotFoundError) Translate

func (e ProcessInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string

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

func (ProcessInstanceNotRunningError) Translate

func (e ProcessInstanceNotRunningError) Translate(translate func(string, ...interface{}) string) string

type ProcessNotFoundError

type ProcessNotFoundError struct {
	ProcessType string
}

ProcessNotFoundError is returned when a process type can't be found

func (ProcessNotFoundError) Error

func (ProcessNotFoundError) Error() string

func (ProcessNotFoundError) Translate

func (e ProcessNotFoundError) Translate(translate func(string, ...interface{}) string) string

type PropertyCombinationError

type PropertyCombinationError struct {
	AppName    string
	Properties []string
}

func (PropertyCombinationError) Error

func (e PropertyCombinationError) Error() string

func (PropertyCombinationError) Translate

func (e PropertyCombinationError) Translate(translate func(string, ...interface{}) string) string

type QuotaNotFoundForNameError

type QuotaNotFoundForNameError struct {
	Name string
}

QuotaNotFoundForNameError is returned when a quota with the given name can't be found.

func (QuotaNotFoundForNameError) Error

func (QuotaNotFoundForNameError) Translate

func (e QuotaNotFoundForNameError) Translate(translate func(string, ...interface{}) string) string

type RepositoryNameTakenError

type RepositoryNameTakenError struct {
	Name string
}

RepositoryNameTakenError is returned when adding a plugin repository fails due to a repository already existing with the same name

func (RepositoryNameTakenError) Error

func (RepositoryNameTakenError) Translate

func (e RepositoryNameTakenError) Translate(translate func(string, ...interface{}) string) string

type RepositoryNotRegisteredError

type RepositoryNotRegisteredError struct {
	Name string
}

func (RepositoryNotRegisteredError) Error

func (RepositoryNotRegisteredError) Translate

func (e RepositoryNotRegisteredError) Translate(translate func(string, ...interface{}) string) string

type RequiredArgumentError

type RequiredArgumentError struct {
	ArgumentName string
}

func (RequiredArgumentError) DisplayUsage

func (RequiredArgumentError) DisplayUsage()

func (RequiredArgumentError) Error

func (RequiredArgumentError) Error() string

func (RequiredArgumentError) Translate

func (e RequiredArgumentError) Translate(translate func(string, ...interface{}) string) string

type RequiredFlagsError

type RequiredFlagsError struct {
	Arg1 string
	Arg2 string
}

RequiredFlagsError represent an error caused by using a command line argument that requires another flags to be used.

func (RequiredFlagsError) DisplayUsage

func (RequiredFlagsError) DisplayUsage()

func (RequiredFlagsError) Error

func (RequiredFlagsError) Error() string

func (RequiredFlagsError) Translate

func (e RequiredFlagsError) Translate(translate func(string, ...interface{}) string) string

type RouteInDifferentSpaceError

type RouteInDifferentSpaceError struct {
	Route string
}

func (RouteInDifferentSpaceError) Error

func (RouteInDifferentSpaceError) Translate

func (e RouteInDifferentSpaceError) Translate(translate func(string, ...interface{}) string) string

type RoutePathWithTCPDomainError

type RoutePathWithTCPDomainError struct{}

func (RoutePathWithTCPDomainError) Error

func (RoutePathWithTCPDomainError) Translate

func (e RoutePathWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string

type RouterGroupNotFoundError

type RouterGroupNotFoundError struct {
	Name string
}

func (RouterGroupNotFoundError) Error

func (e RouterGroupNotFoundError) Error() string

func (RouterGroupNotFoundError) Translate

func (e RouterGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string

type RunTaskError

type RunTaskError struct {
	Message string
}

func (RunTaskError) Error

func (RunTaskError) Error() string

func (RunTaskError) Translate

func (e RunTaskError) Translate(translate func(string, ...interface{}) string) string

type SSHUnableToAuthenticateError

type SSHUnableToAuthenticateError struct{}

func (SSHUnableToAuthenticateError) Error

func (SSHUnableToAuthenticateError) Translate

func (e SSHUnableToAuthenticateError) Translate(translate func(string, ...interface{}) string) string

type SSLCertError

type SSLCertError struct {
	Message string
}

func (SSLCertError) Error

func (SSLCertError) Error() string

func (SSLCertError) Translate

func (e SSLCertError) Translate(translate func(string, ...interface{}) string) string

type SecurityGroupNotFoundError

type SecurityGroupNotFoundError struct {
	Name string
}

func (SecurityGroupNotFoundError) Error

func (SecurityGroupNotFoundError) Translate

func (e SecurityGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string

type ServiceInstanceNotFoundError

type ServiceInstanceNotFoundError struct {
	GUID string
	Name string
}

func (ServiceInstanceNotFoundError) Error

func (ServiceInstanceNotFoundError) Translate

func (e ServiceInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string

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

func (ServiceInstanceNotShareableError) Translate

func (e ServiceInstanceNotShareableError) Translate(translate func(string, ...interface{}) string) string

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

func (ServiceInstanceNotSharedToSpaceError) Translate

func (e ServiceInstanceNotSharedToSpaceError) Translate(translate func(string, ...interface{}) string) string

type ServicePlanNotFoundError

type ServicePlanNotFoundError struct {
	PlanName     string
	OfferingName string
}

func (ServicePlanNotFoundError) Error

func (e ServicePlanNotFoundError) Error() string

func (ServicePlanNotFoundError) Translate

func (e ServicePlanNotFoundError) Translate(translate func(string, ...interface{}) string) string

type SharedServiceInstanceNotFoundError

type SharedServiceInstanceNotFoundError struct {
}

func (SharedServiceInstanceNotFoundError) Error

func (SharedServiceInstanceNotFoundError) Translate

func (e SharedServiceInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type SpaceNotFoundError

type SpaceNotFoundError struct {
	Name string
}

func (SpaceNotFoundError) Error

func (SpaceNotFoundError) Error() string

func (SpaceNotFoundError) Translate

func (e SpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type SpaceQuotaNotFoundForNameError

type SpaceQuotaNotFoundForNameError struct {
	Name string
}

func (SpaceQuotaNotFoundForNameError) Error

func (SpaceQuotaNotFoundForNameError) Translate

func (e SpaceQuotaNotFoundForNameError) Translate(translate func(string, ...interface{}) string) string

type StackNotFoundError

type StackNotFoundError struct {
	GUID string
	Name string
}

func (StackNotFoundError) Error

func (e StackNotFoundError) Error() string

func (StackNotFoundError) Translate

func (e StackNotFoundError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedError

type StagingFailedError struct {
	Message string
}

func (StagingFailedError) Error

func (StagingFailedError) Error() string

func (StagingFailedError) Translate

func (e StagingFailedError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedNoAppDetectedError

type StagingFailedNoAppDetectedError struct {
	Message    string
	BinaryName string
}

func (StagingFailedNoAppDetectedError) Error

func (StagingFailedNoAppDetectedError) Translate

func (e StagingFailedNoAppDetectedError) Translate(translate func(string, ...interface{}) string) string

type StagingTimeoutError

type StagingTimeoutError struct {
	AppName string
	Timeout time.Duration
}

func (StagingTimeoutError) Error

func (StagingTimeoutError) Error() string

func (StagingTimeoutError) Translate

func (e StagingTimeoutError) Translate(translate func(string, ...interface{}) string) string

type StartupTimeoutError

type StartupTimeoutError struct {
	AppName    string
	BinaryName string
}

func (StartupTimeoutError) Error

func (StartupTimeoutError) Error() string

func (StartupTimeoutError) Translate

func (e StartupTimeoutError) Translate(translate func(string, ...interface{}) string) string

type TCPRouteOptionsNotProvidedError

type TCPRouteOptionsNotProvidedError struct {
}

func (TCPRouteOptionsNotProvidedError) Error

func (TCPRouteOptionsNotProvidedError) Translate

func (e TCPRouteOptionsNotProvidedError) Translate(translate func(string, ...interface{}) string) string

type ThreeRequiredArgumentsError

type ThreeRequiredArgumentsError struct {
	ArgumentName1 string
	ArgumentName2 string
	ArgumentName3 string
}

func (ThreeRequiredArgumentsError) DisplayUsage

func (ThreeRequiredArgumentsError) DisplayUsage()

func (ThreeRequiredArgumentsError) Error

func (ThreeRequiredArgumentsError) Translate

func (e ThreeRequiredArgumentsError) Translate(translate func(string, ...interface{}) string) string

type TipDecoratorError

type TipDecoratorError struct {
	Tip       string
	TipKeys   map[string]interface{}
	BaseError error
}

func (TipDecoratorError) Error

func (e TipDecoratorError) Error() string

func (TipDecoratorError) Translate

func (e TipDecoratorError) Translate(translate func(string, ...interface{}) string) string

type TooManyArgumentsError

type TooManyArgumentsError struct {
	ExtraArgument string
}

func (TooManyArgumentsError) DisplayUsage

func (TooManyArgumentsError) DisplayUsage()

func (TooManyArgumentsError) Error

func (TooManyArgumentsError) Error() string

func (TooManyArgumentsError) Translate

func (e TooManyArgumentsError) Translate(translate func(string, ...interface{}) string) string

type TranslatableError

type TranslatableError interface {
	// Returns the untranslated error string
	Error() string
	Translate(func(string, ...interface{}) string) string
}

TranslatableError it wraps the error interface adding a way to set the translation function on the error

type TriggerLegacyPushError

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

func (TriggerLegacyPushError) Error

func (e TriggerLegacyPushError) Error() string

func (TriggerLegacyPushError) LegacyMain

func (TriggerLegacyPushError) LegacyMain()

func (TriggerLegacyPushError) Translate

func (e TriggerLegacyPushError) Translate(translate func(string, ...interface{}) string) string

type UAAEndpointNotFoundError

type UAAEndpointNotFoundError struct {
}

func (UAAEndpointNotFoundError) Error

func (UAAEndpointNotFoundError) Translate

func (e UAAEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string

type UnauthorizedError

type UnauthorizedError struct {
	Message string
}

func (UnauthorizedError) Error

func (e UnauthorizedError) Error() string

func (UnauthorizedError) Translate

func (e UnauthorizedError) Translate(translate func(string, ...interface{}) string) string

type UnauthorizedToPerformActionError

type UnauthorizedToPerformActionError struct {
}

func (UnauthorizedToPerformActionError) Error

func (UnauthorizedToPerformActionError) Translate

func (e UnauthorizedToPerformActionError) Translate(translate func(string, ...interface{}) string) string

type UnrefactoredCommandError

type UnrefactoredCommandError struct{}

func (UnrefactoredCommandError) Error

func (e UnrefactoredCommandError) Error() string

func (UnrefactoredCommandError) LegacyMain

func (UnrefactoredCommandError) LegacyMain()

type UnsupportedURLSchemeError

type UnsupportedURLSchemeError struct {
	UnsupportedURL string
}

func (UnsupportedURLSchemeError) Error

func (UnsupportedURLSchemeError) Translate

func (e UnsupportedURLSchemeError) Translate(translate func(string, ...interface{}) string) string

type UploadFailedError

type UploadFailedError struct {
	Err error
}

func (UploadFailedError) Error

func (UploadFailedError) Error() string

func (UploadFailedError) Translate

func (e UploadFailedError) Translate(translate func(string, ...interface{}) string) string

type V3APIDoesNotExistError

type V3APIDoesNotExistError struct {
	Message string
}

func (V3APIDoesNotExistError) Error

func (V3APIDoesNotExistError) Translate

func (e V3APIDoesNotExistError) Translate(translate func(string, ...interface{}) string) string

type V3V2SwitchError

type V3V2SwitchError struct {
}

func (V3V2SwitchError) Error

func (e V3V2SwitchError) Error() string

Source Files

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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