projectsv1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_iam_projects_v1_projects_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cursor

type Cursor struct {

	// Before - курсор для получения предыдущей страницы.
	Before string `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	// After - курсор для получения следующей страницы.
	After string `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

Cursor используется для курсорной пагинации,

func (*Cursor) Descriptor deprecated

func (*Cursor) Descriptor() ([]byte, []int)

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetAfter

func (x *Cursor) GetAfter() string

func (*Cursor) GetBefore

func (x *Cursor) GetBefore() string

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

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

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

Validate checks the field values on Cursor 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 (*Cursor) ValidateAll

func (m *Cursor) ValidateAll() error

ValidateAll checks the field values on Cursor 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 CursorMultiError, or nil if none found.

type CursorMultiError

type CursorMultiError []error

CursorMultiError is an error wrapping multiple validation errors returned by Cursor.ValidateAll() if the designated constraints aren't met.

func (CursorMultiError) AllErrors

func (m CursorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CursorMultiError) Error

func (m CursorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CursorValidationError

type CursorValidationError struct {
	// contains filtered or unexported fields
}

CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type ListProjectUsersRequest

type ListProjectUsersRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Email user email. Search users by partial match
	Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
	// UserName user's username. Search users by partial match
	UserName *string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3,oneof" json:"user_name,omitempty"`
	// Limit - количество элементов на странице.
	// При указании значения 0 будут возвращены все
	// пользователи удовлетворяющие запросу.
	Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// Before - курсор для получения предыдущей страницы
	// пользователей.
	Before string `protobuf:"bytes,5,opt,name=before,proto3" json:"before,omitempty"`
	// After - курсор для получения следующей страницы
	// пользователей.
	After string `protobuf:"bytes,6,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

ListProjectUsersRequest request to list user's on project

func (*ListProjectUsersRequest) Descriptor deprecated

func (*ListProjectUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectUsersRequest.ProtoReflect.Descriptor instead.

func (*ListProjectUsersRequest) GetAfter

func (x *ListProjectUsersRequest) GetAfter() string

func (*ListProjectUsersRequest) GetBefore

func (x *ListProjectUsersRequest) GetBefore() string

func (*ListProjectUsersRequest) GetEmail

func (x *ListProjectUsersRequest) GetEmail() string

func (*ListProjectUsersRequest) GetLimit

func (x *ListProjectUsersRequest) GetLimit() uint32

func (*ListProjectUsersRequest) GetProjectId

func (x *ListProjectUsersRequest) GetProjectId() string

func (*ListProjectUsersRequest) GetUserName

func (x *ListProjectUsersRequest) GetUserName() string

func (*ListProjectUsersRequest) ProtoMessage

func (*ListProjectUsersRequest) ProtoMessage()

func (*ListProjectUsersRequest) ProtoReflect

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

func (*ListProjectUsersRequest) Reset

func (x *ListProjectUsersRequest) Reset()

func (*ListProjectUsersRequest) String

func (x *ListProjectUsersRequest) String() string

func (*ListProjectUsersRequest) Validate

func (m *ListProjectUsersRequest) Validate() error

Validate checks the field values on ListProjectUsersRequest 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 (*ListProjectUsersRequest) ValidateAll

func (m *ListProjectUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListProjectUsersRequest 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 ListProjectUsersRequestMultiError, or nil if none found.

type ListProjectUsersRequestMultiError

type ListProjectUsersRequestMultiError []error

ListProjectUsersRequestMultiError is an error wrapping multiple validation errors returned by ListProjectUsersRequest.ValidateAll() if the designated constraints aren't met.

func (ListProjectUsersRequestMultiError) AllErrors

func (m ListProjectUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProjectUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProjectUsersRequestValidationError

type ListProjectUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListProjectUsersRequestValidationError is the validation error returned by ListProjectUsersRequest.Validate if the designated constraints aren't met.

func (ListProjectUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListProjectUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListProjectUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListProjectUsersRequestValidationError) Field

Field function returns field value.

func (ListProjectUsersRequestValidationError) Key

Key function returns key value.

func (ListProjectUsersRequestValidationError) Reason

Reason function returns reason value.

type ListProjectUsersResponse

type ListProjectUsersResponse struct {

	// Users list of project users
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// Limit - количество элементов на странице.
	Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	// Cursor - курсоры для следующей и предыдущей страниц.
	Cursor *Cursor `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

ListProjectUsersResponse response to list user's on project request

func (*ListProjectUsersResponse) Descriptor deprecated

func (*ListProjectUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProjectUsersResponse.ProtoReflect.Descriptor instead.

func (*ListProjectUsersResponse) GetCursor

func (x *ListProjectUsersResponse) GetCursor() *Cursor

func (*ListProjectUsersResponse) GetLimit

func (x *ListProjectUsersResponse) GetLimit() uint32

func (*ListProjectUsersResponse) GetUsers

func (x *ListProjectUsersResponse) GetUsers() []*User

func (*ListProjectUsersResponse) ProtoMessage

func (*ListProjectUsersResponse) ProtoMessage()

func (*ListProjectUsersResponse) ProtoReflect

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

func (*ListProjectUsersResponse) Reset

func (x *ListProjectUsersResponse) Reset()

func (*ListProjectUsersResponse) String

func (x *ListProjectUsersResponse) String() string

func (*ListProjectUsersResponse) Validate

func (m *ListProjectUsersResponse) Validate() error

Validate checks the field values on ListProjectUsersResponse 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 (*ListProjectUsersResponse) ValidateAll

func (m *ListProjectUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListProjectUsersResponse 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 ListProjectUsersResponseMultiError, or nil if none found.

type ListProjectUsersResponseMultiError

type ListProjectUsersResponseMultiError []error

ListProjectUsersResponseMultiError is an error wrapping multiple validation errors returned by ListProjectUsersResponse.ValidateAll() if the designated constraints aren't met.

func (ListProjectUsersResponseMultiError) AllErrors

func (m ListProjectUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProjectUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProjectUsersResponseValidationError

type ListProjectUsersResponseValidationError struct {
	// contains filtered or unexported fields
}

ListProjectUsersResponseValidationError is the validation error returned by ListProjectUsersResponse.Validate if the designated constraints aren't met.

func (ListProjectUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListProjectUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListProjectUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListProjectUsersResponseValidationError) Field

Field function returns field value.

func (ListProjectUsersResponseValidationError) Key

Key function returns key value.

func (ListProjectUsersResponseValidationError) Reason

Reason function returns reason value.

type ProjectsServiceClient

type ProjectsServiceClient interface {
	// ListUsers list user's that have permissions on project
	ListUsers(ctx context.Context, in *ListProjectUsersRequest, opts ...grpc.CallOption) (*ListProjectUsersResponse, error)
}

ProjectsServiceClient is the client API for ProjectsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type User

type User struct {

	// UserID user id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Email user email
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// UserName user's username
	UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

ProjectUser project user data

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetUserName

func (x *User) GetUserName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User 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 (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) 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