Documentation
¶
Index ¶
- func AccessProviderCallFailed(err error) (code int, body gin.H)
- func AccessProviderCallPartiallyFailed(err error) (code int, body gin.H)
- func ErrorAuthInvalidToken(err error, scope string) (code int, body gin.H)
- func ErrorAuthMissingAuthHeader(err error) (code int, body gin.H)
- func ErrorAuthOidcInit(err error) (code int, body gin.H)
- func ErrorAuthTokenVerificationFailed(err error, scope string) (code int, body gin.H)
- func ErrorBase64(err error) (code int, body gin.H)
- func ErrorDatabaseInsert(err error) (code int, body gin.H)
- func ErrorDatabaseRecordNotFound() (code int, body gin.H)
- func ErrorDatabaseSelect(err error) (code int, body gin.H)
- func ErrorInvalidUserProfile(err error) (code int, body gin.H)
- func ErrorJsonUnmarshal(err error) (code int, body gin.H)
- func ErrorSchemaValidation(err error) (code int, body gin.H)
- func ErrorTeleportApi(err error) (code int, body gin.H)
- func ErrorTracing(err error) (code int, body gin.H)
- func ErrorYamlUnmarshal(err error) (code int, body gin.H)
- func StatusCreated() (code int, body gin.H)
- func StatusDeleted() (code int, body gin.H)
- func StatusDenied() (code int, body gin.H)
- func StatusOk() (code int, body gin.H)
- func StatusUpdated() (code int, body gin.H)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessProviderCallFailed ¶
{
"type": "/errors/providers",
"title": "Failure calling access provider",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func AccessProviderCallPartiallyFailed ¶
{
"type": "/errors/providers",
"title": "Partial failure calling access provider",
"status": http.StatusMultiStatus,
"error": err.Error(),
}
func ErrorAuthInvalidToken ¶
{
"type": "/errors/middleware-auth",
"title": "Invalid token",
"scope": scope,
"status": http.StatusUnauthorized,
"error": err.Error(),
}
func ErrorAuthMissingAuthHeader ¶
{
"type": "/errors/middleware-auth",
"title": "Required headers are missing",
"status": http.StatusUnauthorized,
"error": err.Error(),
}
func ErrorAuthOidcInit ¶
{
"type": "/errors/middleware-auth",
"title": "Failed to init OIDC provider",
"status": http.StatusUnauthorized,
"error": err.Error(),
}
func ErrorAuthTokenVerificationFailed ¶
{
"type": "/errors/middleware-auth",
"title": "Token verification failed",
"scope": scope,
"status": http.StatusUnauthorized,
"error": err.Error(),
}
func ErrorBase64 ¶
{
"type": "/errors/base64",
"title": "Failed to decode/encode base64",
"status": http.StatusInternalServerError,
"error": err.Error(),
}
func ErrorDatabaseInsert ¶
{
"type": "/errors/database",
"title": "Failed to insert into database",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorDatabaseRecordNotFound ¶
{
"type": "/errors/database",
"title": "Record not found",
"status": http.StatusBadRequest,
}
func ErrorDatabaseSelect ¶
{
"type": "/errors/database",
"title": "Failed to query the database",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorInvalidUserProfile ¶
{
"type": "/errors/user-profile",
"title": "Invalid user profile configuration",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorJsonUnmarshal ¶
{
"type": "/errors/json-decode",
"title": "Failed to decode JSON",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorSchemaValidation ¶
{
"type": "/errors/schema-validation",
"title": "Schema validation failed",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorTeleportApi ¶
{
"type": "/errors/teleport-api",
"title": "Failure Teleport API",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func ErrorTracing ¶
{
"type": "/errors/tracing",
"title": "Failure creating trace",
"status": http.StatusInternalServerError,
"error": err.Error(),
}
func ErrorYamlUnmarshal ¶
{
"type": "/errors/yaml-decode",
"title": "Failed to decode YAML",
"status": http.StatusBadRequest,
"error": err.Error(),
}
func StatusCreated ¶
{
"type": "/status/success",
"title": "Record successfully created",
"status": http.StatusCreated,
}
func StatusDeleted ¶
{
"type": "/status/success",
"title": "Record successfully deleted",
"status": http.StatusOK,
}
func StatusDenied ¶
{
"type": "/status/denied",
"title": "You are not authorised to perform this action",
"status": http.StatusForbidden,
}
func StatusOk ¶
{
"type": "/status/ok",
"title": "Operation was successful",
"status": http.StatusOk,
}
func StatusUpdated ¶
{
"type": "/status/success",
"title": "Record successfully updated",
"status": http.StatusCreated,
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.