Documentation
¶
Index ¶
- Variables
- type DomainType
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetAction() string
- func (x *Permission) GetDomainType() DomainType
- func (x *Permission) GetResource() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DomainType_name = map[int32]string{ 0: "DOMAIN_TYPE_UNSPECIFIED", 1: "DOMAIN_TYPE_ORGANIZATION", } DomainType_value = map[string]int32{ "DOMAIN_TYPE_UNSPECIFIED": 0, "DOMAIN_TYPE_ORGANIZATION": 1, } )
Enum value maps for DomainType.
Functions ¶
This section is empty.
Types ¶
type DomainType ¶
type DomainType int32
Enums
const ( DomainType_DOMAIN_TYPE_UNSPECIFIED DomainType = 0 DomainType_DOMAIN_TYPE_ORGANIZATION DomainType = 1 )
func (DomainType) Descriptor ¶
func (DomainType) Descriptor() protoreflect.EnumDescriptor
func (DomainType) Enum ¶
func (x DomainType) Enum() *DomainType
func (DomainType) EnumDescriptor
deprecated
func (DomainType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DomainType.Descriptor instead.
func (DomainType) Number ¶
func (x DomainType) Number() protoreflect.EnumNumber
func (DomainType) String ¶
func (x DomainType) String() string
func (DomainType) Type ¶
func (DomainType) Type() protoreflect.EnumType
type Permission ¶
type Permission struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
DomainType DomainType `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
Common data structures
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetAction ¶
func (x *Permission) GetAction() string
func (*Permission) GetDomainType ¶
func (x *Permission) GetDomainType() DomainType
func (*Permission) GetResource ¶
func (x *Permission) GetResource() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
Click to show internal directories.
Click to hide internal directories.