Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserGroupsServer(s grpc.ServiceRegistrar, srv UserGroupsServer)
- type CreateUserGroupRequest
- func (*CreateUserGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserGroupRequest) GetDescription() string
- func (x *CreateUserGroupRequest) GetKey() string
- func (x *CreateUserGroupRequest) GetName() string
- func (x *CreateUserGroupRequest) GetProtected() string
- func (*CreateUserGroupRequest) ProtoMessage()
- func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserGroupRequest) Reset()
- func (x *CreateUserGroupRequest) String() string
- type Metadata
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetTotalItems() uint32
- func (x *Pagination) GetTotalPage() uint32
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetPage() uint32
- func (x *SearchRequest) GetPageSize() uint32
- func (x *SearchRequest) GetQuery() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetData() []*UserGroupResponse
- func (x *SearchResponse) GetMetadata() *Metadata
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type UnimplementedUserGroupsServer
- func (UnimplementedUserGroupsServer) AddUsersToGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error)
- func (UnimplementedUserGroupsServer) Create(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error)
- func (UnimplementedUserGroupsServer) Delete(context.Context, *UserGroupBriefRequest) (*emptypb.Empty, error)
- func (UnimplementedUserGroupsServer) DeleteUsersFromGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error)
- func (UnimplementedUserGroupsServer) Get(context.Context, *UserGroupBriefRequest) (*UserGroupResponse, error)
- func (UnimplementedUserGroupsServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- func (UnimplementedUserGroupsServer) Update(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error)
- type UnsafeUserGroupsServer
- type UpdateUserGroupRequest
- func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserGroupRequest) GetDescription() string
- func (x *UpdateUserGroupRequest) GetKey() string
- func (x *UpdateUserGroupRequest) GetName() string
- func (*UpdateUserGroupRequest) ProtoMessage()
- func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserGroupRequest) Reset()
- func (x *UpdateUserGroupRequest) String() string
- type UserGroupBriefRequest
- func (*UserGroupBriefRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserGroupBriefRequest) GetGroupId() string
- func (*UserGroupBriefRequest) ProtoMessage()
- func (x *UserGroupBriefRequest) ProtoReflect() protoreflect.Message
- func (x *UserGroupBriefRequest) Reset()
- func (x *UserGroupBriefRequest) String() string
- type UserGroupResponse
- func (*UserGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserGroupResponse) GetDescription() string
- func (x *UserGroupResponse) GetGroupId() string
- func (x *UserGroupResponse) GetKey() string
- func (x *UserGroupResponse) GetName() string
- func (x *UserGroupResponse) GetProtected() string
- func (*UserGroupResponse) ProtoMessage()
- func (x *UserGroupResponse) ProtoReflect() protoreflect.Message
- func (x *UserGroupResponse) Reset()
- func (x *UserGroupResponse) String() string
- type UserGroupsClient
- type UserGroupsServer
- type UsersInGroups
- func (*UsersInGroups) Descriptor() ([]byte, []int)deprecated
- func (x *UsersInGroups) GetGroupId() []string
- func (x *UsersInGroups) GetUserId() []string
- func (*UsersInGroups) ProtoMessage()
- func (x *UsersInGroups) ProtoReflect() protoreflect.Message
- func (x *UsersInGroups) Reset()
- func (x *UsersInGroups) String() string
Constants ¶
const ( UserGroups_Get_FullMethodName = "/iam.user_group.UserGroups/Get" UserGroups_Search_FullMethodName = "/iam.user_group.UserGroups/Search" UserGroups_Create_FullMethodName = "/iam.user_group.UserGroups/Create" UserGroups_Update_FullMethodName = "/iam.user_group.UserGroups/Update" UserGroups_Delete_FullMethodName = "/iam.user_group.UserGroups/Delete" UserGroups_AddUsersToGroups_FullMethodName = "/iam.user_group.UserGroups/AddUsersToGroups" UserGroups_DeleteUsersFromGroups_FullMethodName = "/iam.user_group.UserGroups/DeleteUsersFromGroups" )
Variables ¶
var File_iam_v1_user_group_user_group_proto protoreflect.FileDescriptor
var UserGroups_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iam.user_group.UserGroups", HandlerType: (*UserGroupsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _UserGroups_Get_Handler, }, { MethodName: "Search", Handler: _UserGroups_Search_Handler, }, { MethodName: "Create", Handler: _UserGroups_Create_Handler, }, { MethodName: "Update", Handler: _UserGroups_Update_Handler, }, { MethodName: "Delete", Handler: _UserGroups_Delete_Handler, }, { MethodName: "AddUsersToGroups", Handler: _UserGroups_AddUsersToGroups_Handler, }, { MethodName: "DeleteUsersFromGroups", Handler: _UserGroups_DeleteUsersFromGroups_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iam/v1/user_group/user_group.proto", }
UserGroups_ServiceDesc is the grpc.ServiceDesc for UserGroups service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserGroupsServer ¶
func RegisterUserGroupsServer(s grpc.ServiceRegistrar, srv UserGroupsServer)
Types ¶
type CreateUserGroupRequest ¶
type CreateUserGroupRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Protected string `protobuf:"bytes,4,opt,name=protected,proto3" json:"protected,omitempty"` // contains filtered or unexported fields }
func (*CreateUserGroupRequest) Descriptor
deprecated
func (*CreateUserGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateUserGroupRequest) GetDescription ¶
func (x *CreateUserGroupRequest) GetDescription() string
func (*CreateUserGroupRequest) GetKey ¶
func (x *CreateUserGroupRequest) GetKey() string
func (*CreateUserGroupRequest) GetName ¶
func (x *CreateUserGroupRequest) GetName() string
func (*CreateUserGroupRequest) GetProtected ¶
func (x *CreateUserGroupRequest) GetProtected() string
func (*CreateUserGroupRequest) ProtoMessage ¶
func (*CreateUserGroupRequest) ProtoMessage()
func (*CreateUserGroupRequest) ProtoReflect ¶
func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateUserGroupRequest) Reset ¶
func (x *CreateUserGroupRequest) Reset()
func (*CreateUserGroupRequest) String ¶
func (x *CreateUserGroupRequest) String() string
type Metadata ¶
type Metadata struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetPagination ¶
func (x *Metadata) GetPagination() *Pagination
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Pagination ¶
type Pagination struct { TotalPage uint32 `protobuf:"varint,1,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` TotalItems uint32 `protobuf:"varint,2,opt,name=total_items,json=totalItems,proto3" json:"total_items,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetTotalItems ¶
func (x *Pagination) GetTotalItems() uint32
func (*Pagination) GetTotalPage ¶
func (x *Pagination) GetTotalPage() uint32
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type SearchRequest ¶
type SearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPage ¶
func (x *SearchRequest) GetPage() uint32
func (*SearchRequest) GetPageSize ¶
func (x *SearchRequest) GetPageSize() uint32
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { Data []*UserGroupResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetData ¶
func (x *SearchResponse) GetData() []*UserGroupResponse
func (*SearchResponse) GetMetadata ¶
func (x *SearchResponse) GetMetadata() *Metadata
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type UnimplementedUserGroupsServer ¶
type UnimplementedUserGroupsServer struct{}
UnimplementedUserGroupsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserGroupsServer) AddUsersToGroups ¶ added in v1.1.2
func (UnimplementedUserGroupsServer) AddUsersToGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error)
func (UnimplementedUserGroupsServer) Create ¶
func (UnimplementedUserGroupsServer) Create(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error)
func (UnimplementedUserGroupsServer) Delete ¶
func (UnimplementedUserGroupsServer) Delete(context.Context, *UserGroupBriefRequest) (*emptypb.Empty, error)
func (UnimplementedUserGroupsServer) DeleteUsersFromGroups ¶ added in v1.1.2
func (UnimplementedUserGroupsServer) DeleteUsersFromGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error)
func (UnimplementedUserGroupsServer) Get ¶
func (UnimplementedUserGroupsServer) Get(context.Context, *UserGroupBriefRequest) (*UserGroupResponse, error)
func (UnimplementedUserGroupsServer) Search ¶
func (UnimplementedUserGroupsServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
func (UnimplementedUserGroupsServer) Update ¶
func (UnimplementedUserGroupsServer) Update(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error)
type UnsafeUserGroupsServer ¶
type UnsafeUserGroupsServer interface {
// contains filtered or unexported methods
}
UnsafeUserGroupsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserGroupsServer will result in compilation errors.
type UpdateUserGroupRequest ¶
type UpdateUserGroupRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserGroupRequest) Descriptor
deprecated
func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserGroupRequest) GetDescription ¶
func (x *UpdateUserGroupRequest) GetDescription() string
func (*UpdateUserGroupRequest) GetKey ¶
func (x *UpdateUserGroupRequest) GetKey() string
func (*UpdateUserGroupRequest) GetName ¶
func (x *UpdateUserGroupRequest) GetName() string
func (*UpdateUserGroupRequest) ProtoMessage ¶
func (*UpdateUserGroupRequest) ProtoMessage()
func (*UpdateUserGroupRequest) ProtoReflect ¶
func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserGroupRequest) Reset ¶
func (x *UpdateUserGroupRequest) Reset()
func (*UpdateUserGroupRequest) String ¶
func (x *UpdateUserGroupRequest) String() string
type UserGroupBriefRequest ¶
type UserGroupBriefRequest struct { GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
func (*UserGroupBriefRequest) Descriptor
deprecated
func (*UserGroupBriefRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserGroupBriefRequest.ProtoReflect.Descriptor instead.
func (*UserGroupBriefRequest) GetGroupId ¶
func (x *UserGroupBriefRequest) GetGroupId() string
func (*UserGroupBriefRequest) ProtoMessage ¶
func (*UserGroupBriefRequest) ProtoMessage()
func (*UserGroupBriefRequest) ProtoReflect ¶
func (x *UserGroupBriefRequest) ProtoReflect() protoreflect.Message
func (*UserGroupBriefRequest) Reset ¶
func (x *UserGroupBriefRequest) Reset()
func (*UserGroupBriefRequest) String ¶
func (x *UserGroupBriefRequest) String() string
type UserGroupResponse ¶
type UserGroupResponse struct { GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Protected string `protobuf:"bytes,5,opt,name=protected,proto3" json:"protected,omitempty"` // contains filtered or unexported fields }
func (*UserGroupResponse) Descriptor
deprecated
func (*UserGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserGroupResponse.ProtoReflect.Descriptor instead.
func (*UserGroupResponse) GetDescription ¶
func (x *UserGroupResponse) GetDescription() string
func (*UserGroupResponse) GetGroupId ¶
func (x *UserGroupResponse) GetGroupId() string
func (*UserGroupResponse) GetKey ¶
func (x *UserGroupResponse) GetKey() string
func (*UserGroupResponse) GetName ¶
func (x *UserGroupResponse) GetName() string
func (*UserGroupResponse) GetProtected ¶
func (x *UserGroupResponse) GetProtected() string
func (*UserGroupResponse) ProtoMessage ¶
func (*UserGroupResponse) ProtoMessage()
func (*UserGroupResponse) ProtoReflect ¶
func (x *UserGroupResponse) ProtoReflect() protoreflect.Message
func (*UserGroupResponse) Reset ¶
func (x *UserGroupResponse) Reset()
func (*UserGroupResponse) String ¶
func (x *UserGroupResponse) String() string
type UserGroupsClient ¶
type UserGroupsClient interface { Get(ctx context.Context, in *UserGroupBriefRequest, opts ...grpc.CallOption) (*UserGroupResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) Create(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Update(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Delete(ctx context.Context, in *UserGroupBriefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) AddUsersToGroups(ctx context.Context, in *UsersInGroups, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteUsersFromGroups(ctx context.Context, in *UsersInGroups, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserGroupsClient is the client API for UserGroups 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 NewUserGroupsClient ¶
func NewUserGroupsClient(cc grpc.ClientConnInterface) UserGroupsClient
type UserGroupsServer ¶
type UserGroupsServer interface { Get(context.Context, *UserGroupBriefRequest) (*UserGroupResponse, error) Search(context.Context, *SearchRequest) (*SearchResponse, error) Create(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error) Update(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error) Delete(context.Context, *UserGroupBriefRequest) (*emptypb.Empty, error) AddUsersToGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error) DeleteUsersFromGroups(context.Context, *UsersInGroups) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserGroupsServer is the server API for UserGroups service. All implementations must embed UnimplementedUserGroupsServer for forward compatibility.
type UsersInGroups ¶
type UsersInGroups struct { UserId []string `protobuf:"bytes,1,rep,name=user_id,json=userId,proto3" json:"user_id,omitempty"` GroupId []string `protobuf:"bytes,2,rep,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // contains filtered or unexported fields }
func (*UsersInGroups) Descriptor
deprecated
func (*UsersInGroups) Descriptor() ([]byte, []int)
Deprecated: Use UsersInGroups.ProtoReflect.Descriptor instead.
func (*UsersInGroups) GetGroupId ¶
func (x *UsersInGroups) GetGroupId() []string
func (*UsersInGroups) GetUserId ¶
func (x *UsersInGroups) GetUserId() []string
func (*UsersInGroups) ProtoMessage ¶
func (*UsersInGroups) ProtoMessage()
func (*UsersInGroups) ProtoReflect ¶
func (x *UsersInGroups) ProtoReflect() protoreflect.Message
func (*UsersInGroups) Reset ¶
func (x *UsersInGroups) Reset()
func (*UsersInGroups) String ¶
func (x *UsersInGroups) String() string