package
3.5.4+incompatible
Repository: https://github.com/puppetlabs/relay.git
Documentation: pkg.go.dev
# Functions
IsAuthFailedLoginError tests whether a given error is an instance of "failed_login_error".
IsAuthFailedNoStdin tests whether a given error is an instance of "failed_no_stdin".
IsAuthFailedPassFromStdin tests whether a given error is an instance of "failed_pass_from_stdin".
IsAuthMismatchedEmailPassMethods tests whether a given error is an instance of "mismatched_email_pass_methods".
IsClientBadRequestBody tests whether a given error is an instance of "bad_request_body".
IsClientInternalError tests whether a given error is an instance of "internal_error".
IsClientRequestError tests whether a given error is an instance of "request_error".
IsClientResponseNotFound tests whether a given error is an instance of "response_not_found".
IsClientUserNotAuthenticated tests whether a given error is an instance of "user_not_authenticated".
IsClientUserNotAuthorized tests whether a given error is an instance of "user_not_authorized".
IsConfigFileNotFound tests whether a given error is an instance of "file_not_found".
IsConfigInvalidAPIDomain tests whether a given error is an instance of "invalid_api_domain".
IsConfigInvalidConfigFile tests whether a given error is an instance of "invalid_config_file".
IsConfigInvalidConfigFlag tests whether a given error is an instance of "invalid_config_flag".
IsConfigInvalidOutputFlag tests whether a given error is an instance of "invalid_output_flag".
IsConfigInvalidUIDomain tests whether a given error is an instance of "invalid_ui_domain".
IsConfigInvalidWebDomain tests whether a given error is an instance of "invalid_web_domain".
IsGeneralUnknownError tests whether a given error is an instance of "unknown_error".
NewAuthFailedLoginError creates a new error with the code "failed_login_error".
NewAuthFailedLoginErrorBuilder creates a new error builder for the code "failed_login_error".
NewAuthFailedNoStdin creates a new error with the code "failed_no_stdin".
NewAuthFailedNoStdinBuilder creates a new error builder for the code "failed_no_stdin".
NewAuthFailedPassFromStdin creates a new error with the code "failed_pass_from_stdin".
NewAuthFailedPassFromStdinBuilder creates a new error builder for the code "failed_pass_from_stdin".
NewAuthMismatchedEmailPassMethods creates a new error with the code "mismatched_email_pass_methods".
NewAuthMismatchedEmailPassMethodsBuilder creates a new error builder for the code "mismatched_email_pass_methods".
NewClientBadRequestBody creates a new error with the code "bad_request_body".
NewClientBadRequestBodyBuilder creates a new error builder for the code "bad_request_body".
NewClientInternalError creates a new error with the code "internal_error".
NewClientInternalErrorBuilder creates a new error builder for the code "internal_error".
NewClientRequestError creates a new error with the code "request_error".
NewClientRequestErrorBuilder creates a new error builder for the code "request_error".
NewClientResponseNotFound creates a new error with the code "response_not_found".
NewClientResponseNotFoundBuilder creates a new error builder for the code "response_not_found".
NewClientUserNotAuthenticated creates a new error with the code "user_not_authenticated".
NewClientUserNotAuthenticatedBuilder creates a new error builder for the code "user_not_authenticated".
NewClientUserNotAuthorized creates a new error with the code "user_not_authorized".
NewClientUserNotAuthorizedBuilder creates a new error builder for the code "user_not_authorized".
NewConfigFileNotFound creates a new error with the code "file_not_found".
NewConfigFileNotFoundBuilder creates a new error builder for the code "file_not_found".
NewConfigInvalidAPIDomain creates a new error with the code "invalid_api_domain".
NewConfigInvalidAPIDomainBuilder creates a new error builder for the code "invalid_api_domain".
NewConfigInvalidConfigFile creates a new error with the code "invalid_config_file".
NewConfigInvalidConfigFileBuilder creates a new error builder for the code "invalid_config_file".
NewConfigInvalidConfigFlag creates a new error with the code "invalid_config_flag".
NewConfigInvalidConfigFlagBuilder creates a new error builder for the code "invalid_config_flag".
NewConfigInvalidOutputFlag creates a new error with the code "invalid_output_flag".
NewConfigInvalidOutputFlagBuilder creates a new error builder for the code "invalid_output_flag".
NewConfigInvalidUIDomain creates a new error with the code "invalid_ui_domain".
NewConfigInvalidUIDomainBuilder creates a new error builder for the code "invalid_ui_domain".
NewConfigInvalidWebDomain creates a new error with the code "invalid_web_domain".
NewConfigInvalidWebDomainBuilder creates a new error builder for the code "invalid_web_domain".
NewGeneralUnknownError creates a new error with the code "unknown_error".
NewGeneralUnknownErrorBuilder creates a new error builder for the code "unknown_error".
# Constants
AuthFailedLoginErrorCode is the code for an instance of "failed_login_error".
AuthFailedNoStdinCode is the code for an instance of "failed_no_stdin".
AuthFailedPassFromStdinCode is the code for an instance of "failed_pass_from_stdin".
AuthMismatchedEmailPassMethodsCode is the code for an instance of "mismatched_email_pass_methods".
ClientBadRequestBodyCode is the code for an instance of "bad_request_body".
ClientInternalErrorCode is the code for an instance of "internal_error".
ClientRequestErrorCode is the code for an instance of "request_error".
ClientResponseNotFoundCode is the code for an instance of "response_not_found".
ClientUserNotAuthenticatedCode is the code for an instance of "user_not_authenticated".
ClientUserNotAuthorizedCode is the code for an instance of "user_not_authorized".
ConfigFileNotFoundCode is the code for an instance of "file_not_found".
ConfigInvalidAPIDomainCode is the code for an instance of "invalid_api_domain".
ConfigInvalidConfigFileCode is the code for an instance of "invalid_config_file".
ConfigInvalidConfigFlagCode is the code for an instance of "invalid_config_flag".
ConfigInvalidOutputFlagCode is the code for an instance of "invalid_output_flag".
ConfigInvalidUIDomainCode is the code for an instance of "invalid_ui_domain".
ConfigInvalidWebDomainCode is the code for an instance of "invalid_web_domain".
GeneralUnknownErrorCode is the code for an instance of "unknown_error".
# Variables
API is a singleton instance of the External type.
AuthSection defines a section of errors with the following scope: Authentication errors.
ClientSection defines a section of errors with the following scope: Client errors.
ConfigSection defines a section of errors with the following scope: CLI Config errors.
Domain is the general domain in which all errors in this package belong.
GeneralSection defines a section of errors with the following scope: General errors.
# Structs
AuthFailedLoginErrorBuilder is a builder for "failed_login_error" errors.
AuthFailedNoStdinBuilder is a builder for "failed_no_stdin" errors.
AuthFailedPassFromStdinBuilder is a builder for "failed_pass_from_stdin" errors.
AuthMismatchedEmailPassMethodsBuilder is a builder for "mismatched_email_pass_methods" errors.
ClientBadRequestBodyBuilder is a builder for "bad_request_body" errors.
ClientInternalErrorBuilder is a builder for "internal_error" errors.
ClientRequestErrorBuilder is a builder for "request_error" errors.
ClientResponseNotFoundBuilder is a builder for "response_not_found" errors.
ClientUserNotAuthenticatedBuilder is a builder for "user_not_authenticated" errors.
ClientUserNotAuthorizedBuilder is a builder for "user_not_authorized" errors.
ConfigFileNotFoundBuilder is a builder for "file_not_found" errors.
ConfigInvalidAPIDomainBuilder is a builder for "invalid_api_domain" errors.
ConfigInvalidConfigFileBuilder is a builder for "invalid_config_file" errors.
ConfigInvalidConfigFlagBuilder is a builder for "invalid_config_flag" errors.
ConfigInvalidOutputFlagBuilder is a builder for "invalid_output_flag" errors.
ConfigInvalidUIDomainBuilder is a builder for "invalid_ui_domain" errors.
ConfigInvalidWebDomainBuilder is a builder for "invalid_web_domain" errors.
External contains methods that can be used externally to help consume errors from this package.
GeneralUnknownErrorBuilder is a builder for "unknown_error" errors.
# Interfaces
Error is the type of all errors generated by this package.