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 Need(rule expression.Expression) *NeedAccessRule
func (*NeedAccessRule) AccessRule ¶
func (n *NeedAccessRule) AccessRule() expression.Expression
func (*NeedAccessRule) InitFrom ¶
func (n *NeedAccessRule) InitFrom(o courier.Operator)
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)
Click to show internal directories.
Click to hide internal directories.