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

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:

graph LR

A[Workspace] --> B[Member]
A --> C[MemberGroup]

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

View Source
const ResourceType = "MemberGroup"

ResourceType is the unique type name of MemberGroup

Variables

View Source
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

Cause function returns cause value.

func (MemberGroupValidationError) Error

Error satisfies the builtin error interface

func (MemberGroupValidationError) ErrorName

func (e MemberGroupValidationError) ErrorName() string

ErrorName returns error name.

func (MemberGroupValidationError) Field

Field function returns field value.

func (MemberGroupValidationError) Key

Key function returns key value.

func (MemberGroupValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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