package
0.1.5
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Functions

IsAPICachedResourceNotAvailableError tests whether a given error is an instance of "cached_resource_not_available_error".
IsAPIResourceModifiedError tests whether a given error is an instance of "resource_modified_error".
IsAPIResourceSerializationError tests whether a given error is an instance of "resource_serialization_error".
NewAPICachedResourceNotAvailableError creates a new error with the code "cached_resource_not_available_error".
NewAPICachedResourceNotAvailableErrorBuilder creates a new error builder for the code "cached_resource_not_available_error".
NewAPIResourceModifiedError creates a new error with the code "resource_modified_error".
NewAPIResourceModifiedErrorBuilder creates a new error builder for the code "resource_modified_error".
NewAPIResourceSerializationError creates a new error with the code "resource_serialization_error".
NewAPIResourceSerializationErrorBuilder creates a new error builder for the code "resource_serialization_error".

# Constants

APICachedResourceNotAvailableErrorCode is the code for an instance of "cached_resource_not_available_error".
APIResourceModifiedErrorCode is the code for an instance of "resource_modified_error".
APIResourceSerializationErrorCode is the code for an instance of "resource_serialization_error".

# Variables

API is a singleton instance of the External type.
APISection defines a section of errors with the following scope: API errors.
Domain is the general domain in which all errors in this package belong.

# Structs

APICachedResourceNotAvailableErrorBuilder is a builder for "cached_resource_not_available_error" errors.
APIResourceModifiedErrorBuilder is a builder for "resource_modified_error" errors.
APIResourceSerializationErrorBuilder is a builder for "resource_serialization_error" errors.
External contains methods that can be used externally to help consume errors from this package.

# Interfaces

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