aerr

package
v0.24.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 7 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRuntimeLoading the asked-for runtime is not yet available, but will likely be in the future.
	ErrRuntimeLoading = newErr("E30003", codes.Unavailable, http.StatusTooEarly, "runtime has not yet loaded")
	// ErrPolicyNotFound returned if a policy id is not found in the database.
	ErrPolicyNotFound = newErr("E10004", codes.NotFound, http.StatusNotFound, "policy not found")
	// ErrInvalidPolicyID returned if a policy id is invalid.
	ErrInvalidPolicyID = newErr("E30005", codes.InvalidArgument, http.StatusBadRequest, "invalid policy id")
	// ErrUserAlreadyExists returned if a user already exists.
	ErrUserAlreadyExists = newErr("E30006", codes.AlreadyExists, http.StatusConflict, "user already exists")
	// ErrAuthenticationFailed returned when authentication has failed or is not possible.
	ErrAuthenticationFailed = newErr("E30007", codes.Unauthenticated, http.StatusUnauthorized, "authentication failed")
	// ErrInvalidArgument returned when a given parameter is incorrect (wrong format, value or type).
	ErrInvalidArgument = newErr("E30008", codes.InvalidArgument, http.StatusBadRequest, "invalid argument")
	// ErrUserNotFound return if a user is not found.
	ErrUserNotFound = newErr("E30009", codes.NotFound, http.StatusNotFound, "user not found")
	// ErrBadQuery returned when a runtime query has an error.
	ErrBadQuery = newErr("E30010", codes.InvalidArgument, http.StatusBadRequest, "invalid query")
	// ErrInvalidDecision returned when a decision is invalid.
	ErrInvalidDecision = newErr("E30011", codes.InvalidArgument, http.StatusBadRequest, "invalid decision")
	// ErrBadRuntime returned when a runtime failed to load.
	ErrBadRuntime = newErr("E30012", codes.Unavailable, http.StatusServiceUnavailable, "runtime loading failed")
	// ErrDirectoryObjectNotFound returned if object id is not found in the directory.
	ErrDirectoryObjectNotFound = newErr("E30013", codes.NotFound, http.StatusNotFound, "directory object not found")
	// ErrInvalidPolicy returned if the loaded policy is invalid.
	ErrInvalidPolicy = newErr("E30014", codes.Internal, http.StatusInternalServerError, "invalid policy")
	// ErrAuthorizationFailed returned when authorization has failed or is not possible.
	ErrAuthorizationFailed = newErr("E30015", codes.PermissionDenied, http.StatusUnauthorized, "authorization failed")
	// ErrResolvingSubjectFromIdentityContext.
	ErrResolvingSubjectFromIdentityContext = newErr("E30016", codes.NotFound, http.StatusNotFound, "failed to resolve subject from identity context")
	// ErrResolvingUserFromSubject.
	ErrResolvingUserFromSubject = newErr("E30017", codes.NotFound, http.StatusNotFound, "failed to resolve user from subject")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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