Documentation ¶
Overview ¶
Package v1
Workspace Member ¶
A workspace member is a user who has access to a workspace.
Guance Cloud supports managing all members of the current workspace through member management, including setting role permissions, inviting members and setting permissions for members, configuring member groups, and setting SSO single sign-on.
Relationships:
```mermaid graph LR
A[Workspace] --> B[Member]
```
Code generated by Iacker. DO NOT EDIT IT.
Index ¶
- Constants
- Variables
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetEmail() string
- func (x *Member) GetRole() string
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- func (m *Member) Validate() error
- func (m *Member) ValidateAll() error
- type MemberMultiError
- type MemberValidationError
Constants ¶
const ( // MemberRoleOwner is the value of Owner MemberRoleOwner = "owner" // MemberRoleAdministrator is the value of Administrator MemberRoleAdministrator = "wsAdmin" // MemberRoleStandard is the value of Standard MemberRoleStandard = "general" // MemberRoleReadOnly is the value of Read-only MemberRoleReadOnly = "readOnly" )
const ResourceType = "Member"
ResourceType is the unique type name of Member
Variables ¶
var File_pkg_resources_member_v1_member_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { // Email Email *string `protobuf:"bytes,1,opt,name=email,proto3,oneof" json:"email,omitempty"` // Role Role *string `protobuf:"bytes,2,opt,name=role,proto3,oneof" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Member) Descriptor
deprecated
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
func (*Member) Validate ¶
Validate checks the field values on Member 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 (*Member) ValidateAll ¶
ValidateAll checks the field values on Member 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 MemberMultiError, or nil if none found.
type MemberMultiError ¶
type MemberMultiError []error
MemberMultiError is an error wrapping multiple validation errors returned by Member.ValidateAll() if the designated constraints aren't met.
func (MemberMultiError) AllErrors ¶
func (m MemberMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemberMultiError) Error ¶
func (m MemberMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemberValidationError ¶
type MemberValidationError struct {
// contains filtered or unexported fields
}
MemberValidationError is the validation error returned by Member.Validate if the designated constraints aren't met.
func (MemberValidationError) Cause ¶
func (e MemberValidationError) Cause() error
Cause function returns cause value.
func (MemberValidationError) Error ¶
func (e MemberValidationError) Error() string
Error satisfies the builtin error interface
func (MemberValidationError) ErrorName ¶
func (e MemberValidationError) ErrorName() string
ErrorName returns error name.
func (MemberValidationError) Field ¶
func (e MemberValidationError) Field() string
Field function returns field value.
func (MemberValidationError) Key ¶
func (e MemberValidationError) Key() bool
Key function returns key value.
func (MemberValidationError) Reason ¶
func (e MemberValidationError) Reason() string
Reason function returns reason value.