permission

package
v0.0.0-...-66adcdc Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PermissionNode_PermissionState_name = map[int32]string{
		0: "ALLOW",
		1: "DENY",
	}
	PermissionNode_PermissionState_value = map[string]int32{
		"ALLOW": 0,
		"DENY":  1,
	}
)

Enum value maps for PermissionNode_PermissionState.

View Source
var File_permission_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PermissionNode

type PermissionNode struct {
	Node  string                         `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	State PermissionNode_PermissionState `protobuf:"varint,2,opt,name=state,proto3,enum=emortal.model.permission.PermissionNode_PermissionState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionNode) Descriptor deprecated

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

Deprecated: Use PermissionNode.ProtoReflect.Descriptor instead.

func (*PermissionNode) GetNode

func (x *PermissionNode) GetNode() string

func (*PermissionNode) GetState

func (*PermissionNode) ProtoMessage

func (*PermissionNode) ProtoMessage()

func (*PermissionNode) ProtoReflect

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

func (*PermissionNode) Reset

func (x *PermissionNode) Reset()

func (*PermissionNode) String

func (x *PermissionNode) String() string

type PermissionNode_PermissionState

type PermissionNode_PermissionState int32
const (
	PermissionNode_ALLOW PermissionNode_PermissionState = 0
	PermissionNode_DENY  PermissionNode_PermissionState = 1
)

func (PermissionNode_PermissionState) Descriptor

func (PermissionNode_PermissionState) Enum

func (PermissionNode_PermissionState) EnumDescriptor deprecated

func (PermissionNode_PermissionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use PermissionNode_PermissionState.Descriptor instead.

func (PermissionNode_PermissionState) Number

func (PermissionNode_PermissionState) String

func (PermissionNode_PermissionState) Type

type Role

type Role struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Priority    uint32            `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	DisplayName *string           `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"`
	Permissions []*PermissionNode `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetDisplayName

func (x *Role) GetDisplayName() string

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetPermissions

func (x *Role) GetPermissions() []*PermissionNode

func (*Role) GetPriority

func (x *Role) GetPriority() uint32

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

Jump to

Keyboard shortcuts

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