operator

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 30 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 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 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