Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional rbac.RBAC access = 1191;
E_Access = &file_rbac_rbac_proto_extTypes[1]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var (
// optional rbac.RoleDefinition def = 1190;
E_Def = &file_rbac_rbac_proto_extTypes[0]
)
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_rbac_rbac_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RBAC ¶
type RBAC struct { Roles []string `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*RBAC) Descriptor
deprecated
func (*RBAC) ProtoMessage ¶
func (*RBAC) ProtoMessage()
func (*RBAC) ProtoReflect ¶
func (x *RBAC) ProtoReflect() protoreflect.Message
type Role ¶ added in v0.1.0
type Role struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Parents []string `protobuf:"bytes,2,rep,name=parents" json:"parents,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
added in
v0.1.0
func (*Role) GetParents ¶ added in v0.1.0
func (*Role) ProtoMessage ¶ added in v0.1.0
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶ added in v0.1.0
func (x *Role) ProtoReflect() protoreflect.Message
type RoleDefinition ¶ added in v0.1.0
type RoleDefinition struct { Roles []*Role `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*RoleDefinition) Descriptor
deprecated
added in
v0.1.0
func (*RoleDefinition) Descriptor() ([]byte, []int)
Deprecated: Use RoleDefinition.ProtoReflect.Descriptor instead.
func (*RoleDefinition) GetRoles ¶ added in v0.1.0
func (x *RoleDefinition) GetRoles() []*Role
func (*RoleDefinition) ProtoMessage ¶ added in v0.1.0
func (*RoleDefinition) ProtoMessage()
func (*RoleDefinition) ProtoReflect ¶ added in v0.1.0
func (x *RoleDefinition) ProtoReflect() protoreflect.Message
func (*RoleDefinition) Reset ¶ added in v0.1.0
func (x *RoleDefinition) Reset()
func (*RoleDefinition) String ¶ added in v0.1.0
func (x *RoleDefinition) String() string
Click to show internal directories.
Click to hide internal directories.