errors

package
v0.0.0-...-35ac193 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIClientDoesntExist

func APIClientDoesntExist(w http.ResponseWriter)

APIClientDoesntExist means that the api client doesnt exist

func AttemptTimedOut

func AttemptTimedOut(w http.ResponseWriter)

AttemptTimedOut means that the attempt response was not recieved in time

func Duplicate

func Duplicate(w http.ResponseWriter)

Duplicate means there is a duplicate

func InternalServerError

func InternalServerError(w http.ResponseWriter)

InternalServerError is when the server broke something

func InvalidCredentials

func InvalidCredentials(w http.ResponseWriter)

InvalidCredentials means that the supplied credentials are not correct

func InvalidRootTrustClient

func InvalidRootTrustClient(w http.ResponseWriter)

InvalidRootTrustClient means that the supplied root trust client (credentials) are not correct

func MalformedBody

func MalformedBody(w http.ResponseWriter)

MalformedBody means that the body supplied is not correct

func MaxAttemptsReached

func MaxAttemptsReached(w http.ResponseWriter)

MaxAttemptsReached means that the maximum attempts have been reached

func MissingField

func MissingField(w http.ResponseWriter, field string)

MissingField means that the content is missing a field

func MissingPermission

func MissingPermission(w http.ResponseWriter, scope string)

MissingPermission means that the token is missing a permission

func NotFound

func NotFound(w http.ResponseWriter)

NotFound means that the content is not found

func OTPAlreadyEnabled

func OTPAlreadyEnabled(w http.ResponseWriter)

OTPAlreadyEnabled means otp is already enabled

func UserDoesntExist

func UserDoesntExist(w http.ResponseWriter)

UserDoesntExist means that the user doesnt exist

func WrongContentType

func WrongContentType(w http.ResponseWriter)

WrongContentType is the error for when the wrong content type was supplied

Types

This section is empty.

Jump to

Keyboard shortcuts

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