Documentation ¶
Overview ¶
Package v1
Member Group ¶
Member group is a collection of members in a workspace, and member groups can be authorized to access the resources in the workspace.
Member group is an abstract concept, it can be a team, or a department, it can help us build a reasonable organizational structure, optimize the management efficiency and user experience of the observability platform.
Relationships:
```mermaid graph LR
A[Workspace] --> B[Member] A --> C[MemberGroup] ```
Code generated by Iacker. DO NOT EDIT IT.
Index ¶
- Constants
- Variables
- type MemberGroup
- func (*MemberGroup) Descriptor() ([]byte, []int)deprecated
- func (x *MemberGroup) GetMemberIds() []string
- func (x *MemberGroup) GetName() string
- func (*MemberGroup) ProtoMessage()
- func (x *MemberGroup) ProtoReflect() protoreflect.Message
- func (x *MemberGroup) Reset()
- func (x *MemberGroup) String() string
- func (m *MemberGroup) Validate() error
- func (m *MemberGroup) ValidateAll() error
- type MemberGroupMultiError
- type MemberGroupValidationError
- func (e MemberGroupValidationError) Cause() error
- func (e MemberGroupValidationError) Error() string
- func (e MemberGroupValidationError) ErrorName() string
- func (e MemberGroupValidationError) Field() string
- func (e MemberGroupValidationError) Key() bool
- func (e MemberGroupValidationError) Reason() string
Constants ¶
const ResourceType = "MemberGroup"
ResourceType is the unique type name of MemberGroup
Variables ¶
var File_pkg_resources_membergroup_v1_membergroup_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MemberGroup ¶
type MemberGroup struct { // Name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Member id list MemberIds []string `protobuf:"bytes,2,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"` // contains filtered or unexported fields }
func (*MemberGroup) Descriptor
deprecated
func (*MemberGroup) Descriptor() ([]byte, []int)
Deprecated: Use MemberGroup.ProtoReflect.Descriptor instead.
func (*MemberGroup) GetMemberIds ¶
func (x *MemberGroup) GetMemberIds() []string
func (*MemberGroup) GetName ¶
func (x *MemberGroup) GetName() string
func (*MemberGroup) ProtoMessage ¶
func (*MemberGroup) ProtoMessage()
func (*MemberGroup) ProtoReflect ¶
func (x *MemberGroup) ProtoReflect() protoreflect.Message
func (*MemberGroup) Reset ¶
func (x *MemberGroup) Reset()
func (*MemberGroup) String ¶
func (x *MemberGroup) String() string
func (*MemberGroup) Validate ¶
func (m *MemberGroup) Validate() error
Validate checks the field values on MemberGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MemberGroup) ValidateAll ¶
func (m *MemberGroup) ValidateAll() error
ValidateAll checks the field values on MemberGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MemberGroupMultiError, or nil if none found.
type MemberGroupMultiError ¶
type MemberGroupMultiError []error
MemberGroupMultiError is an error wrapping multiple validation errors returned by MemberGroup.ValidateAll() if the designated constraints aren't met.
func (MemberGroupMultiError) AllErrors ¶
func (m MemberGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemberGroupMultiError) Error ¶
func (m MemberGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemberGroupValidationError ¶
type MemberGroupValidationError struct {
// contains filtered or unexported fields
}
MemberGroupValidationError is the validation error returned by MemberGroup.Validate if the designated constraints aren't met.
func (MemberGroupValidationError) Cause ¶
func (e MemberGroupValidationError) Cause() error
Cause function returns cause value.
func (MemberGroupValidationError) Error ¶
func (e MemberGroupValidationError) Error() string
Error satisfies the builtin error interface
func (MemberGroupValidationError) ErrorName ¶
func (e MemberGroupValidationError) ErrorName() string
ErrorName returns error name.
func (MemberGroupValidationError) Field ¶
func (e MemberGroupValidationError) Field() string
Field function returns field value.
func (MemberGroupValidationError) Key ¶
func (e MemberGroupValidationError) Key() bool
Key function returns key value.
func (MemberGroupValidationError) Reason ¶
func (e MemberGroupValidationError) Reason() string
Reason function returns reason value.