configuration

package
v0.0.0-...-f24d5ce Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

DefaultAuthorizerFactory constructs deduplicated authorizers based on options specified in configuration messages.

Functions

This section is empty.

Types

type AuthorizerFactory

type AuthorizerFactory interface {
	// NewAuthorizerFromConfiguration constructs an authorizer based on
	// options specified in a configuration message.
	NewAuthorizerFromConfiguration(configuration *pb.AuthorizerConfiguration, grpcClientFactory grpc.ClientFactory) (auth.Authorizer, error)
}

AuthorizerFactory can be used to construct authorizers based on options specified in a configuration message.

func NewDeduplicatingAuthorizerFactory

func NewDeduplicatingAuthorizerFactory(base AuthorizerFactory) AuthorizerFactory

NewDeduplicatingAuthorizerFactory creates a new AuthorizerFactory which returns the same Authorizer for identical configurations, which may allow for things like sharing caches.

type BaseAuthorizerFactory

type BaseAuthorizerFactory struct{}

BaseAuthorizerFactory can be used to construct authorizers based on options specified in a configuration message.

func (BaseAuthorizerFactory) NewAuthorizerFromConfiguration

func (f BaseAuthorizerFactory) NewAuthorizerFromConfiguration(config *pb.AuthorizerConfiguration, grpcClientFactory grpc.ClientFactory) (auth.Authorizer, error)

NewAuthorizerFromConfiguration constructs an authorizer based on options specified in a configuration message.

Jump to

Keyboard shortcuts

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