Documentation
¶
Index ¶
- Variables
- type DetailedError
- func (d *DetailedError) Error() string
- func (d *DetailedError) GetDetails() string
- func (d *DetailedError) GetGUID() string
- func (d *DetailedError) GetInstance() string
- func (d *DetailedError) WithDetail(detail string) *DetailedError
- func (d *DetailedError) WithGUID(guid string) *DetailedError
- func (d *DetailedError) WithInstance(instance string) *DetailedError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAllBackendConfigError = errors.New("configuration errors in all Database sections") ErrUnsupportedMediaType = errors.New("unsupported media type") ErrFeatureBackendServersMonitoringDisabled = errors.New("backend_server_monitoring not enabled") ErrMonitoringBackendServersEmpty = errors.New("no monitoring backend servers configured") ErrInvalidUsername = errors.New("invalid username") ErrEmptyUsername = errors.New("empty_username") ErrEmptyPassword = errors.New("empty_password") ErrPasswordEncoding = errors.New("password encoding error") ErrIncorrectCache = errors.New("incorrect cache") ErrUnregisteredComponent = errors.New("unregistered component") )
View Source
var ( ErrWrongVerboseLevel = errors.New("wrong verbose level: <%s>") ErrWrongLDAPScope = errors.New("wrong LDAP scope: <%s>") ErrWrongPassDB = errors.New("wrong passdb backend: <%s>") ErrWrongFeature = errors.New("wrong feature: <%s>") ErrWrongDebugModule = errors.New("wrong debug module: <%s>") )
View Source
var ( ErrNoLDAPSection = errors.New("no 'ldap:' section found") ErrNoLDAPSearchSection = errors.New("no 'ldap::search:' section found") )
View Source
var ( ErrLDAPConnect = NewDetailedError("ldap_servers_connect_error") ErrLDAPConfig = NewDetailedError("ldap_config_error") ErrNoLDAPSearchResult = NewDetailedError("ldap_no_search_result") ErrLDAPConnectTimeout = NewDetailedError("ldap_connect_timeout") ErrLDAPSearchTimeout = NewDetailedError("ldap_search_timeout") ErrLDAPBindTimeout = NewDetailedError("ldap_bind_timeout") ErrLDAPModify = NewDetailedError("ldap_modify_error") // ErrLDAPPoolExhausted indicates that the LDAP pool could not serve the request // within the allotted time (capacity token acquisition or waiting for a free // connection timed out). Callers should treat this as a temporary failure and // avoid mapping it to "user not found". ErrLDAPPoolExhausted = NewDetailedError("ldap_pool_exhausted") )
View Source
var ( ErrLuaConfig = NewDetailedError("lua_config_error") ErrBackendLuaWrongUserData = NewDetailedError("wrong_user_data_result") ErrBackendLua = NewDetailedError("script_execution_failed") )
View Source
var ( ErrUnsupportedAlgorithm = errors.New("unsupported hash algorithm") ErrUnsupportedPasswordOption = errors.New("unsupported password option") )
View Source
var ( ErrNoPassDBResult = errors.New("no pass Database result") ErrUnknownCause = errors.New("something went wrong") ErrDurationTooHigh = errors.New("duration of too high") )
View Source
var ( ErrRuleNoIPv4AndIPv6 = errors.New("do not set 'ipv4' and 'ipv6' at the same time in a rule") ErrRuleMissingIPv4AndIPv6 = errors.New("neither 'ipv4' nor 'ipv6' specified in rule") ErrWrongIPAddress = errors.New("unable to parse IP address") )
View Source
var ( ErrNoLoginChallenge = errors.New("missing login challenge") ErrNoAccount = errors.New("no account found") ErrUnknownJSON = errors.New("unable to parse JSON response") ErrHTTPRequestGone = errors.New("http request gone") ErrHydraNoClientId = errors.New("no client_id returned from hydra server") ErrNoTLS = errors.New("no tls connection") ErrTOTPCodeInvalid = errors.New("totp code invalid") ErrNoTOTPCode = errors.New("totp code not found") ErrBruteForceAttack = errors.New("please contact the support") )
View Source
var ( ErrLanguageNotFound = errors.New("requested language not found") )
View Source
var ( ErrNotLoggedIn = errors.New("user not logged in") ErrNoTOTPURL = errors.New("no TOTP URL found") )
View Source
var ( ErrWebAuthnSessionData = errors.New("no webauthn session data found") ErrNoDisplayName = errors.New("no display name found") ErrUnknownDatabaseBackend = errors.New("unknown Database backend") )
View Source
var ( ErrFeatureLuaNameMissing = errors.New("feature 'name' sttribute missing") ErrFeatureLuaScriptPathEmpty = errors.New("feature 'script_path' attribute missing") )
View Source
var ( ErrNoFeatureDefined = errors.New("no feature defined") ErrNoFiltersDefined = errors.New("no filters defined") ErrFilterLuaNameMissing = errors.New("filter 'name' sttribute missing") ErrFilterLuaScriptPathEmpty = errors.New("filter 'script_path' attribute missing") )
View Source
var (
ErrDNSResolver = errors.New("resolver failed")
)
View Source
var (
ErrInvalidRange = errors.New("invalid range")
)
View Source
var (
ErrMissingTLS = errors.New("missing TLS connection")
)
Functions ¶
This section is empty.
Types ¶
type DetailedError ¶
type DetailedError struct {
// contains filtered or unexported fields
}
func NewDetailedError ¶
func NewDetailedError(err string) *DetailedError
func (*DetailedError) Error ¶
func (d *DetailedError) Error() string
func (*DetailedError) GetDetails ¶
func (d *DetailedError) GetDetails() string
func (*DetailedError) GetGUID ¶
func (d *DetailedError) GetGUID() string
func (*DetailedError) GetInstance ¶
func (d *DetailedError) GetInstance() string
func (*DetailedError) WithDetail ¶
func (d *DetailedError) WithDetail(detail string) *DetailedError
func (*DetailedError) WithGUID ¶
func (d *DetailedError) WithGUID(guid string) *DetailedError
func (*DetailedError) WithInstance ¶
func (d *DetailedError) WithInstance(instance string) *DetailedError
Click to show internal directories.
Click to hide internal directories.