permission_group

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PermissionGroups_Get_FullMethodName                        = "/iam.permission_group.PermissionGroups/Get"
	PermissionGroups_Search_FullMethodName                     = "/iam.permission_group.PermissionGroups/Search"
	PermissionGroups_Create_FullMethodName                     = "/iam.permission_group.PermissionGroups/Create"
	PermissionGroups_Update_FullMethodName                     = "/iam.permission_group.PermissionGroups/Update"
	PermissionGroups_Delete_FullMethodName                     = "/iam.permission_group.PermissionGroups/Delete"
	PermissionGroups_AddUsersToGroup_FullMethodName            = "/iam.permission_group.PermissionGroups/AddUsersToGroup"
	PermissionGroups_DeleteUsersFromGroup_FullMethodName       = "/iam.permission_group.PermissionGroups/DeleteUsersFromGroup"
	PermissionGroups_AddPermissionsToGroup_FullMethodName      = "/iam.permission_group.PermissionGroups/AddPermissionsToGroup"
	PermissionGroups_DeletePermissionsFromGroup_FullMethodName = "/iam.permission_group.PermissionGroups/DeletePermissionsFromGroup"
)

Variables

View Source
var File_iam_v1_permission_group_permission_group_proto protoreflect.FileDescriptor
View Source
var PermissionGroups_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "iam.permission_group.PermissionGroups",
	HandlerType: (*PermissionGroupsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _PermissionGroups_Get_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _PermissionGroups_Search_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _PermissionGroups_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _PermissionGroups_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _PermissionGroups_Delete_Handler,
		},
		{
			MethodName: "AddUsersToGroup",
			Handler:    _PermissionGroups_AddUsersToGroup_Handler,
		},
		{
			MethodName: "DeleteUsersFromGroup",
			Handler:    _PermissionGroups_DeleteUsersFromGroup_Handler,
		},
		{
			MethodName: "AddPermissionsToGroup",
			Handler:    _PermissionGroups_AddPermissionsToGroup_Handler,
		},
		{
			MethodName: "DeletePermissionsFromGroup",
			Handler:    _PermissionGroups_DeletePermissionsFromGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "iam/v1/permission_group/permission_group.proto",
}

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

Functions

func RegisterPermissionGroupsServer

func RegisterPermissionGroupsServer(s grpc.ServiceRegistrar, srv PermissionGroupsServer)

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

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 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 PermissionGroupsClient

type PermissionGroupsClient 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)
	AddPermissionsToGroup(ctx context.Context, in *PermissionsInGroup, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeletePermissionsFromGroup(ctx context.Context, in *PermissionsInGroup, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

PermissionGroupsClient is the client API for PermissionGroups 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 PermissionGroupsServer

type PermissionGroupsServer 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)
	AddPermissionsToGroup(context.Context, *PermissionsInGroup) (*emptypb.Empty, error)
	DeletePermissionsFromGroup(context.Context, *PermissionsInGroup) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

PermissionGroupsServer is the server API for PermissionGroups service. All implementations must embed UnimplementedPermissionGroupsServer for forward compatibility.

type PermissionsInGroup

type PermissionsInGroup struct {
	GroupKey      string   `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	PermissionKey []string `protobuf:"bytes,2,rep,name=permission_key,json=permissionKey,proto3" json:"permission_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionsInGroup) Descriptor deprecated

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

Deprecated: Use PermissionsInGroup.ProtoReflect.Descriptor instead.

func (*PermissionsInGroup) GetGroupKey

func (x *PermissionsInGroup) GetGroupKey() string

func (*PermissionsInGroup) GetPermissionKey

func (x *PermissionsInGroup) GetPermissionKey() []string

func (*PermissionsInGroup) ProtoMessage

func (*PermissionsInGroup) ProtoMessage()

func (*PermissionsInGroup) ProtoReflect

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

func (*PermissionsInGroup) Reset

func (x *PermissionsInGroup) Reset()

func (*PermissionsInGroup) String

func (x *PermissionsInGroup) 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 UnimplementedPermissionGroupsServer

type UnimplementedPermissionGroupsServer struct{}

UnimplementedPermissionGroupsServer 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 (UnimplementedPermissionGroupsServer) AddPermissionsToGroup

func (UnimplementedPermissionGroupsServer) AddUsersToGroup

func (UnimplementedPermissionGroupsServer) Create

func (UnimplementedPermissionGroupsServer) Delete

func (UnimplementedPermissionGroupsServer) DeletePermissionsFromGroup

func (UnimplementedPermissionGroupsServer) DeleteUsersFromGroup

func (UnimplementedPermissionGroupsServer) Get

func (UnimplementedPermissionGroupsServer) Search

func (UnimplementedPermissionGroupsServer) Update

type UnsafePermissionGroupsServer

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

UnsafePermissionGroupsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionGroupsServer 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

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

func (*UsersInGroup) Descriptor deprecated

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

Deprecated: Use UsersInGroup.ProtoReflect.Descriptor instead.

func (*UsersInGroup) GetGroupKey

func (x *UsersInGroup) GetGroupKey() string

func (*UsersInGroup) GetUsernames

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

func (*UsersInGroup) ProtoMessage

func (*UsersInGroup) ProtoMessage()

func (*UsersInGroup) ProtoReflect

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

func (*UsersInGroup) Reset

func (x *UsersInGroup) Reset()

func (*UsersInGroup) String

func (x *UsersInGroup) String() string

Jump to

Keyboard shortcuts

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