Documentation ¶
Index ¶
- func Authentication(ctx *gin.Context)
- func EpinioVersion(ctx *gin.Context)
- func GitconfigAuthorization(c *gin.Context)
- func InitContext(logger logr.Logger) gin.HandlerFunc
- func NamespaceAuthorization(c *gin.Context)
- func NamespaceExists(c *gin.Context)
- func RoleAuthorization(c *gin.Context)
- func TokenAuth(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authentication ¶
Authentication middleware authenticates the user either using the basic auth or the bearer token (OIDC)
func EpinioVersion ¶
func GitconfigAuthorization ¶
func InitContext ¶
func InitContext(logger logr.Logger) gin.HandlerFunc
InitContext initialize the Request Context injecting the logger and the requestID
func NamespaceAuthorization ¶
func NamespaceExists ¶
NamespaceExists is a gin middleware used to check if a namespaced route is valid. It checks the validity of the requested namespace, returning a 404 if it doesn't exists
func RoleAuthorization ¶
RoleAuthorization middleware is used to check if the user is allowed for the incoming request checking the verb, path and eventually the params of it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.