Documentation
¶
Index ¶
- type Permission
- type RBACPlugin
- func (p *RBACPlugin) Authenticate(ctx context.Context, req *plugin.AuthRequest) (*plugin.Identity, error)
- func (p *RBACPlugin) Authorize(ctx context.Context, identity *plugin.Identity, action *plugin.Action) error
- func (p *RBACPlugin) Capabilities() []plugin.Capability
- func (p *RBACPlugin) Evaluate(ctx context.Context, req *plugin.PolicyRequest) (*plugin.PolicyDecision, error)
- func (p *RBACPlugin) Init(ctx context.Context, config map[string]interface{}) error
- func (p *RBACPlugin) Name() string
- func (p *RBACPlugin) Shutdown(ctx context.Context) error
- func (p *RBACPlugin) Version() string
- type Role
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type RBACPlugin ¶
type RBACPlugin struct {
// contains filtered or unexported fields
}
func New ¶
func New() *RBACPlugin
func (*RBACPlugin) Authenticate ¶
func (p *RBACPlugin) Authenticate(ctx context.Context, req *plugin.AuthRequest) (*plugin.Identity, error)
func (*RBACPlugin) Capabilities ¶
func (p *RBACPlugin) Capabilities() []plugin.Capability
func (*RBACPlugin) Evaluate ¶
func (p *RBACPlugin) Evaluate(ctx context.Context, req *plugin.PolicyRequest) (*plugin.PolicyDecision, error)
Policy interface implementation
func (*RBACPlugin) Init ¶
func (p *RBACPlugin) Init(ctx context.Context, config map[string]interface{}) error
func (*RBACPlugin) Name ¶
func (p *RBACPlugin) Name() string
func (*RBACPlugin) Version ¶
func (p *RBACPlugin) Version() string
type Role ¶
type Role struct {
Name string
Permissions []Permission
}
Click to show internal directories.
Click to hide internal directories.