errors

package
v0.0.0-...-3aea9fd Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains errors specific to the administration and distribution of the AuthDB.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrAlreadyExists is returned when an entity already exists.
	ErrAlreadyExists = stderrors.New("entity already exists")

	// ErrPermissionDenied is returned when the user does not have permission for
	// the requested entity operation.
	ErrPermissionDenied = stderrors.New("permission denied")

	// ErrInvalidArgument is a generic error returned when an argument is invalid.
	// It may be wrapped with more specific details on the invalidity.
	ErrInvalidArgument = stderrors.New("invalid argument")

	// ErrInvalidName is returned when a supplied entity name is invalid.
	ErrInvalidName = stderrors.New("invalid entity name")

	// ErrInvalidReference is returned when a referenced entity name is invalid.
	ErrInvalidReference = stderrors.New("some referenced groups don't exist")

	// ErrInvalidIdentity is returned when a referenced identity or glob is
	// invalid.
	ErrInvalidIdentity = stderrors.New("invalid identity")

	// ErrConcurrentModification is returned when an entity is modified by two
	// concurrent operations.
	ErrConcurrentModification = stderrors.New("concurrent modification")

	// ErrReferencedEntity is returned when an entity cannot be deleted because
	// it is referenced elsewhere.
	ErrReferencedEntity = stderrors.New("cannot delete referenced entity")
	// ErrCyclicDependency is returned when an update would create a cyclic
	// dependency.
	ErrCyclicDependency = stderrors.New("groups can't have cyclic dependencies")

	// ErrAuthDBMissingRealms is returned when an AuthDB is missing the Realms
	// field.
	ErrAuthDBMissingRealms = errors.New("AuthDB missing Realms field")

	// ErrSnapshotMissingAuthDB is returned when an AuthDBSnapshot is missing the
	// AuthDB field.
	ErrSnapshotMissingAuthDB = errors.New("AuthDBSnapshot missing AuthDB field")
)

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