rbac

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rbac GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPermissions

func WithPermissions(ctx context.Context, cs Permissions) context.Context

Types

type CanAccessRule

type CanAccessRule interface {
	AccessRule() expression.Expression
}

type NeedAccessRule

type NeedAccessRule struct {
	// contains filtered or unexported fields
}

func Need

func (*NeedAccessRule) AccessRule

func (n *NeedAccessRule) AccessRule() expression.Expression

func (*NeedAccessRule) CanAccess

func (n *NeedAccessRule) CanAccess(ctx context.Context) bool

func (*NeedAccessRule) InitFrom

func (n *NeedAccessRule) InitFrom(o courier.Operator)

func (*NeedAccessRule) Output

func (n *NeedAccessRule) Output(ctx context.Context) (any, error)

func (*NeedAccessRule) String

func (n *NeedAccessRule) String() string

type Permissions

type Permissions map[string]expression.Expression

func PermissionsFromContext

func PermissionsFromContext(ctx context.Context) Permissions

func PermissionsFromRouter

func PermissionsFromRouter(serviceName string, router courier.Router) Permissions

func (Permissions) RuntimeDoc

func (Permissions) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL