api

package
v0.0.0-...-ef76644 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidConfiguration = apierrors.InternalError.WithReason("InvalidConfiguration")
	InvalidCredentials   = apierrors.Unauthorized.WithReason("InvalidCredentials")
	InvariantViolated    = apierrors.Invalid.WithReason("InvariantViolated")
)
View Source
var ChangePasswordFailed = apierrors.Invalid.WithReason("ChangePasswordFailed")
View Source
var ErrAuthenticatorNotFound = apierrors.NotFound.WithReason("AuthenticatorNotFound").New("authenticator not found")
View Source
var ErrClaimNotVerifiable = NewInvariantViolated("ClaimNotVerifiable", "claim not verifiable", nil)
View Source
var ErrGetUsersInvalidArgument = apierrors.Invalid.WithReason("GetUsersInvalidArgument")
View Source
var ErrIdentityModifyDisabled = NewInvariantViolated("IdentityModifyDisabled", "identity modification disabled", nil)
View Source
var ErrIdentityNotFound = apierrors.NotFound.WithReason("IdentityNotFound").New("identity not found")
View Source
var ErrInvalidCredentials = InvalidCredentials.New("invalid credentials")
View Source
var ErrLDAPCannotConnect = LDAPConnectionTestFailed.NewWithCause("failed to connect", apierrors.StringCause("FailedToConnect"))
View Source
var ErrLDAPEndUserSearchMultipleResult = LDAPConnectionTestFailed.NewWithCause("multiple end users found", apierrors.StringCause("MoreThanOneEntryInSearchResult"))
View Source
var ErrLDAPEndUserSearchNotFound = LDAPConnectionTestFailed.NewWithCause("end user not found", apierrors.StringCause("TestingEndUserNotFound"))
View Source
var ErrLDAPFailedToBindSearchUser = LDAPConnectionTestFailed.NewWithCause("failed to bind search user", apierrors.StringCause("FailedToBindSearchUser"))
View Source
var ErrLDAPMissingUniqueAttribute = LDAPConnectionTestFailed.NewWithCause("missing ID attribute", apierrors.StringCause("TestingEndUserMissingUserIDAttribute"))
View Source
var ErrMismatchedUser = NewInvariantViolated("MismatchedUser", "mismatched user", nil)
View Source
var ErrNoAuthenticator = NewInvariantViolated("NoAuthenticator", "no authenticator", nil)
View Source
var ErrNoPassword = ChangePasswordFailed.NewWithCause("the user does not have a password", apierrors.StringCause("NoPassword"))
View Source
var ErrOAuthProviderNotFound = apierrors.NotFound.WithReason("OAuthProviderNotFound").New("oauth provider not found")
View Source
var ErrPasswordReused = ChangePasswordFailed.NewWithCause("password reused", apierrors.StringCause("PasswordReused"))
View Source
var ErrTaskNotFound = apierrors.NotFound.WithReason("TaskNotFound").New("task not found")
View Source
var ErrUserNotFound = UserNotFound.New("user not found")
View Source
var LDAPConnectionTestFailed = apierrors.ServiceUnavailable.WithReason("LDAPConnectionTestFailed")
View Source
var UserNotFound = apierrors.NotFound.WithReason("UserNotFound")

Functions

func NewInvariantViolated

func NewInvariantViolated(cause string, msg string, data map[string]interface{}) error

Types

type Response

type Response struct {
	Result interface{}
	Error  error
}

func (*Response) MarshalJSON

func (r *Response) MarshalJSON() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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