operator

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 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 AuthByParameter added in v1.4.0

func AuthByParameter(requiredAccessLevel dtos.AccessLevel) gin.HandlerFunc

func CheckUserAuthorization

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

func CheckUserAuthorizationByParameter added in v1.4.0

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

func CreateLogger added in v1.2.39

func CreateLogger(loggerPrefix string) gin.HandlerFunc

func FindValidShell added in v1.4.5

func FindValidShell(container string, namespace string, podName string) string

func HasSufficientAccess

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

func HasSufficientAccessByParameter added in v1.4.0

func HasSufficientAccessByParameter(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 RequireContextId added in v1.2.1

func RequireContextId() 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