authz

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// authz roles list
	//
	// repeated string roles = 51000;
	E_Roles = &file_authz_proto_extTypes[0]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var (
	// authz rules
	//
	// optional authz.AuthzRules rules = 51001;
	E_Rules = &file_authz_proto_extTypes[1]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_authz_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthzRules

type AuthzRules struct {

	// You can set "allow", "disallow", "any". "allow" and "disallow" can be set
	// to the role included in the roles list. "allow" is white list. "disallow"
	// is black list. If you set true to "any", all roles are allowed.
	// If multiple rules are set, the one with the highest priority will be set.
	// The priority is "allow", "disallow", "any". Also, if no rule is set, all
	// roles will be disallowed.
	//
	// allowed role list
	Allow []string `protobuf:"bytes,1,rep,name=allow,proto3" json:"allow,omitempty"`
	// disallowed role list
	Disallow []string `protobuf:"bytes,2,rep,name=disallow,proto3" json:"disallow,omitempty"`
	// if true, any role is allowed
	Any bool `protobuf:"varint,3,opt,name=any,proto3" json:"any,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthzRules) Descriptor deprecated

func (*AuthzRules) Descriptor() ([]byte, []int)

Deprecated: Use AuthzRules.ProtoReflect.Descriptor instead.

func (*AuthzRules) GetAllow

func (x *AuthzRules) GetAllow() []string

func (*AuthzRules) GetAny

func (x *AuthzRules) GetAny() bool

func (*AuthzRules) GetDisallow

func (x *AuthzRules) GetDisallow() []string

func (*AuthzRules) ProtoMessage

func (*AuthzRules) ProtoMessage()

func (*AuthzRules) ProtoReflect

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

func (*AuthzRules) Reset

func (x *AuthzRules) Reset()

func (*AuthzRules) String

func (x *AuthzRules) String() string

Jump to

Keyboard shortcuts

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