Documentation ¶
Index ¶
- Variables
- type Cursor
- func (*Cursor) Descriptor() ([]byte, []int)deprecated
- func (x *Cursor) GetAfter() string
- func (x *Cursor) GetBefore() string
- func (*Cursor) ProtoMessage()
- func (x *Cursor) ProtoReflect() protoreflect.Message
- func (x *Cursor) Reset()
- func (x *Cursor) String() string
- func (m *Cursor) Validate() error
- func (m *Cursor) ValidateAll() error
- type CursorMultiError
- type CursorValidationError
- type ListProjectUsersRequest
- func (*ListProjectUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectUsersRequest) GetAfter() string
- func (x *ListProjectUsersRequest) GetBefore() string
- func (x *ListProjectUsersRequest) GetEmail() string
- func (x *ListProjectUsersRequest) GetLimit() uint32
- func (x *ListProjectUsersRequest) GetProjectId() string
- func (x *ListProjectUsersRequest) GetUserName() string
- func (*ListProjectUsersRequest) ProtoMessage()
- func (x *ListProjectUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListProjectUsersRequest) Reset()
- func (x *ListProjectUsersRequest) String() string
- func (m *ListProjectUsersRequest) Validate() error
- func (m *ListProjectUsersRequest) ValidateAll() error
- type ListProjectUsersRequestMultiError
- type ListProjectUsersRequestValidationError
- func (e ListProjectUsersRequestValidationError) Cause() error
- func (e ListProjectUsersRequestValidationError) Error() string
- func (e ListProjectUsersRequestValidationError) ErrorName() string
- func (e ListProjectUsersRequestValidationError) Field() string
- func (e ListProjectUsersRequestValidationError) Key() bool
- func (e ListProjectUsersRequestValidationError) Reason() string
- type ListProjectUsersResponse
- func (*ListProjectUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectUsersResponse) GetCursor() *Cursor
- func (x *ListProjectUsersResponse) GetLimit() uint32
- func (x *ListProjectUsersResponse) GetUsers() []*User
- func (*ListProjectUsersResponse) ProtoMessage()
- func (x *ListProjectUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListProjectUsersResponse) Reset()
- func (x *ListProjectUsersResponse) String() string
- func (m *ListProjectUsersResponse) Validate() error
- func (m *ListProjectUsersResponse) ValidateAll() error
- type ListProjectUsersResponseMultiError
- type ListProjectUsersResponseValidationError
- func (e ListProjectUsersResponseValidationError) Cause() error
- func (e ListProjectUsersResponseValidationError) Error() string
- func (e ListProjectUsersResponseValidationError) ErrorName() string
- func (e ListProjectUsersResponseValidationError) Field() string
- func (e ListProjectUsersResponseValidationError) Key() bool
- func (e ListProjectUsersResponseValidationError) Reason() string
- type ProjectsServiceClient
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetUserName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Cursor) ProtoMessage()
func (*Cursor) ProtoReflect ¶
func (x *Cursor) ProtoReflect() protoreflect.Message
func (*Cursor) Validate ¶
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 ¶
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 ¶
func (m ListProjectUsersRequestMultiError) Error() string
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 ¶
func (e ListProjectUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (ListProjectUsersRequestValidationError) Error ¶
func (e ListProjectUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListProjectUsersRequestValidationError) ErrorName ¶
func (e ListProjectUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListProjectUsersRequestValidationError) Field ¶
func (e ListProjectUsersRequestValidationError) Field() string
Field function returns field value.
func (ListProjectUsersRequestValidationError) Key ¶
func (e ListProjectUsersRequestValidationError) Key() bool
Key function returns key value.
func (ListProjectUsersRequestValidationError) Reason ¶
func (e ListProjectUsersRequestValidationError) Reason() string
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 ¶
func (m ListProjectUsersResponseMultiError) Error() string
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 ¶
func (e ListProjectUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (ListProjectUsersResponseValidationError) Error ¶
func (e ListProjectUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListProjectUsersResponseValidationError) ErrorName ¶
func (e ListProjectUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListProjectUsersResponseValidationError) Field ¶
func (e ListProjectUsersResponseValidationError) Field() string
Field function returns field value.
func (ListProjectUsersResponseValidationError) Key ¶
func (e ListProjectUsersResponseValidationError) Key() bool
Key function returns key value.
func (ListProjectUsersResponseValidationError) Reason ¶
func (e ListProjectUsersResponseValidationError) Reason() string
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.
func NewProjectsServiceClient ¶
func NewProjectsServiceClient(cc grpc.ClientConnInterface) ProjectsServiceClient
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) GetUserName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
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 ¶
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.