group

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Groups_Get_FullMethodName                  = "/iam.group.Groups/Get"
	Groups_Search_FullMethodName               = "/iam.group.Groups/Search"
	Groups_Create_FullMethodName               = "/iam.group.Groups/Create"
	Groups_Update_FullMethodName               = "/iam.group.Groups/Update"
	Groups_Delete_FullMethodName               = "/iam.group.Groups/Delete"
	Groups_AddUsersToGroup_FullMethodName      = "/iam.group.Groups/AddUsersToGroup"
	Groups_DeleteUsersFromGroup_FullMethodName = "/iam.group.Groups/DeleteUsersFromGroup"
)

Variables

View Source
var File_iam_v1_group_group_proto protoreflect.FileDescriptor
View Source
var Groups_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "iam.group.Groups",
	HandlerType: (*GroupsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Groups_Get_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _Groups_Search_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Groups_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Groups_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Groups_Delete_Handler,
		},
		{
			MethodName: "AddUsersToGroup",
			Handler:    _Groups_AddUsersToGroup_Handler,
		},
		{
			MethodName: "DeleteUsersFromGroup",
			Handler:    _Groups_DeleteUsersFromGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "iam/v1/group/group.proto",
}

Groups_ServiceDesc is the grpc.ServiceDesc for Groups service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGroupsServer

func RegisterGroupsServer(s grpc.ServiceRegistrar, srv GroupsServer)

Types

type CreateGroupRequest

type CreateGroupRequest 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 (*CreateGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetDescription

func (x *CreateGroupRequest) GetDescription() string

func (*CreateGroupRequest) GetKey

func (x *CreateGroupRequest) GetKey() string

func (*CreateGroupRequest) GetName

func (x *CreateGroupRequest) GetName() string

func (*CreateGroupRequest) GetProtected

func (x *CreateGroupRequest) GetProtected() string

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

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

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

type GroupBriefRequest

type GroupBriefRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupBriefRequest) Descriptor deprecated

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

Deprecated: Use GroupBriefRequest.ProtoReflect.Descriptor instead.

func (*GroupBriefRequest) GetKey added in v1.1.6

func (x *GroupBriefRequest) GetKey() string

func (*GroupBriefRequest) ProtoMessage

func (*GroupBriefRequest) ProtoMessage()

func (*GroupBriefRequest) ProtoReflect

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

func (*GroupBriefRequest) Reset

func (x *GroupBriefRequest) Reset()

func (*GroupBriefRequest) String

func (x *GroupBriefRequest) String() string

type GroupResponse

type GroupResponse struct {
	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 (*GroupResponse) Descriptor deprecated

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

Deprecated: Use GroupResponse.ProtoReflect.Descriptor instead.

func (*GroupResponse) GetDescription

func (x *GroupResponse) GetDescription() string

func (*GroupResponse) GetKey

func (x *GroupResponse) GetKey() string

func (*GroupResponse) GetName

func (x *GroupResponse) GetName() string

func (*GroupResponse) GetProtected

func (x *GroupResponse) GetProtected() string

func (*GroupResponse) ProtoMessage

func (*GroupResponse) ProtoMessage()

func (*GroupResponse) ProtoReflect

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

func (*GroupResponse) Reset

func (x *GroupResponse) Reset()

func (*GroupResponse) String

func (x *GroupResponse) String() string

type GroupsClient

type GroupsClient interface {
	Get(ctx context.Context, in *GroupBriefRequest, opts ...grpc.CallOption) (*GroupResponse, error)
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	Create(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Update(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Delete(ctx context.Context, in *GroupBriefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AddUsersToGroup(ctx context.Context, in *UsersInGroup, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteUsersFromGroup(ctx context.Context, in *UsersInGroup, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

GroupsClient is the client API for Groups 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 NewGroupsClient

func NewGroupsClient(cc grpc.ClientConnInterface) GroupsClient

type GroupsServer

type GroupsServer interface {
	Get(context.Context, *GroupBriefRequest) (*GroupResponse, error)
	Search(context.Context, *SearchRequest) (*SearchResponse, error)
	Create(context.Context, *CreateGroupRequest) (*emptypb.Empty, error)
	Update(context.Context, *UpdateGroupRequest) (*emptypb.Empty, error)
	Delete(context.Context, *GroupBriefRequest) (*emptypb.Empty, error)
	AddUsersToGroup(context.Context, *UsersInGroup) (*emptypb.Empty, error)
	DeleteUsersFromGroup(context.Context, *UsersInGroup) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

GroupsServer is the server API for Groups service. All implementations must embed UnimplementedGroupsServer for forward compatibility.

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetPagination

func (x *Metadata) GetPagination() *Pagination

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

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     []*GroupResponse `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() []*GroupResponse

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 UnimplementedGroupsServer

type UnimplementedGroupsServer struct{}

UnimplementedGroupsServer 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 (UnimplementedGroupsServer) AddUsersToGroup added in v1.1.8

func (UnimplementedGroupsServer) Create

func (UnimplementedGroupsServer) Delete

func (UnimplementedGroupsServer) DeleteUsersFromGroup added in v1.1.8

func (UnimplementedGroupsServer) Get

func (UnimplementedGroupsServer) Search

func (UnimplementedGroupsServer) Update

type UnsafeGroupsServer

type UnsafeGroupsServer interface {
	// contains filtered or unexported methods
}

UnsafeGroupsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupsServer will result in compilation errors.

type UpdateGroupRequest

type UpdateGroupRequest 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 (*UpdateGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateGroupRequest) GetDescription

func (x *UpdateGroupRequest) GetDescription() string

func (*UpdateGroupRequest) GetKey

func (x *UpdateGroupRequest) GetKey() string

func (*UpdateGroupRequest) GetName

func (x *UpdateGroupRequest) GetName() string

func (*UpdateGroupRequest) ProtoMessage

func (*UpdateGroupRequest) ProtoMessage()

func (*UpdateGroupRequest) ProtoReflect

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

func (*UpdateGroupRequest) Reset

func (x *UpdateGroupRequest) Reset()

func (*UpdateGroupRequest) String

func (x *UpdateGroupRequest) String() string

type UsersInGroup added in v1.1.6

type UsersInGroup struct {
	Key       string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Usernames []string `protobuf:"bytes,2,rep,name=usernames,proto3" json:"usernames,omitempty"`
	// contains filtered or unexported fields
}

func (*UsersInGroup) Descriptor deprecated added in v1.1.6

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

Deprecated: Use UsersInGroup.ProtoReflect.Descriptor instead.

func (*UsersInGroup) GetKey added in v1.1.6

func (x *UsersInGroup) GetKey() string

func (*UsersInGroup) GetUsernames added in v1.1.7

func (x *UsersInGroup) GetUsernames() []string

func (*UsersInGroup) ProtoMessage added in v1.1.6

func (*UsersInGroup) ProtoMessage()

func (*UsersInGroup) ProtoReflect added in v1.1.6

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

func (*UsersInGroup) Reset added in v1.1.6

func (x *UsersInGroup) Reset()

func (*UsersInGroup) String added in v1.1.6

func (x *UsersInGroup) String() string

Jump to

Keyboard shortcuts

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