Documentation ¶
Index ¶
- Variables
- type Authorizer
- func (a *Authorizer) Check(ctx context.Context, user string, relation string, object string) (bool, error)
- func (a *Authorizer) FilterObjects(ctx context.Context, user string, relation string, objectType string, ...) ([]string, error)
- func (a *Authorizer) ListObjects(ctx context.Context, user string, relation string, objectType string) ([]string, error)
- func (a *Authorizer) ValidateModel(ctx context.Context) error
- type AuthorizerInterface
- type AuthzClientInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthModel = `` /* 710-byte string literal not displayed */
View Source
var ErrInvalidAuthModel = fmt.Errorf("Invalid authorization model schema")
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct { Client AuthzClientInterface // contains filtered or unexported fields }
func NewAuthorizer ¶
func NewAuthorizer(client AuthzClientInterface, tracer tracing.TracingInterface, monitor monitoring.MonitorInterface, logger logging.LoggerInterface) *Authorizer
func (*Authorizer) FilterObjects ¶
func (*Authorizer) ListObjects ¶
func (*Authorizer) ValidateModel ¶
func (a *Authorizer) ValidateModel(ctx context.Context) error
type AuthorizerInterface ¶
type AuthzClientInterface ¶
Click to show internal directories.
Click to hide internal directories.