Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAuthorizerFactory = NewDeduplicatingAuthorizerFactory(BaseAuthorizerFactory{})
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.
Click to show internal directories.
Click to hide internal directories.