Documentation ¶
Index ¶
- type Authorizer
- func (a *Authorizer) AppendBindingProviders(providers ...BindingProvider)
- func (a *Authorizer) Authorize(ctx context.Context, attr authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
- func (a *Authorizer) Bindings(ctx context.Context, user user.Info) (result []binding.Binding, _ error)
- type BindingAuthorizer
- type BindingProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct { Client kclient.Client Providers []BindingProvider }
func (*Authorizer) AppendBindingProviders ¶
func (a *Authorizer) AppendBindingProviders(providers ...BindingProvider)
AppendBindingProviders adds a new binding provider to the authorizer.
func (*Authorizer) Authorize ¶
func (a *Authorizer) Authorize(ctx context.Context, attr authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
Authorize is called by k8s.
type BindingAuthorizer ¶
type BindingAuthorizer interface { authorizer.Authorizer AppendBindingProviders(provider ...BindingProvider) Bindings(ctx context.Context, user user.Info) ([]binding.Binding, error) }
func NewAllowAll ¶
func NewAllowAll() BindingAuthorizer
Click to show internal directories.
Click to hide internal directories.