middleware

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HasUsers bool
)

Functions

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 GetBearerToken added in v0.9.0

func GetBearerToken(w http.ResponseWriter, r *http.Request) string

func GetSessionFromCookie

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

func Initialize

func Initialize()

func LeafServerAuth added in v0.10.0

func LeafServerAuth(next http.Handler) http.Handler

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