authorizer

package
v0.0.0-...-949823d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Authorizer

func (*Authorizer) GetAuthorizedObjects

func (a *Authorizer) GetAuthorizedObjects(objects any, authorizer func(any) bool) any

func (*Authorizer) IsObjectAuthorized

func (a *Authorizer) IsObjectAuthorized(object any) bool

type ComponentAuthorizer

type ComponentAuthorizer func(component componentsapi.Component) bool

Type of function that determines if a component is authorized. The function receives the component and must return true if the component is authorized.

type HTTPEndpointAuthorizer

type HTTPEndpointAuthorizer func(endpoint httpendpointsapi.HTTPEndpoint) bool

Type of function that determines if an http endpoint is authorized. The function receives the http endpoint and must return true if the http endpoint is authorized.

type Options

type Options struct {
	ID           string
	GlobalConfig *config.Configuration
}

Jump to

Keyboard shortcuts

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