Documentation ¶
Index ¶
- Variables
- func Auth(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
- func AuthByParameter(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
- func CheckUserAuthorization(c *gin.Context) (*dtos.PunqUser, error)
- func CheckUserAuthorizationByParameter(c *gin.Context) (*dtos.PunqUser, error)
- func CreateLogger(loggerPrefix string) gin.HandlerFunc
- func FindValidShell(container string, namespace string, podName string) string
- func HasSufficientAccess(c *gin.Context, requiredAccessLevel dtos.AccessLevel) (bool, error)
- func HasSufficientAccessByParameter(c *gin.Context, requiredAccessLevel dtos.AccessLevel) (bool, error)
- func InitAuthRoutes(router *gin.Engine)
- func InitBackend()
- func InitContextRoutes(router *gin.Engine)
- func InitFrontend()
- func InitGeneralRoutes(router *gin.Engine)
- func InitUserRoutes(router *gin.Engine)
- func InitWebsocket()
- func InitWebsocketRoutes(router *gin.Engine)
- func InitWorkloadRoutes(router *gin.Engine)
- func RequireContextId() gin.HandlerFunc
- type AuthHeader
- type LoginInput
Constants ¶
This section is empty.
Variables ¶
View Source
var HtmlDirFs embed.FS
Functions ¶
func Auth ¶
func Auth(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
func AuthByParameter ¶ added in v1.4.0
func AuthByParameter(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc
func CheckUserAuthorizationByParameter ¶ added in v1.4.0
func CreateLogger ¶ added in v1.2.39
func CreateLogger(loggerPrefix string) gin.HandlerFunc
func FindValidShell ¶ added in v1.4.5
func HasSufficientAccess ¶
func HasSufficientAccessByParameter ¶ added in v1.4.0
func InitAuthRoutes ¶ added in v1.2.0
func InitBackend ¶ added in v1.2.16
func InitBackend()
func InitContextRoutes ¶
func InitFrontend ¶ added in v1.2.16
func InitFrontend()
func InitGeneralRoutes ¶
func InitUserRoutes ¶
func InitWebsocket ¶ added in v1.4.0
func InitWebsocket()
func InitWebsocketRoutes ¶ added in v1.4.0
func InitWorkloadRoutes ¶
func RequireContextId ¶ added in v1.2.1
func RequireContextId() gin.HandlerFunc
Types ¶
type AuthHeader ¶ added in v1.2.0
type LoginInput ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.