api

package
v0.0.0-...-90da431 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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 ErrClaimNotVerifiable = NewInvariantViolated("ClaimNotVerifiable", "claim not verifiable", nil)
View Source
var ErrDuplicatedIdentity = NewInvariantViolated("DuplicatedIdentity", "identity already exists", nil)
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 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 ErrUserNotFound = UserNotFound.New("user not found")
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