Documentation
¶
Overview ¶
Package rbac contains utilities for evaluating requests against roles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator interface { // Evaluate returns true if the given actions are allowed for the // peer information provided in the context. Evaluate(ctx context.Context, actions Actions) (bool, error) // IsSecure returns true if the evaluator is secure. IsSecure() bool }
Evaluator is an interface for evaluating actions.
func NewNoopEvaluator ¶
func NewNoopEvaluator() Evaluator
NewNoopEvaluator returns an evaluator that always returns true.
func NewStoreEvaluator ¶
func NewStoreEvaluator(store storage.MeshStorage) Evaluator
NewStoreEvaluator returns a ActionEvaluator that evaluates actions against the roles in the given store.
Click to show internal directories.
Click to hide internal directories.