authorize

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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.

View Source
var File_authorize_authorize_proto protoreflect.FileDescriptor

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) Descriptor() ([]byte, []int)

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetExpression

func (x *Rule) GetExpression() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

func (x *Rule) ProtoReflect() protoreflect.Message

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RuleSet.ProtoReflect.Descriptor instead.

func (*RuleSet) GetRules

func (x *RuleSet) GetRules() []*Rule

func (*RuleSet) ProtoMessage

func (*RuleSet) ProtoMessage()

func (*RuleSet) ProtoReflect

func (x *RuleSet) ProtoReflect() protoreflect.Message

func (*RuleSet) Reset

func (x *RuleSet) Reset()

func (*RuleSet) String

func (x *RuleSet) String() string

Jump to

Keyboard shortcuts

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