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 dependancies!!!
Index ¶
- type APINotFoundError
- type APIRequestError
- type AddPluginRepositoryError
- type AppNotFoundInManifestError
- type ApplicationNotFoundError
- type ArgumentCombinationError
- type AssignDropletError
- type AuthorizationEndpointNotFoundError
- type BadCredentialsError
- type CFNetworkingEndpointNotFoundError
- type CommandLineArgsWithMultipleAppsError
- type ConflictingBuildpacksError
- type DockerPasswordNotSetError
- type DomainNotFoundError
- type DownloadPluginHTTPError
- type EmptyConfigError
- type EmptyDirectoryError
- type FetchingPluginInfoFromRepositoriesError
- type FileChangedError
- type FileNotFoundError
- type GettingPluginRepositoryError
- type HTTPHealthCheckInvalidError
- type HealthCheckTypeUnsupportedError
- type InvalidRefreshTokenError
- type InvalidSSLCertError
- type IsolationSegmentNotFoundError
- type JSONSyntaxError
- type JobFailedError
- type JobTimeoutError
- type LifecycleMinimumAPIVersionNotMetError
- type ManifestCreationError
- type MinimumAPIVersionNotMetError
- type NetworkPolicyProtocolOrPortNotProvidedError
- type NoAPISetError
- type NoCompatibleBinaryError
- type NoDomainsFoundError
- type NoMatchingDomainError
- type NoOrganizationTargetedError
- type NoPluginRepositoriesError
- type NoSpaceTargetedError
- type NotLoggedInError
- type OrganizationNotFoundError
- type ParseArgumentError
- type PluginAlreadyInstalledError
- type PluginBinaryRemoveFailedError
- type PluginBinaryUninstallError
- type PluginCommandsConflictError
- type PluginInvalidError
- type PluginNotFoundError
- type PluginNotFoundInRepositoryError
- type PluginNotFoundOnDiskOrInAnyRepositoryError
- type PortNotAllowedWithHTTPDomainError
- type ProcessInstanceNotFoundError
- type ProcessNotFoundError
- type RepositoryNameTakenError
- type RepositoryNotRegisteredError
- type RequiredArgumentError
- type RequiredFlagsError
- type RequiredNameForPushError
- type RouteInDifferentSpaceError
- type RunTaskError
- type SSLCertError
- type SecurityGroupNotFoundError
- type ServiceInstanceNotFoundError
- type SpaceNotFoundError
- type StackNotFoundError
- type StagingFailedError
- type StagingFailedNoAppDetectedError
- type StagingTimeoutError
- type StartupTimeoutError
- type ThreeRequiredArgumentsError
- type TranslatableError
- type UAAEndpointNotFoundError
- type UnsuccessfulStartError
- type UnsupportedURLSchemeError
- type UploadFailedError
- type V3APIDoesNotExistError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APINotFoundError ¶
type APINotFoundError struct {
URL string
}
func (APINotFoundError) Error ¶
func (APINotFoundError) Error() string
type APIRequestError ¶
type APIRequestError struct {
Err error
}
func (APIRequestError) Error ¶
func (APIRequestError) Error() string
type AddPluginRepositoryError ¶
func (AddPluginRepositoryError) Error ¶
func (AddPluginRepositoryError) Error() string
type AppNotFoundInManifestError ¶
type AppNotFoundInManifestError struct {
Name string
}
func (AppNotFoundInManifestError) Error ¶
func (AppNotFoundInManifestError) Error() string
type ApplicationNotFoundError ¶
type ApplicationNotFoundError struct {
Name string
}
func (ApplicationNotFoundError) Error ¶
func (ApplicationNotFoundError) Error() 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) Error() 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
type AuthorizationEndpointNotFoundError ¶
type AuthorizationEndpointNotFoundError struct { }
func (AuthorizationEndpointNotFoundError) Error ¶
func (AuthorizationEndpointNotFoundError) Error() string
type BadCredentialsError ¶
type BadCredentialsError struct{}
func (BadCredentialsError) Error ¶
func (BadCredentialsError) Error() string
type CFNetworkingEndpointNotFoundError ¶
type CFNetworkingEndpointNotFoundError struct { }
func (CFNetworkingEndpointNotFoundError) Error ¶
func (CFNetworkingEndpointNotFoundError) Error() string
type CommandLineArgsWithMultipleAppsError ¶
type CommandLineArgsWithMultipleAppsError struct { }
func (CommandLineArgsWithMultipleAppsError) Error ¶
func (CommandLineArgsWithMultipleAppsError) Error() string
type ConflictingBuildpacksError ¶
type ConflictingBuildpacksError struct { }
func (ConflictingBuildpacksError) Error ¶
func (ConflictingBuildpacksError) Error() string
type DockerPasswordNotSetError ¶
type DockerPasswordNotSetError struct {
URL string
}
func (DockerPasswordNotSetError) Error ¶
func (DockerPasswordNotSetError) Error() string
type DomainNotFoundError ¶
func (DomainNotFoundError) Error ¶
func (e DomainNotFoundError) Error() string
type DownloadPluginHTTPError ¶
type DownloadPluginHTTPError struct {
Message string
}
func (DownloadPluginHTTPError) Error ¶
func (DownloadPluginHTTPError) Error() string
type EmptyConfigError ¶
type EmptyConfigError struct {
FilePath string
}
func (EmptyConfigError) Error ¶
func (EmptyConfigError) Error() string
type EmptyDirectoryError ¶
type EmptyDirectoryError struct {
Path string
}
func (EmptyDirectoryError) Error ¶
func (e EmptyDirectoryError) Error() string
type FetchingPluginInfoFromRepositoriesError ¶
func (FetchingPluginInfoFromRepositoriesError) Error ¶
func (FetchingPluginInfoFromRepositoriesError) Error() string
type FileChangedError ¶
type FileChangedError struct {
Filename string
}
func (FileChangedError) Error ¶
func (e FileChangedError) Error() 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
type GettingPluginRepositoryError ¶
GettingPluginRepositoryError is returned when there's an error accessing the plugin repository
func (GettingPluginRepositoryError) Error ¶
func (GettingPluginRepositoryError) Error() string
type HTTPHealthCheckInvalidError ¶
type HTTPHealthCheckInvalidError struct { }
func (HTTPHealthCheckInvalidError) Error ¶
func (HTTPHealthCheckInvalidError) Error() string
type HealthCheckTypeUnsupportedError ¶
type HealthCheckTypeUnsupportedError struct {
SupportedTypes []string
}
func (HealthCheckTypeUnsupportedError) Error ¶
func (HealthCheckTypeUnsupportedError) Error() string
type InvalidRefreshTokenError ¶
type InvalidRefreshTokenError struct { }
func (InvalidRefreshTokenError) Error ¶
func (InvalidRefreshTokenError) Error() string
type InvalidSSLCertError ¶
type InvalidSSLCertError struct {
API string
}
func (InvalidSSLCertError) Error ¶
func (InvalidSSLCertError) Error() string
type IsolationSegmentNotFoundError ¶
type IsolationSegmentNotFoundError struct {
Name string
}
func (IsolationSegmentNotFoundError) Error ¶
func (IsolationSegmentNotFoundError) Error() string
type JSONSyntaxError ¶
type JSONSyntaxError struct {
Err error
}
func (JSONSyntaxError) Error ¶
func (e JSONSyntaxError) Error() string
type JobFailedError ¶
func (JobFailedError) Error ¶
func (JobFailedError) Error() string
type JobTimeoutError ¶
func (JobTimeoutError) Error ¶
func (JobTimeoutError) Error() string
type LifecycleMinimumAPIVersionNotMetError ¶
func (LifecycleMinimumAPIVersionNotMetError) Error ¶
func (LifecycleMinimumAPIVersionNotMetError) Error() string
type ManifestCreationError ¶
type ManifestCreationError struct {
Err error
}
func (ManifestCreationError) Error ¶
func (ManifestCreationError) Error() string
type MinimumAPIVersionNotMetError ¶
type MinimumAPIVersionNotMetError struct { Command string CurrentVersion string MinimumVersion string }
func (MinimumAPIVersionNotMetError) Error ¶
func (e MinimumAPIVersionNotMetError) Error() string
type NetworkPolicyProtocolOrPortNotProvidedError ¶
type NetworkPolicyProtocolOrPortNotProvidedError struct{}
func (NetworkPolicyProtocolOrPortNotProvidedError) DisplayUsage ¶
func (NetworkPolicyProtocolOrPortNotProvidedError) DisplayUsage()
func (NetworkPolicyProtocolOrPortNotProvidedError) Error ¶
func (NetworkPolicyProtocolOrPortNotProvidedError) Error() string
type NoAPISetError ¶
type NoAPISetError struct {
BinaryName string
}
func (NoAPISetError) Error ¶
func (NoAPISetError) Error() string
type NoCompatibleBinaryError ¶
type NoCompatibleBinaryError struct { }
func (NoCompatibleBinaryError) Error ¶
func (e NoCompatibleBinaryError) Error() string
type NoDomainsFoundError ¶
type NoDomainsFoundError struct { }
func (NoDomainsFoundError) Error ¶
func (NoDomainsFoundError) Error() string
type NoMatchingDomainError ¶
type NoMatchingDomainError struct {
Route string
}
func (NoMatchingDomainError) Error ¶
func (e NoMatchingDomainError) Error() string
type NoOrganizationTargetedError ¶
type NoOrganizationTargetedError struct {
BinaryName string
}
func (NoOrganizationTargetedError) Error ¶
func (NoOrganizationTargetedError) Error() string
type NoPluginRepositoriesError ¶
type NoPluginRepositoriesError struct{}
func (NoPluginRepositoriesError) Error ¶
func (NoPluginRepositoriesError) Error() string
type NoSpaceTargetedError ¶
type NoSpaceTargetedError struct {
BinaryName string
}
func (NoSpaceTargetedError) Error ¶
func (NoSpaceTargetedError) Error() string
type NotLoggedInError ¶
type NotLoggedInError struct {
BinaryName string
}
func (NotLoggedInError) Error ¶
func (NotLoggedInError) Error() string
type OrganizationNotFoundError ¶
type OrganizationNotFoundError struct {
Name string
}
func (OrganizationNotFoundError) Error ¶
func (OrganizationNotFoundError) Error() string
type ParseArgumentError ¶
func (ParseArgumentError) DisplayUsage ¶
func (ParseArgumentError) DisplayUsage()
func (ParseArgumentError) Error ¶
func (ParseArgumentError) Error() string
type PluginAlreadyInstalledError ¶
PluginAlreadyInstalledError is returned when the plugin has the same name as an installed plugin.
func (PluginAlreadyInstalledError) Error ¶
func (PluginAlreadyInstalledError) Error() string
type PluginBinaryRemoveFailedError ¶
type PluginBinaryRemoveFailedError struct {
Err error
}
PluginBinaryRemoveFailedError is returned when the removal of a plugin binary fails.
func (PluginBinaryRemoveFailedError) Error ¶
func (e PluginBinaryRemoveFailedError) Error() string
type PluginBinaryUninstallError ¶
type PluginBinaryUninstallError struct {
Err error
}
PluginBinaryUninstallError is returned when running the plugin's uninstall hook fails.
func (PluginBinaryUninstallError) Error ¶
func (e PluginBinaryUninstallError) Error() string
type PluginCommandsConflictError ¶
type PluginCommandsConflictError struct { PluginName string PluginVersion string CommandNames []string CommandAliases []string }
PluginCommandConflictError is returned when a plugin command name conflicts with a native or existing plugin command name.
func (PluginCommandsConflictError) Error ¶
func (e PluginCommandsConflictError) 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 (e PluginInvalidError) Error() string
type PluginNotFoundError ¶
type PluginNotFoundError struct {
PluginName string
}
func (PluginNotFoundError) Error ¶
func (e PluginNotFoundError) Error() string
type PluginNotFoundInRepositoryError ¶
type PluginNotFoundInRepositoryError struct { BinaryName string PluginName string RepositoryName string }
func (PluginNotFoundInRepositoryError) Error ¶
func (e PluginNotFoundInRepositoryError) Error() string
type PluginNotFoundOnDiskOrInAnyRepositoryError ¶
func (PluginNotFoundOnDiskOrInAnyRepositoryError) Error ¶
func (e PluginNotFoundOnDiskOrInAnyRepositoryError) Error() string
type PortNotAllowedWithHTTPDomainError ¶
type PortNotAllowedWithHTTPDomainError struct {
Domain string
}
func (PortNotAllowedWithHTTPDomainError) Error ¶
func (PortNotAllowedWithHTTPDomainError) Error() string
type ProcessInstanceNotFoundError ¶
ProcessInstanceNotFoundError is returned when a proccess type or process instance can't be found
func (ProcessInstanceNotFoundError) Error ¶
func (ProcessInstanceNotFoundError) Error() string
type ProcessNotFoundError ¶
type ProcessNotFoundError struct {
ProcessType string
}
ProcessNotFoundError is returned when a proccess type can't be found
func (ProcessNotFoundError) Error ¶
func (ProcessNotFoundError) Error() 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) Error() string
type RepositoryNotRegisteredError ¶
type RepositoryNotRegisteredError struct {
Name string
}
func (RepositoryNotRegisteredError) Error ¶
func (RepositoryNotRegisteredError) Error() string
type RequiredArgumentError ¶
type RequiredArgumentError struct {
ArgumentName string
}
func (RequiredArgumentError) DisplayUsage ¶
func (RequiredArgumentError) DisplayUsage()
func (RequiredArgumentError) Error ¶
func (RequiredArgumentError) Error() string
type RequiredFlagsError ¶
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
type RequiredNameForPushError ¶
type RequiredNameForPushError struct { }
func (RequiredNameForPushError) DisplayUsage ¶
func (RequiredNameForPushError) DisplayUsage()
func (RequiredNameForPushError) Error ¶
func (RequiredNameForPushError) Error() string
type RouteInDifferentSpaceError ¶
type RouteInDifferentSpaceError struct {
Route string
}
func (RouteInDifferentSpaceError) Error ¶
func (e RouteInDifferentSpaceError) Error() string
type RunTaskError ¶
type RunTaskError struct {
Message string
}
func (RunTaskError) Error ¶
func (RunTaskError) Error() string
type SSLCertError ¶
type SSLCertError struct {
Message string
}
func (SSLCertError) Error ¶
func (SSLCertError) Error() string
type SecurityGroupNotFoundError ¶
type SecurityGroupNotFoundError struct {
Name string
}
func (SecurityGroupNotFoundError) Error ¶
func (SecurityGroupNotFoundError) Error() string
type ServiceInstanceNotFoundError ¶
func (ServiceInstanceNotFoundError) Error ¶
func (e ServiceInstanceNotFoundError) Error() string
type SpaceNotFoundError ¶
type SpaceNotFoundError struct {
Name string
}
func (SpaceNotFoundError) Error ¶
func (SpaceNotFoundError) Error() string
type StackNotFoundError ¶
func (StackNotFoundError) Error ¶
func (e StackNotFoundError) Error() string
type StagingFailedError ¶
type StagingFailedError struct {
Message string
}
func (StagingFailedError) Error ¶
func (StagingFailedError) Error() string
type StagingFailedNoAppDetectedError ¶
func (StagingFailedNoAppDetectedError) Error ¶
func (StagingFailedNoAppDetectedError) Error() string
type StagingTimeoutError ¶
func (StagingTimeoutError) Error ¶
func (StagingTimeoutError) Error() string
type StartupTimeoutError ¶
func (StartupTimeoutError) Error ¶
func (StartupTimeoutError) Error() string
type ThreeRequiredArgumentsError ¶
type ThreeRequiredArgumentsError struct { ArgumentName1 string ArgumentName2 string ArgumentName3 string }
func (ThreeRequiredArgumentsError) DisplayUsage ¶
func (ThreeRequiredArgumentsError) DisplayUsage()
func (ThreeRequiredArgumentsError) Error ¶
func (ThreeRequiredArgumentsError) Error() 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 UAAEndpointNotFoundError ¶
type UAAEndpointNotFoundError struct { }
func (UAAEndpointNotFoundError) Error ¶
func (UAAEndpointNotFoundError) Error() string
type UnsuccessfulStartError ¶
func (UnsuccessfulStartError) Error ¶
func (UnsuccessfulStartError) Error() string
type UnsupportedURLSchemeError ¶
type UnsupportedURLSchemeError struct {
UnsupportedURL string
}
func (UnsupportedURLSchemeError) Error ¶
func (e UnsupportedURLSchemeError) Error() string
type UploadFailedError ¶
type UploadFailedError struct {
Err error
}
func (UploadFailedError) Error ¶
func (UploadFailedError) Error() string
type V3APIDoesNotExistError ¶
type V3APIDoesNotExistError struct {
Message string
}
func (V3APIDoesNotExistError) Error ¶
func (V3APIDoesNotExistError) Error() string
Source Files ¶
- add_plugin_repository_error.go
- api_not_found_error.go
- api_request_error.go
- app_not_found_in_manifest_error.go
- application_not_found_error.go
- argument_combination_error.go
- assign_droplet_error.go
- authorization_endpoint_not_found_error.go
- bad_credentials_error.go
- cfnetworking_endpoint_not_found_error.go
- command_line_args_with_multiple_apps_error.go
- conflicting_buildpacks_error.go
- docker_password_not_set_error.go
- domain_not_found_error.go
- download_plugin_http_error.go
- empty_config_error.go
- empty_directory_error.go
- fetching_plugin_info_from_repositories_error.go
- file_changed_error.go
- file_not_found_error.go
- getting_plugin_repository_error.go
- godoc.go
- health_check_type_unsupported_error.go
- http_health_check_invalid_error.go
- invalid_refresh_token_error.go
- invalid_ssl_cert_error.go
- isolation_segment_not_found_error.go
- job_failed_error.go
- job_timeout_error.go
- json_syntax_error.go
- lifecycle_minimum_api_version_not_met_error.go
- manifest_creation_error.go
- minimum_api_version_not_met_error.go
- network_policy_protocol_or_port_not_provided_error.go
- no_api_set_error.go
- no_compatible_binary_error.go
- no_domains_found_error.go
- no_matching_domain_error.go
- no_organization_targeted_error.go
- no_plugin_repositories_error.go
- no_space_targeted_error.go
- not_logged_in_error.go
- organization_not_found_error.go
- parse_argument_error.go
- plugin_already_installed_error.go
- plugin_binarly_uninstall_error.go
- plugin_binary_remove_failed_error.go
- plugin_commands_conflict_error.go
- plugin_invalid_error.go
- plugin_not_found_error.go
- plugin_not_found_in_repository_error.go
- plugin_not_found_on_disk_or_in_any_repository_error.go
- port_not_allowed_with_http_domain_error.go
- process_instance_not_found_error.go
- process_not_found_error.go
- repository_name_taken_error.go
- repository_not_registered_error.go
- required_argument_error.go
- required_flags_error.go
- required_name_for_push_error.go
- route_in_different_space_error.go
- run_task_error.go
- security_group_not_found_error.go
- service_instance_not_found_error.go
- space_not_found_error.go
- ssl_cert_error.go
- stack_not_found_error.go
- staging_failed_error.go
- staging_failed_no_app_detected_error.go
- staging_timeout_error.go
- startup_timeout_error.go
- three_required_arguments_error.go
- translatable_error.go
- uaa_endpoint_not_found_error.go
- unsuccessful_stat_error.go
- unsupported_url_scheme_error.go
- upload_failed_error.go
- v3_api_does_not_exist_error.go