Documentation ¶
Index ¶
- Variables
- type PermissionNode
- func (*PermissionNode) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionNode) GetNode() string
- func (x *PermissionNode) GetState() PermissionNode_PermissionState
- func (*PermissionNode) ProtoMessage()
- func (x *PermissionNode) ProtoReflect() protoreflect.Message
- func (x *PermissionNode) Reset()
- func (x *PermissionNode) String() string
- type PermissionNode_PermissionState
- func (PermissionNode_PermissionState) Descriptor() protoreflect.EnumDescriptor
- func (x PermissionNode_PermissionState) Enum() *PermissionNode_PermissionState
- func (PermissionNode_PermissionState) EnumDescriptor() ([]byte, []int)deprecated
- func (x PermissionNode_PermissionState) Number() protoreflect.EnumNumber
- func (x PermissionNode_PermissionState) String() string
- func (PermissionNode_PermissionState) Type() protoreflect.EnumType
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetDisplayName() string
- func (x *Role) GetId() string
- func (x *Role) GetPermissions() []*PermissionNode
- func (x *Role) GetPriority() uint32
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
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 (x *PermissionNode) GetState() PermissionNode_PermissionState
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) Descriptor() protoreflect.EnumDescriptor
func (PermissionNode_PermissionState) Enum ¶
func (x PermissionNode_PermissionState) Enum() *PermissionNode_PermissionState
func (PermissionNode_PermissionState) EnumDescriptor
deprecated
func (PermissionNode_PermissionState) EnumDescriptor() ([]byte, []int)
Deprecated: Use PermissionNode_PermissionState.Descriptor instead.
func (PermissionNode_PermissionState) Number ¶
func (x PermissionNode_PermissionState) Number() protoreflect.EnumNumber
func (PermissionNode_PermissionState) String ¶
func (x PermissionNode_PermissionState) String() string
func (PermissionNode_PermissionState) Type ¶
func (PermissionNode_PermissionState) Type() protoreflect.EnumType
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) GetDisplayName ¶
func (*Role) GetPermissions ¶
func (x *Role) GetPermissions() []*PermissionNode
func (*Role) GetPriority ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.