v1

package
v0.0.0-...-80f207f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 17 Imported by: 0

README

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:

graph LR
    A[Workspace] --> B[Member]

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

View Source
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"
)
View Source
const ResourceType = "Member"

ResourceType is the unique type name of Member

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetEmail

func (x *Member) GetEmail() string

func (*Member) GetRole

func (x *Member) GetRole() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

func (x *Member) ProtoReflect() protoreflect.Message

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

func (*Member) Validate

func (m *Member) Validate() error

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

func (m *Member) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL