auth

package
v1.31.1-rc5.0...-9692409 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRole

func HasRole(serverConfig *config.Control, roles ...string) mux.MiddlewareFunc

HasRole returns a middleware function that validates that the request is being made with at least one of the listed roles.

func IsLocalOrHasRole

func IsLocalOrHasRole(serverConfig *config.Control, roles ...string) mux.MiddlewareFunc

IsLocalOrHasRole returns a middleware function that validates that the request is from a local client or has at least one of the listed roles.

Types

This section is empty.

Jump to

Keyboard shortcuts

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