Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddMemberRequest
- func (*AddMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddMemberRequest) GetGroupId() string
- func (x *AddMemberRequest) GetMemberIds() []*MemberID
- func (*AddMemberRequest) ProtoMessage()
- func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
- func (x *AddMemberRequest) Reset()
- func (x *AddMemberRequest) String() string
- type AddMemberResponse
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type GetRequest
- type GetResponse
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreatedAt() *timestamppb.Timestamp
- func (x *Group) GetGroupId() string
- func (x *Group) GetMetadata() map[string][]byte
- func (x *Group) GetNumMembers() uint64
- func (x *Group) GetUpdatedAt() *timestamppb.Timestamp
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type ListGroupsForMemberRequest
- func (*ListGroupsForMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsForMemberRequest) GetMemberId() *MemberID
- func (x *ListGroupsForMemberRequest) GetPagination() *model.Pagination
- func (*ListGroupsForMemberRequest) ProtoMessage()
- func (x *ListGroupsForMemberRequest) ProtoReflect() protoreflect.Message
- func (x *ListGroupsForMemberRequest) Reset()
- func (x *ListGroupsForMemberRequest) String() string
- type ListGroupsForMemberResponse
- func (*ListGroupsForMemberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGroupsForMemberResponse) GetGroups() []*Group
- func (x *ListGroupsForMemberResponse) GetTotal() uint64
- func (*ListGroupsForMemberResponse) ProtoMessage()
- func (x *ListGroupsForMemberResponse) ProtoReflect() protoreflect.Message
- func (x *ListGroupsForMemberResponse) Reset()
- func (x *ListGroupsForMemberResponse) String() string
- type ListMembersRequest
- func (*ListMembersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMembersRequest) GetGroupId() string
- func (x *ListMembersRequest) GetPagination() *model.Pagination
- func (*ListMembersRequest) ProtoMessage()
- func (x *ListMembersRequest) ProtoReflect() protoreflect.Message
- func (x *ListMembersRequest) Reset()
- func (x *ListMembersRequest) String() string
- type ListMembersResponse
- func (*ListMembersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMembersResponse) GetMembers() []*model.MemberEntry
- func (x *ListMembersResponse) GetTotal() uint64
- func (*ListMembersResponse) ProtoMessage()
- func (x *ListMembersResponse) ProtoReflect() protoreflect.Message
- func (x *ListMembersResponse) Reset()
- func (x *ListMembersResponse) String() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPagination() *model.Pagination
- func (x *ListRequest) GetSearch() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetGroups() []*Group
- func (x *ListResponse) GetTotal() uint64
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type MemberID
- func (*MemberID) Descriptor() ([]byte, []int)deprecated
- func (m *MemberID) GetKind() isMemberID_Kind
- func (x *MemberID) GetServiceAccountId() string
- func (x *MemberID) GetUserId() string
- func (*MemberID) ProtoMessage()
- func (x *MemberID) ProtoReflect() protoreflect.Message
- func (x *MemberID) Reset()
- func (x *MemberID) String() string
- type MemberID_ServiceAccountId
- type MemberID_UserId
- type RemoveMemberRequest
- func (*RemoveMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveMemberRequest) GetGroupId() string
- func (x *RemoveMemberRequest) GetMemberId() *MemberID
- func (*RemoveMemberRequest) ProtoMessage()
- func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveMemberRequest) Reset()
- func (x *RemoveMemberRequest) String() string
- type RemoveMemberResponse
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error)
- func (UnimplementedServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedServiceServer) ListGroupsForMember(context.Context, *ListGroupsForMemberRequest) (*ListGroupsForMemberResponse, error)
- func (UnimplementedServiceServer) ListMembers(context.Context, *ListMembersRequest) (*ListMembersResponse, error)
- func (UnimplementedServiceServer) RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error)
- func (UnimplementedServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeServiceServer
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetDeleteMetadataKey() string
- func (m *Update) GetField() isUpdate_Field
- func (x *Update) GetGroupId() string
- func (x *Update) GetSetMetadata() *model.Metadata
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetGroupId() string
- func (x *UpdateRequest) GetUpdates() []*Update
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- type Update_DeleteMetadataKey
- type Update_GroupId
- type Update_SetMetadata
Constants ¶
This section is empty.
Variables ¶
var File_api_v1_group_group_proto protoreflect.FileDescriptor
var File_api_v1_group_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.group.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Service_Create_Handler, }, { MethodName: "Delete", Handler: _Service_Delete_Handler, }, { MethodName: "List", Handler: _Service_List_Handler, }, { MethodName: "Update", Handler: _Service_Update_Handler, }, { MethodName: "Get", Handler: _Service_Get_Handler, }, { MethodName: "AddMember", Handler: _Service_AddMember_Handler, }, { MethodName: "RemoveMember", Handler: _Service_RemoveMember_Handler, }, { MethodName: "ListMembers", Handler: _Service_ListMembers_Handler, }, { MethodName: "ListGroupsForMember", Handler: _Service_ListGroupsForMember_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/group/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddMemberRequest ¶
type AddMemberRequest struct { // The group to add members to. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The members to add. MemberIds []*MemberID `protobuf:"bytes,2,rep,name=member_ids,json=memberIds,proto3" json:"member_ids,omitempty"` // contains filtered or unexported fields }
Request for adding one or more members to a group.
func (*AddMemberRequest) Descriptor
deprecated
func (*AddMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.
func (*AddMemberRequest) GetGroupId ¶
func (x *AddMemberRequest) GetGroupId() string
func (*AddMemberRequest) GetMemberIds ¶
func (x *AddMemberRequest) GetMemberIds() []*MemberID
func (*AddMemberRequest) ProtoMessage ¶
func (*AddMemberRequest) ProtoMessage()
func (*AddMemberRequest) ProtoReflect ¶
func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
func (*AddMemberRequest) Reset ¶
func (x *AddMemberRequest) Reset()
func (*AddMemberRequest) String ¶
func (x *AddMemberRequest) String() string
type AddMemberResponse ¶
type AddMemberResponse struct {
// contains filtered or unexported fields
}
Empty response for adding one or more members to a group.
func (*AddMemberResponse) Descriptor
deprecated
func (*AddMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddMemberResponse.ProtoReflect.Descriptor instead.
func (*AddMemberResponse) ProtoMessage ¶
func (*AddMemberResponse) ProtoMessage()
func (*AddMemberResponse) ProtoReflect ¶
func (x *AddMemberResponse) ProtoReflect() protoreflect.Message
func (*AddMemberResponse) Reset ¶
func (x *AddMemberResponse) Reset()
func (*AddMemberResponse) String ¶
func (x *AddMemberResponse) String() string
type CreateRequest ¶
type CreateRequest struct { // The group to create. Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"` // contains filtered or unexported fields }
The request of a Groups.Create RPC.
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetInitializers ¶
func (x *CreateRequest) GetInitializers() []*Update
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { // The created group. Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
The response of a Groups.Create RPC.
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetGroup ¶
func (x *CreateResponse) GetGroup() *Group
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { // The group to delete. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
The request of a Group.Delete RPC.
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetGroupId ¶
func (x *DeleteRequest) GetGroupId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
The response of a Group.Delete RPC.
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type GetRequest ¶
type GetRequest struct { // The group id. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
The request of a Groups.Get RPC.
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetGroupId ¶
func (x *GetRequest) GetGroupId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { // The group. Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
The response of a Groups.Get RPC
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetGroup ¶
func (x *GetResponse) GetGroup() *Group
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Group ¶
type Group struct { // Unique name of the group. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // Number of members. NumMembers uint64 `protobuf:"varint,5,opt,name=num_members,json=numMembers,proto3" json:"num_members,omitempty"` // Metadata of the group. Metadata map[string][]byte `` /* 157-byte string literal not displayed */ // Creation time of the group. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Last update time of the group. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
Group is a named collection of users and service accounts with optional metadata.
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (x *Group) GetCreatedAt() *timestamppb.Timestamp
func (*Group) GetGroupId ¶
func (*Group) GetMetadata ¶
func (*Group) GetNumMembers ¶
func (*Group) GetUpdatedAt ¶
func (x *Group) GetUpdatedAt() *timestamppb.Timestamp
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type ListGroupsForMemberRequest ¶
type ListGroupsForMemberRequest struct { // The member to list groups for. MemberId *MemberID `protobuf:"bytes,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // Pagination options. Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
Request for listing the groups a member is in.
func (*ListGroupsForMemberRequest) Descriptor
deprecated
func (*ListGroupsForMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsForMemberRequest.ProtoReflect.Descriptor instead.
func (*ListGroupsForMemberRequest) GetMemberId ¶
func (x *ListGroupsForMemberRequest) GetMemberId() *MemberID
func (*ListGroupsForMemberRequest) GetPagination ¶
func (x *ListGroupsForMemberRequest) GetPagination() *model.Pagination
func (*ListGroupsForMemberRequest) ProtoMessage ¶
func (*ListGroupsForMemberRequest) ProtoMessage()
func (*ListGroupsForMemberRequest) ProtoReflect ¶
func (x *ListGroupsForMemberRequest) ProtoReflect() protoreflect.Message
func (*ListGroupsForMemberRequest) Reset ¶
func (x *ListGroupsForMemberRequest) Reset()
func (*ListGroupsForMemberRequest) String ¶
func (x *ListGroupsForMemberRequest) String() string
type ListGroupsForMemberResponse ¶
type ListGroupsForMemberResponse struct { // The groups the member is in. Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // The total amount of groups the member is in. Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
Response for listing the groups a member is in.
func (*ListGroupsForMemberResponse) Descriptor
deprecated
func (*ListGroupsForMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGroupsForMemberResponse.ProtoReflect.Descriptor instead.
func (*ListGroupsForMemberResponse) GetGroups ¶
func (x *ListGroupsForMemberResponse) GetGroups() []*Group
func (*ListGroupsForMemberResponse) GetTotal ¶
func (x *ListGroupsForMemberResponse) GetTotal() uint64
func (*ListGroupsForMemberResponse) ProtoMessage ¶
func (*ListGroupsForMemberResponse) ProtoMessage()
func (*ListGroupsForMemberResponse) ProtoReflect ¶
func (x *ListGroupsForMemberResponse) ProtoReflect() protoreflect.Message
func (*ListGroupsForMemberResponse) Reset ¶
func (x *ListGroupsForMemberResponse) Reset()
func (*ListGroupsForMemberResponse) String ¶
func (x *ListGroupsForMemberResponse) String() string
type ListMembersRequest ¶
type ListMembersRequest struct { // The group to list members of. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // Pagination options. Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
Reqyest for listing members of a group.
func (*ListMembersRequest) Descriptor
deprecated
func (*ListMembersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMembersRequest.ProtoReflect.Descriptor instead.
func (*ListMembersRequest) GetGroupId ¶
func (x *ListMembersRequest) GetGroupId() string
func (*ListMembersRequest) GetPagination ¶
func (x *ListMembersRequest) GetPagination() *model.Pagination
func (*ListMembersRequest) ProtoMessage ¶
func (*ListMembersRequest) ProtoMessage()
func (*ListMembersRequest) ProtoReflect ¶
func (x *ListMembersRequest) ProtoReflect() protoreflect.Message
func (*ListMembersRequest) Reset ¶
func (x *ListMembersRequest) Reset()
func (*ListMembersRequest) String ¶
func (x *ListMembersRequest) String() string
type ListMembersResponse ¶
type ListMembersResponse struct { // The members in the group. Members []*model.MemberEntry `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` // The total amount of members in the group. Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
Response for listing members of a group.
func (*ListMembersResponse) Descriptor
deprecated
func (*ListMembersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMembersResponse.ProtoReflect.Descriptor instead.
func (*ListMembersResponse) GetMembers ¶
func (x *ListMembersResponse) GetMembers() []*model.MemberEntry
func (*ListMembersResponse) GetTotal ¶
func (x *ListMembersResponse) GetTotal() uint64
func (*ListMembersResponse) ProtoMessage ¶
func (*ListMembersResponse) ProtoMessage()
func (*ListMembersResponse) ProtoReflect ¶
func (x *ListMembersResponse) ProtoReflect() protoreflect.Message
func (*ListMembersResponse) Reset ¶
func (x *ListMembersResponse) Reset()
func (*ListMembersResponse) String ¶
func (x *ListMembersResponse) String() string
type ListRequest ¶
type ListRequest struct { // Pagination options. Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // Search string. Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
The request of a Groups.List RPC.
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPagination ¶
func (x *ListRequest) GetPagination() *model.Pagination
func (*ListRequest) GetSearch ¶
func (x *ListRequest) GetSearch() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { // list of groups. Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // total amount of groups. Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
The response of a Groups.List RPC.
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetGroups ¶
func (x *ListResponse) GetGroups() []*Group
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() uint64
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type MemberID ¶
type MemberID struct { // Types that are assignable to Kind: // // *MemberID_ServiceAccountId // *MemberID_UserId Kind isMemberID_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
MemberID is a union of service account id and user id.
func (*MemberID) Descriptor
deprecated
func (*MemberID) GetServiceAccountId ¶
func (*MemberID) ProtoMessage ¶
func (*MemberID) ProtoMessage()
func (*MemberID) ProtoReflect ¶
func (x *MemberID) ProtoReflect() protoreflect.Message
type MemberID_ServiceAccountId ¶
type MemberID_ServiceAccountId struct { // ID of a service account. ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3,oneof"` }
type MemberID_UserId ¶
type MemberID_UserId struct { // ID of a user. UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"` }
type RemoveMemberRequest ¶
type RemoveMemberRequest struct { // The group to remove the member from. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The member to remove. MemberId *MemberID `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // contains filtered or unexported fields }
Request for removing a member from a group.
func (*RemoveMemberRequest) Descriptor
deprecated
func (*RemoveMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.
func (*RemoveMemberRequest) GetGroupId ¶
func (x *RemoveMemberRequest) GetGroupId() string
func (*RemoveMemberRequest) GetMemberId ¶
func (x *RemoveMemberRequest) GetMemberId() *MemberID
func (*RemoveMemberRequest) ProtoMessage ¶
func (*RemoveMemberRequest) ProtoMessage()
func (*RemoveMemberRequest) ProtoReflect ¶
func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
func (*RemoveMemberRequest) Reset ¶
func (x *RemoveMemberRequest) Reset()
func (*RemoveMemberRequest) String ¶
func (x *RemoveMemberRequest) String() string
type RemoveMemberResponse ¶
type RemoveMemberResponse struct {
// contains filtered or unexported fields
}
Empty response for removing a member from a group.
func (*RemoveMemberResponse) Descriptor
deprecated
func (*RemoveMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMemberResponse.ProtoReflect.Descriptor instead.
func (*RemoveMemberResponse) ProtoMessage ¶
func (*RemoveMemberResponse) ProtoMessage()
func (*RemoveMemberResponse) ProtoReflect ¶
func (x *RemoveMemberResponse) ProtoReflect() protoreflect.Message
func (*RemoveMemberResponse) Reset ¶
func (x *RemoveMemberResponse) Reset()
func (*RemoveMemberResponse) String ¶
func (x *RemoveMemberResponse) String() string
type ServiceClient ¶
type ServiceClient interface { // Create a new group. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Delete a group. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) // List groups. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) // Update group. Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) // Get group. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Add a member to a group. AddMember(ctx context.Context, in *AddMemberRequest, opts ...grpc.CallOption) (*AddMemberResponse, error) // Remove member from group. RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...grpc.CallOption) (*RemoveMemberResponse, error) // Get Group Members. ListMembers(ctx context.Context, in *ListMembersRequest, opts ...grpc.CallOption) (*ListMembersResponse, error) // Get Groups. ListGroupsForMember(ctx context.Context, in *ListGroupsForMemberRequest, opts ...grpc.CallOption) (*ListGroupsForMemberResponse, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // Create a new group. Create(context.Context, *CreateRequest) (*CreateResponse, error) // Delete a group. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // List groups. List(context.Context, *ListRequest) (*ListResponse, error) // Update group. Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // Get group. Get(context.Context, *GetRequest) (*GetResponse, error) // Add a member to a group. AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error) // Remove member from group. RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error) // Get Group Members. ListMembers(context.Context, *ListMembersRequest) (*ListMembersResponse, error) // Get Groups. ListGroupsForMember(context.Context, *ListGroupsForMemberRequest) (*ListGroupsForMemberResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddMember ¶
func (UnimplementedServiceServer) AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error)
func (UnimplementedServiceServer) Create ¶
func (UnimplementedServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedServiceServer) Delete ¶
func (UnimplementedServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedServiceServer) Get ¶
func (UnimplementedServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedServiceServer) List ¶
func (UnimplementedServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedServiceServer) ListGroupsForMember ¶
func (UnimplementedServiceServer) ListGroupsForMember(context.Context, *ListGroupsForMemberRequest) (*ListGroupsForMemberResponse, error)
func (UnimplementedServiceServer) ListMembers ¶
func (UnimplementedServiceServer) ListMembers(context.Context, *ListMembersRequest) (*ListMembersResponse, error)
func (UnimplementedServiceServer) RemoveMember ¶
func (UnimplementedServiceServer) RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error)
func (UnimplementedServiceServer) Update ¶
func (UnimplementedServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type Update ¶
type Update struct { // Types that are assignable to Field: // // *Update_GroupId // *Update_SetMetadata // *Update_DeleteMetadataKey Field isUpdate_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
An update msg for a group.
func (*Update) Descriptor
deprecated
func (*Update) GetDeleteMetadataKey ¶
func (*Update) GetGroupId ¶
func (*Update) GetSetMetadata ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
type UpdateRequest ¶
type UpdateRequest struct { // The updates to apply. Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` // The group id. GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
The request of a Groups.Update RPC.
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetGroupId ¶
func (x *UpdateRequest) GetGroupId() string
func (*UpdateRequest) GetUpdates ¶
func (x *UpdateRequest) GetUpdates() []*Update
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
The response of a Groups.Update RPC.
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type Update_DeleteMetadataKey ¶
type Update_DeleteMetadataKey struct { // Delete a metadata entry. DeleteMetadataKey string `protobuf:"bytes,3,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"` }
type Update_GroupId ¶
type Update_GroupId struct { // Update the unique group name. GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3,oneof"` }