service

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAuthentication indicates failure occurred while authenticating the entity.
	ErrAuthentication = errors.New("failed to perform authentication over the entity")

	// ErrAuthorization indicates failure occurred while authorizing the entity.
	ErrAuthorization = errors.New("failed to perform authorization over the entity")

	// ErrDomainAuthorization indicates failure occurred while authorizing the domain.
	ErrDomainAuthorization = errors.New("failed to perform authorization over the domain")

	// ErrLogin indicates wrong login credentials.
	ErrLogin = errors.New("invalid credentials")

	// ErrMalformedEntity indicates a malformed entity specification.
	ErrMalformedEntity = errors.New("malformed entity specification")

	// ErrNotFound indicates a non-existent entity request.
	ErrNotFound = errors.New("entity not found")

	// ErrConflict indicates that entity already exists.
	ErrConflict = errors.New("entity already exists")

	// ErrCreateEntity indicates error in creating entity or entities.
	ErrCreateEntity = errors.New("failed to create entity")

	// ErrRemoveEntity indicates error in removing entity.
	ErrRemoveEntity = errors.New("failed to remove entity")

	// ErrViewEntity indicates error in viewing entity or entities.
	ErrViewEntity = errors.New("view entity failed")

	// ErrUpdateEntity indicates error in updating entity or entities.
	ErrUpdateEntity = errors.New("update entity failed")

	// ErrInvalidStatus indicates an invalid status.
	ErrInvalidStatus = errors.New("invalid status")

	// ErrInvalidRole indicates that an invalid role.
	ErrInvalidRole = errors.New("invalid client role")

	// ErrInvalidPolicy indicates that an invalid policy.
	ErrInvalidPolicy = errors.New("invalid policy")

	// ErrEnableClient indicates error in enabling client.
	ErrEnableClient = errors.New("failed to enable client")

	// ErrDisableClient indicates error in disabling client.
	ErrDisableClient = errors.New("failed to disable client")

	// ErrAddPolicies indicates error in adding policies.
	ErrAddPolicies = errors.New("failed to add policies")

	// ErrDeletePolicies indicates error in removing policies.
	ErrDeletePolicies = errors.New("failed to remove policies")

	// ErrSearch indicates error in searching clients.
	ErrSearch = errors.New("failed to search clients")

	// ErrInvitationAlreadyRejected indicates that the invitation is already rejected.
	ErrInvitationAlreadyRejected = errors.New("invitation already rejected")

	// ErrInvitationAlreadyAccepted indicates that the invitation is already accepted.
	ErrInvitationAlreadyAccepted = errors.New("invitation already accepted")

	// ErrParentGroupAuthorization indicates failure occurred while authorizing the parent group.
	ErrParentGroupAuthorization = errors.New("failed to authorize parent group")

	// ErrMissingUsername indicates that the user's names are missing.
	ErrMissingUsername = errors.New("missing usernames")

	// ErrEnableUser indicates error in enabling user.
	ErrEnableUser = errors.New("failed to enable user")

	// ErrDisableUser indicates error in disabling user.
	ErrDisableUser = errors.New("failed to disable user")

	// ErrRollbackRepo indicates a failure to rollback repository.
	ErrRollbackRepo = errors.New("failed to rollback repo")

	// ErrUnauthorizedPAT indicates failure occurred while authorizing PAT.
	ErrUnauthorizedPAT = errors.New("failed to authorize PAT")

	// ErrRetainOneMember indicates that at least one owner must be retained in the entity.
	ErrRetainOneMember = errors.New("must retain at least one member")

	// ErrSuperAdminAction indicates that the user is not a super admin.
	ErrSuperAdminAction = errors.New("not authorized to perform admin action")

	// ErrUserAlreadyVerified indicates user is already verified.
	ErrUserAlreadyVerified = errors.New("user already verified")

	// ErrInvalidUserVerification indicates user verification is invalid.
	ErrInvalidUserVerification = errors.New("invalid verification")

	// ErrUserVerificationExpired indicates user verification is expired.
	ErrUserVerificationExpired = errors.New("verification expired, please generate new verification")

	// ErrExternalAuthProviderCouldNotUpdate indicates that users authenticated via external provider cannot update their account details directly.
	ErrExternalAuthProviderCouldNotUpdate = errors.New("account details can only be updated through your authentication provider's settings")
)

Wrapper for Service errors.

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