Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Rules to apply to requests to this method. // If a single rule evaluates to true, then the request is authorized. // If no rules evaluate to true, then the request is not authorized. // // optional authorize.RuleSet rules = 73902; E_Rules = &file_authorize_authorize_proto_extTypes[0] )
Extension fields to descriptorpb.MethodOptions.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct { // The expression to evaluate. This is a string that is evaluated against // the request. The expression must evaluate to a boolean value. // If the expression evaluates to true, then the request is authorized. Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` // contains filtered or unexported fields }
Rule is a single rule that is used to authorize a request.
func (*Rule) Descriptor
deprecated
func (*Rule) GetExpression ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleSet ¶
type RuleSet struct { // The rules to apply to a request. Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*RuleSet) Descriptor
deprecated
func (*RuleSet) ProtoMessage ¶
func (*RuleSet) ProtoMessage()
func (*RuleSet) ProtoReflect ¶
func (x *RuleSet) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.