operator

package
v1.3.0-develop.35 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HtmlDirFs embed.FS

Functions

func Auth

func Auth(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc

func CheckUserAuthorization

func CheckUserAuthorization(c *gin.Context) (*dtos.PunqUser, error)

func CreateLogger added in v1.2.39

func CreateLogger(loggerPrefix string) gin.HandlerFunc

func HasSufficientAccess

func HasSufficientAccess(c *gin.Context, requiredAccessLevel dtos.AccessLevel) (bool, error)

func InitAuthRoutes added in v1.2.0

func InitAuthRoutes(router *gin.Engine)

func InitBackend added in v1.2.16

func InitBackend()

func InitContextRoutes

func InitContextRoutes(router *gin.Engine)

func InitFrontend added in v1.2.16

func InitFrontend()

func InitGeneralRoutes

func InitGeneralRoutes(router *gin.Engine)

func InitUserRoutes

func InitUserRoutes(router *gin.Engine)

func InitWebsocket added in v1.4.0

func InitWebsocket()

func InitWebsocketRoutes added in v1.4.0

func InitWebsocketRoutes(router *gin.Engine)

func InitWorkloadRoutes

func InitWorkloadRoutes(router *gin.Engine)

func RequireContainerName

func RequireContainerName() gin.HandlerFunc

func RequireContextId added in v1.2.1

func RequireContextId() gin.HandlerFunc

func RequireNamespace

func RequireNamespace() gin.HandlerFunc

func RequirePodName

func RequirePodName() gin.HandlerFunc

Types

type AuthHeader added in v1.2.0

type AuthHeader struct {
	Scheme string
	Value  string
}

type LoginInput added in v1.2.0

type LoginInput struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

Jump to

Keyboard shortcuts

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