api

package
v0.0.0-...-4623cc2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 3 modules, 2 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 (
	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 OAuthProviderMissingCredentials = apierrors.Invalid.WithReason("OAuthProviderMissingCredentials")
View Source
var UserNotFound = apierrors.NotFound.WithReason("UserNotFound")

Functions

func NewInvariantViolated

func NewInvariantViolated(cause string, msg string, data map[string]any) error

Types

type Response

type Response struct {
	Result any
	Error  error
}

func (*Response) EncodeToJSON

func (r *Response) EncodeToJSON(ctx context.Context) ([]byte, error)

Directories

Path Synopsis
Package siteadmin provides primitives to interact with the openapi HTTP API.
Package siteadmin provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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