authorization

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasResourceRoles

func HasResourceRoles(cfg config.Config, resource string, roles []string) bool

HasResourceRoles returns if a resource has the roles given

Types

type QRole

type QRole struct {
	Resource string   `bson:"resource"`
	Roles    []string `bson:"roles"`
}

QRole holds roles resources relationships

Jump to

Keyboard shortcuts

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