annotations

package
v1.7.75 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Permissions_Wip           = bool(false)
	Default_Permissions_NoPermissions = bool(false)
)

Default values for Permissions fields.

Variables

View Source
var (
	// add annotations to method options
	//
	// optional annotations.Permissions authz = 560007;
	E_Authz = &file_annotations_authz_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_annotations_authz_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PermissionSet

type PermissionSet struct {
	Permissions []auth.Permission `protobuf:"varint,1,rep,name=permissions,enum=api.commons.auth.Permission" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionSet) Descriptor deprecated

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

Deprecated: Use PermissionSet.ProtoReflect.Descriptor instead.

func (*PermissionSet) GetPermissions

func (x *PermissionSet) GetPermissions() []auth.Permission

func (*PermissionSet) ProtoMessage

func (*PermissionSet) ProtoMessage()

func (*PermissionSet) ProtoReflect

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

func (*PermissionSet) Reset

func (x *PermissionSet) Reset()

func (*PermissionSet) String

func (x *PermissionSet) String() string

type Permissions

type Permissions struct {

	// A list of permission sets - atleast one set must exist in the list
	// to allow access.
	Sets []*PermissionSet `protobuf:"bytes,1,rep,name=sets" json:"sets,omitempty"`
	// WIP inject PERMISSION_DEV into the required list
	// don't use it, it will be removed soon
	//
	// Deprecated: Marked as deprecated in annotations/authz.proto.
	Wip *bool `protobuf:"varint,2,opt,name=wip,def=0" json:"wip,omitempty"`
	// Indicate that the method will use no permissions - it will be public.
	// Be careful with this.
	NoPermissions *bool `protobuf:"varint,3,opt,name=no_permissions,json=noPermissions,def=0" json:"no_permissions,omitempty"`
	// contains filtered or unexported fields
}

Permissions - annotation object

func (*Permissions) Descriptor deprecated

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

Deprecated: Use Permissions.ProtoReflect.Descriptor instead.

func (*Permissions) GetNoPermissions

func (x *Permissions) GetNoPermissions() bool

func (*Permissions) GetSets

func (x *Permissions) GetSets() []*PermissionSet

func (*Permissions) GetWip deprecated

func (x *Permissions) GetWip() bool

Deprecated: Marked as deprecated in annotations/authz.proto.

func (*Permissions) ProtoMessage

func (*Permissions) ProtoMessage()

func (*Permissions) ProtoReflect

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

func (*Permissions) Reset

func (x *Permissions) Reset()

func (*Permissions) String

func (x *Permissions) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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