authorization

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 39 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 interface {
	// AdmitMessage determines whether the message should be admitted
	AdmitMessage(message beehivemodel.Message, info cloudhubmodel.HubInfo) error
	// AuthenticateConnection authenticates the new connection
	AuthenticateConnection(connection conn.Connection) error
}

Authorizer provides authorization enhancements for CloudHub

type Config

type Config struct {
	Enabled bool
	// Debug Authorizer logs errors but always allows messages
	Debug                    bool
	AuthorizationModes       []string
	VersionedInformerFactory informers.SharedInformerFactory
}

Config Authorizer's configurations

func (Config) New

func (c Config) New() (Authorizer, error)

New creates new Authorizer

Jump to

Keyboard shortcuts

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