package
0.0.0-20220821194921-cb1a7a4f7656
Repository: https://github.com/puppetlabs/relay-core.git
Documentation: pkg.go.dev

# Functions

IsActionImageParseError tests whether a given error is an instance of "image_parse_error".
IsAPIAuthenticationError tests whether a given error is an instance of "authentication_error".
IsAPIMalformedRequestError tests whether a given error is an instance of "malformed_request_error".
IsAPIObjectSerializationError tests whether a given error is an instance of "object_serialization_error".
IsAPIUnknownRequestMediaTypeError tests whether a given error is an instance of "unknown_request_media_type_error".
IsConditionTypeError tests whether a given error is an instance of "type_error".
IsExpressionEvaluationError tests whether a given error is an instance of "evaluation_error".
IsExpressionUnresolvableError tests whether a given error is an instance of "unresolvable_error".
IsExpressionUnsupportedLanguageError tests whether a given error is an instance of "unsupported_language_error".
IsModelAuthorizationError tests whether a given error is an instance of "authorization_error".
IsModelConflictError tests whether a given error is an instance of "conflict_error".
IsModelNotFoundError tests whether a given error is an instance of "not_found_error".
IsModelReadError tests whether a given error is an instance of "read_error".
IsModelWriteError tests whether a given error is an instance of "write_error".
NewActionImageParseError creates a new error with the code "image_parse_error".
NewActionImageParseErrorBuilder creates a new error builder for the code "image_parse_error".
NewAPIAuthenticationError creates a new error with the code "authentication_error".
NewAPIAuthenticationErrorBuilder creates a new error builder for the code "authentication_error".
NewAPIMalformedRequestError creates a new error with the code "malformed_request_error".
NewAPIMalformedRequestErrorBuilder creates a new error builder for the code "malformed_request_error".
NewAPIObjectSerializationError creates a new error with the code "object_serialization_error".
NewAPIObjectSerializationErrorBuilder creates a new error builder for the code "object_serialization_error".
NewAPIUnknownRequestMediaTypeError creates a new error with the code "unknown_request_media_type_error".
NewAPIUnknownRequestMediaTypeErrorBuilder creates a new error builder for the code "unknown_request_media_type_error".
NewConditionTypeError creates a new error with the code "type_error".
NewConditionTypeErrorBuilder creates a new error builder for the code "type_error".
NewExpressionEvaluationError creates a new error with the code "evaluation_error".
NewExpressionEvaluationErrorBuilder creates a new error builder for the code "evaluation_error".
NewExpressionUnresolvableError creates a new error with the code "unresolvable_error".
NewExpressionUnresolvableErrorBuilder creates a new error builder for the code "unresolvable_error".
NewExpressionUnsupportedLanguageError creates a new error with the code "unsupported_language_error".
NewExpressionUnsupportedLanguageErrorBuilder creates a new error builder for the code "unsupported_language_error".
NewModelAuthorizationError creates a new error with the code "authorization_error".
NewModelAuthorizationErrorBuilder creates a new error builder for the code "authorization_error".
NewModelConflictError creates a new error with the code "conflict_error".
NewModelConflictErrorBuilder creates a new error builder for the code "conflict_error".
NewModelNotFoundError creates a new error with the code "not_found_error".
NewModelNotFoundErrorBuilder creates a new error builder for the code "not_found_error".
NewModelReadError creates a new error with the code "read_error".
NewModelReadErrorBuilder creates a new error builder for the code "read_error".
NewModelWriteError creates a new error with the code "write_error".
NewModelWriteErrorBuilder creates a new error builder for the code "write_error".

# Constants

ActionImageParseErrorCode is the code for an instance of "image_parse_error".
APIAuthenticationErrorCode is the code for an instance of "authentication_error".
APIMalformedRequestErrorCode is the code for an instance of "malformed_request_error".
APIObjectSerializationErrorCode is the code for an instance of "object_serialization_error".
APIUnknownRequestMediaTypeErrorCode is the code for an instance of "unknown_request_media_type_error".
ConditionTypeErrorCode is the code for an instance of "type_error".
ExpressionEvaluationErrorCode is the code for an instance of "evaluation_error".
ExpressionUnresolvableErrorCode is the code for an instance of "unresolvable_error".
ExpressionUnsupportedLanguageErrorCode is the code for an instance of "unsupported_language_error".
ModelAuthorizationErrorCode is the code for an instance of "authorization_error".
ModelConflictErrorCode is the code for an instance of "conflict_error".
ModelNotFoundErrorCode is the code for an instance of "not_found_error".
ModelReadErrorCode is the code for an instance of "read_error".
ModelWriteErrorCode is the code for an instance of "write_error".

# Variables

ActionSection defines a section of errors with the following scope: Action errors.
API is a singleton instance of the External type.
APISection defines a section of errors with the following scope: API errors.
ConditionSection defines a section of errors with the following scope: Condition errors.
Domain is the general domain in which all errors in this package belong.
ExpressionSection defines a section of errors with the following scope: Expression errors.
ModelSection defines a section of errors with the following scope: Model errors.

# Structs

ActionImageParseErrorBuilder is a builder for "image_parse_error" errors.
APIAuthenticationErrorBuilder is a builder for "authentication_error" errors.
APIMalformedRequestErrorBuilder is a builder for "malformed_request_error" errors.
APIObjectSerializationErrorBuilder is a builder for "object_serialization_error" errors.
APIUnknownRequestMediaTypeErrorBuilder is a builder for "unknown_request_media_type_error" errors.
ConditionTypeErrorBuilder is a builder for "type_error" errors.
ExpressionEvaluationErrorBuilder is a builder for "evaluation_error" errors.
ExpressionUnresolvableErrorBuilder is a builder for "unresolvable_error" errors.
ExpressionUnsupportedLanguageErrorBuilder is a builder for "unsupported_language_error" errors.
External contains methods that can be used externally to help consume errors from this package.
ModelAuthorizationErrorBuilder is a builder for "authorization_error" errors.
ModelConflictErrorBuilder is a builder for "conflict_error" errors.
ModelNotFoundErrorBuilder is a builder for "not_found_error" errors.
ModelReadErrorBuilder is a builder for "read_error" errors.
ModelWriteErrorBuilder is a builder for "write_error" errors.

# Interfaces

Error is the type of all errors generated by this package.