middleware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AgentSpaceKey string
	ServerURL     string
)
View Source
var (
	HasUsers bool
)

Functions

func AgentApiAuth

func AgentApiAuth(next http.Handler) http.Handler

func AgentAuth

func AgentAuth(next http.Handler) http.Handler

func ApiAuth

func ApiAuth(next http.Handler) http.Handler

func ApiPermissionManageTemplates

func ApiPermissionManageTemplates(next http.Handler) http.Handler

func ApiPermissionManageUsers

func ApiPermissionManageUsers(next http.Handler) http.Handler

func ApiPermissionManageUsersOrSelf

func ApiPermissionManageUsersOrSelf(next http.Handler) http.Handler

func ApiPermissionManageVolumes

func ApiPermissionManageVolumes(next http.Handler) http.Handler

func DeleteSessionCookie

func DeleteSessionCookie(w http.ResponseWriter)

func GetSessionFromCookie

func GetSessionFromCookie(r *http.Request) *model.Session

func Initialize

func Initialize()

func WebAuth

func WebAuth(next http.Handler) http.Handler

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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