gen

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package gen is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	SortOrder_name = map[int32]string{
		0: "ASCENDING",
		1: "DESCENDING",
	}
	SortOrder_value = map[string]int32{
		"ASCENDING":  0,
		"DESCENDING": 1,
	}
)

Enum value maps for SortOrder.

View Source
var (
	// optional bool require_admin = 51234;
	E_RequireAdmin = &file_ldap_manager_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_ldap_manager_proto protoreflect.FileDescriptor
View Source
var LDAPManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ldapmanager.LDAPManager",
	HandlerType: (*LDAPManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _LDAPManager_Login_Handler,
		},
		{
			MethodName: "GetUserList",
			Handler:    _LDAPManager_GetUserList_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _LDAPManager_GetUser_Handler,
		},
		{
			MethodName: "NewUser",
			Handler:    _LDAPManager_NewUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _LDAPManager_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _LDAPManager_DeleteUser_Handler,
		},
		{
			MethodName: "ChangePassword",
			Handler:    _LDAPManager_ChangePassword_Handler,
		},
		{
			MethodName: "NewGroup",
			Handler:    _LDAPManager_NewGroup_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _LDAPManager_DeleteGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _LDAPManager_UpdateGroup_Handler,
		},
		{
			MethodName: "GetGroupList",
			Handler:    _LDAPManager_GetGroupList_Handler,
		},
		{
			MethodName: "GetUserGroups",
			Handler:    _LDAPManager_GetUserGroups_Handler,
		},
		{
			MethodName: "IsGroupMember",
			Handler:    _LDAPManager_IsGroupMember_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _LDAPManager_GetGroup_Handler,
		},
		{
			MethodName: "AddGroupMember",
			Handler:    _LDAPManager_AddGroupMember_Handler,
		},
		{
			MethodName: "RemoveGroupMember",
			Handler:    _LDAPManager_RemoveGroupMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ldap_manager.proto",
}

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

Functions

func RegisterLDAPManagerHandler

func RegisterLDAPManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLDAPManagerHandler registers the http handlers for service LDAPManager to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLDAPManagerHandlerClient

func RegisterLDAPManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LDAPManagerClient) error

RegisterLDAPManagerHandlerClient registers the http handlers for service LDAPManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LDAPManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LDAPManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LDAPManagerClient" to call the correct interceptors.

func RegisterLDAPManagerHandlerFromEndpoint

func RegisterLDAPManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLDAPManagerHandlerFromEndpoint is same as RegisterLDAPManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLDAPManagerHandlerServer

func RegisterLDAPManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LDAPManagerServer) error

RegisterLDAPManagerHandlerServer registers the http handlers for service LDAPManager to "mux". UnaryRPC :call LDAPManagerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLDAPManagerHandlerFromEndpoint instead.

func RegisterLDAPManagerServer

func RegisterLDAPManagerServer(s grpc.ServiceRegistrar, srv LDAPManagerServer)

Types

type AuthenticateUserRequest

type AuthenticateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateUserRequest) Descriptor deprecated

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

Deprecated: Use AuthenticateUserRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateUserRequest) GetPassword

func (x *AuthenticateUserRequest) GetPassword() string

func (*AuthenticateUserRequest) GetUsername

func (x *AuthenticateUserRequest) GetUsername() string

func (*AuthenticateUserRequest) ProtoMessage

func (*AuthenticateUserRequest) ProtoMessage()

func (*AuthenticateUserRequest) ProtoReflect

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

func (*AuthenticateUserRequest) Reset

func (x *AuthenticateUserRequest) Reset()

func (*AuthenticateUserRequest) String

func (x *AuthenticateUserRequest) String() string

type ChangePasswordRequest

type ChangePasswordRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordRequest) Descriptor deprecated

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

Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangePasswordRequest) GetPassword

func (x *ChangePasswordRequest) GetPassword() string

func (*ChangePasswordRequest) GetUsername

func (x *ChangePasswordRequest) GetUsername() string

func (*ChangePasswordRequest) ProtoMessage

func (*ChangePasswordRequest) ProtoMessage()

func (*ChangePasswordRequest) ProtoReflect

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

func (*ChangePasswordRequest) Reset

func (x *ChangePasswordRequest) Reset()

func (*ChangePasswordRequest) String

func (x *ChangePasswordRequest) String() string

type DeleteGroupRequest

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

func (*DeleteGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteGroupRequest) GetName

func (x *DeleteGroupRequest) GetName() string

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) ProtoReflect

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

func (*DeleteGroupRequest) Reset

func (x *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (x *DeleteGroupRequest) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetUsername

func (x *DeleteUserRequest) GetUsername() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetGroupListRequest

type GetGroupListRequest struct {
	Start     int32     `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End       int32     `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	SortOrder SortOrder `protobuf:"varint,3,opt,name=sort_order,json=sortOrder,proto3,enum=ldapmanager.SortOrder" json:"sort_order,omitempty"`
	SortKey   string    `protobuf:"bytes,4,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
	Filter    []string  `protobuf:"bytes,10,rep,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupListRequest) Descriptor deprecated

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

Deprecated: Use GetGroupListRequest.ProtoReflect.Descriptor instead.

func (*GetGroupListRequest) GetEnd

func (x *GetGroupListRequest) GetEnd() int32

func (*GetGroupListRequest) GetFilter

func (x *GetGroupListRequest) GetFilter() []string

func (*GetGroupListRequest) GetSortKey

func (x *GetGroupListRequest) GetSortKey() string

func (*GetGroupListRequest) GetSortOrder

func (x *GetGroupListRequest) GetSortOrder() SortOrder

func (*GetGroupListRequest) GetStart

func (x *GetGroupListRequest) GetStart() int32

func (*GetGroupListRequest) ProtoMessage

func (*GetGroupListRequest) ProtoMessage()

func (*GetGroupListRequest) ProtoReflect

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

func (*GetGroupListRequest) Reset

func (x *GetGroupListRequest) Reset()

func (*GetGroupListRequest) String

func (x *GetGroupListRequest) String() string

type GetGroupRequest

type GetGroupRequest struct {
	Start     int32     `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End       int32     `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	SortOrder SortOrder `protobuf:"varint,3,opt,name=sort_order,json=sortOrder,proto3,enum=ldapmanager.SortOrder" json:"sort_order,omitempty"`
	SortKey   string    `protobuf:"bytes,4,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
	Name      string    `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetEnd

func (x *GetGroupRequest) GetEnd() int32

func (*GetGroupRequest) GetName

func (x *GetGroupRequest) GetName() string

func (*GetGroupRequest) GetSortKey

func (x *GetGroupRequest) GetSortKey() string

func (*GetGroupRequest) GetSortOrder

func (x *GetGroupRequest) GetSortOrder() SortOrder

func (*GetGroupRequest) GetStart

func (x *GetGroupRequest) GetStart() int32

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

type GetUserGroupsRequest

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

func (*GetUserGroupsRequest) Descriptor deprecated

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

Deprecated: Use GetUserGroupsRequest.ProtoReflect.Descriptor instead.

func (*GetUserGroupsRequest) GetUsername

func (x *GetUserGroupsRequest) GetUsername() string

func (*GetUserGroupsRequest) ProtoMessage

func (*GetUserGroupsRequest) ProtoMessage()

func (*GetUserGroupsRequest) ProtoReflect

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

func (*GetUserGroupsRequest) Reset

func (x *GetUserGroupsRequest) Reset()

func (*GetUserGroupsRequest) String

func (x *GetUserGroupsRequest) String() string

type GetUserListRequest

type GetUserListRequest struct {
	Start     int32     `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End       int32     `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	SortOrder SortOrder `protobuf:"varint,3,opt,name=sort_order,json=sortOrder,proto3,enum=ldapmanager.SortOrder" json:"sort_order,omitempty"`
	SortKey   string    `protobuf:"bytes,4,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
	Filter    []string  `protobuf:"bytes,10,rep,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListRequest) Descriptor deprecated

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

Deprecated: Use GetUserListRequest.ProtoReflect.Descriptor instead.

func (*GetUserListRequest) GetEnd

func (x *GetUserListRequest) GetEnd() int32

func (*GetUserListRequest) GetFilter

func (x *GetUserListRequest) GetFilter() []string

func (*GetUserListRequest) GetSortKey

func (x *GetUserListRequest) GetSortKey() string

func (*GetUserListRequest) GetSortOrder

func (x *GetUserListRequest) GetSortOrder() SortOrder

func (*GetUserListRequest) GetStart

func (x *GetUserListRequest) GetStart() int32

func (*GetUserListRequest) ProtoMessage

func (*GetUserListRequest) ProtoMessage()

func (*GetUserListRequest) ProtoReflect

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

func (*GetUserListRequest) Reset

func (x *GetUserListRequest) Reset()

func (*GetUserListRequest) String

func (x *GetUserListRequest) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUsername

func (x *GetUserRequest) GetUsername() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type Group

type Group struct {
	Name    string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Members []*GroupMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	GID     int64          `protobuf:"varint,3,opt,name=GID,proto3" json:"GID,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetGID

func (x *Group) GetGID() int64

func (*Group) GetMembers

func (x *Group) GetMembers() []*GroupMember

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupList

type GroupList struct {
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	Total  int64    `protobuf:"varint,10,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupList) Descriptor deprecated

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

Deprecated: Use GroupList.ProtoReflect.Descriptor instead.

func (*GroupList) GetGroups

func (x *GroupList) GetGroups() []*Group

func (*GroupList) GetTotal

func (x *GroupList) GetTotal() int64

func (*GroupList) ProtoMessage

func (*GroupList) ProtoMessage()

func (*GroupList) ProtoReflect

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

func (*GroupList) Reset

func (x *GroupList) Reset()

func (*GroupList) String

func (x *GroupList) String() string

type GroupMember

type GroupMember struct {
	Group    string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Dn       string `protobuf:"bytes,3,opt,name=dn,proto3" json:"dn,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupMember) Descriptor deprecated

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

Deprecated: Use GroupMember.ProtoReflect.Descriptor instead.

func (*GroupMember) GetDn added in v0.0.46

func (x *GroupMember) GetDn() string

func (*GroupMember) GetGroup

func (x *GroupMember) GetGroup() string

func (*GroupMember) GetUsername

func (x *GroupMember) GetUsername() string

func (*GroupMember) ProtoMessage

func (*GroupMember) ProtoMessage()

func (*GroupMember) ProtoReflect

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

func (*GroupMember) Reset

func (x *GroupMember) Reset()

func (*GroupMember) String

func (x *GroupMember) String() string

type GroupMemberStatus

type GroupMemberStatus struct {
	IsMember bool `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupMemberStatus) Descriptor deprecated

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

Deprecated: Use GroupMemberStatus.ProtoReflect.Descriptor instead.

func (*GroupMemberStatus) GetIsMember

func (x *GroupMemberStatus) GetIsMember() bool

func (*GroupMemberStatus) ProtoMessage

func (*GroupMemberStatus) ProtoMessage()

func (*GroupMemberStatus) ProtoReflect

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

func (*GroupMemberStatus) Reset

func (x *GroupMemberStatus) Reset()

func (*GroupMemberStatus) String

func (x *GroupMemberStatus) String() string

type IsGroupMemberRequest

type IsGroupMemberRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Group    string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*IsGroupMemberRequest) Descriptor deprecated

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

Deprecated: Use IsGroupMemberRequest.ProtoReflect.Descriptor instead.

func (*IsGroupMemberRequest) GetGroup

func (x *IsGroupMemberRequest) GetGroup() string

func (*IsGroupMemberRequest) GetUsername

func (x *IsGroupMemberRequest) GetUsername() string

func (*IsGroupMemberRequest) ProtoMessage

func (*IsGroupMemberRequest) ProtoMessage()

func (*IsGroupMemberRequest) ProtoReflect

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

func (*IsGroupMemberRequest) Reset

func (x *IsGroupMemberRequest) Reset()

func (*IsGroupMemberRequest) String

func (x *IsGroupMemberRequest) String() string

type LDAPManagerClient

type LDAPManagerClient interface {
	// Authentication
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Token, error)
	// Users
	GetUserList(ctx context.Context, in *GetUserListRequest, opts ...grpc.CallOption) (*UserList, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	NewUser(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*Empty, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*Token, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*Empty, error)
	ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*Empty, error)
	// Groups
	NewGroup(ctx context.Context, in *NewGroupRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*Empty, error)
	UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*Empty, error)
	GetGroupList(ctx context.Context, in *GetGroupListRequest, opts ...grpc.CallOption) (*GroupList, error)
	GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GroupList, error)
	// Group members
	IsGroupMember(ctx context.Context, in *IsGroupMemberRequest, opts ...grpc.CallOption) (*GroupMemberStatus, error)
	GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*Group, error)
	AddGroupMember(ctx context.Context, in *GroupMember, opts ...grpc.CallOption) (*Empty, error)
	RemoveGroupMember(ctx context.Context, in *GroupMember, opts ...grpc.CallOption) (*Empty, error)
}

LDAPManagerClient is the client API for LDAPManager 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 LDAPManagerServer

type LDAPManagerServer interface {
	// Authentication
	Login(context.Context, *LoginRequest) (*Token, error)
	// Users
	GetUserList(context.Context, *GetUserListRequest) (*UserList, error)
	GetUser(context.Context, *GetUserRequest) (*User, error)
	NewUser(context.Context, *NewUserRequest) (*Empty, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*Token, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*Empty, error)
	ChangePassword(context.Context, *ChangePasswordRequest) (*Empty, error)
	// Groups
	NewGroup(context.Context, *NewGroupRequest) (*Empty, error)
	DeleteGroup(context.Context, *DeleteGroupRequest) (*Empty, error)
	UpdateGroup(context.Context, *UpdateGroupRequest) (*Empty, error)
	GetGroupList(context.Context, *GetGroupListRequest) (*GroupList, error)
	GetUserGroups(context.Context, *GetUserGroupsRequest) (*GroupList, error)
	// Group members
	IsGroupMember(context.Context, *IsGroupMemberRequest) (*GroupMemberStatus, error)
	GetGroup(context.Context, *GetGroupRequest) (*Group, error)
	AddGroupMember(context.Context, *GroupMember) (*Empty, error)
	RemoveGroupMember(context.Context, *GroupMember) (*Empty, error)
	// contains filtered or unexported methods
}

LDAPManagerServer is the server API for LDAPManager service. All implementations must embed UnimplementedLDAPManagerServer for forward compatibility

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type NewGroupRequest

type NewGroupRequest struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*NewGroupRequest) Descriptor deprecated

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

Deprecated: Use NewGroupRequest.ProtoReflect.Descriptor instead.

func (*NewGroupRequest) GetMembers

func (x *NewGroupRequest) GetMembers() []string

func (*NewGroupRequest) GetName

func (x *NewGroupRequest) GetName() string

func (*NewGroupRequest) ProtoMessage

func (*NewGroupRequest) ProtoMessage()

func (*NewGroupRequest) ProtoReflect

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

func (*NewGroupRequest) Reset

func (x *NewGroupRequest) Reset()

func (*NewGroupRequest) String

func (x *NewGroupRequest) String() string

type NewUserRequest

type NewUserRequest struct {
	FirstName     string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName      string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	UID           int64  `protobuf:"varint,10,opt,name=UID,proto3" json:"UID,omitempty"`
	GID           int64  `protobuf:"varint,11,opt,name=GID,proto3" json:"GID,omitempty"`
	LoginShell    string `protobuf:"bytes,12,opt,name=login_shell,json=loginShell,proto3" json:"login_shell,omitempty"`
	HomeDirectory string `protobuf:"bytes,13,opt,name=home_directory,json=homeDirectory,proto3" json:"home_directory,omitempty"`
	Username      string `protobuf:"bytes,20,opt,name=username,proto3" json:"username,omitempty"`
	Email         string `protobuf:"bytes,21,opt,name=email,proto3" json:"email,omitempty"`
	Password      string `protobuf:"bytes,22,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*NewUserRequest) Descriptor deprecated

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

Deprecated: Use NewUserRequest.ProtoReflect.Descriptor instead.

func (*NewUserRequest) GetEmail

func (x *NewUserRequest) GetEmail() string

func (*NewUserRequest) GetFirstName

func (x *NewUserRequest) GetFirstName() string

func (*NewUserRequest) GetGID

func (x *NewUserRequest) GetGID() int64

func (*NewUserRequest) GetHomeDirectory

func (x *NewUserRequest) GetHomeDirectory() string

func (*NewUserRequest) GetLastName

func (x *NewUserRequest) GetLastName() string

func (*NewUserRequest) GetLoginShell

func (x *NewUserRequest) GetLoginShell() string

func (*NewUserRequest) GetPassword

func (x *NewUserRequest) GetPassword() string

func (*NewUserRequest) GetUID

func (x *NewUserRequest) GetUID() int64

func (*NewUserRequest) GetUsername

func (x *NewUserRequest) GetUsername() string

func (*NewUserRequest) ProtoMessage

func (*NewUserRequest) ProtoMessage()

func (*NewUserRequest) ProtoReflect

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

func (*NewUserRequest) Reset

func (x *NewUserRequest) Reset()

func (*NewUserRequest) String

func (x *NewUserRequest) String() string

type SortOrder

type SortOrder int32
const (
	SortOrder_ASCENDING  SortOrder = 0
	SortOrder_DESCENDING SortOrder = 1
)

func (SortOrder) Descriptor

func (SortOrder) Descriptor() protoreflect.EnumDescriptor

func (SortOrder) Enum

func (x SortOrder) Enum() *SortOrder

func (SortOrder) EnumDescriptor deprecated

func (SortOrder) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortOrder.Descriptor instead.

func (SortOrder) Number

func (x SortOrder) Number() protoreflect.EnumNumber

func (SortOrder) String

func (x SortOrder) String() string

func (SortOrder) Type

type Token

type Token struct {
	Token       string                 `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Username    string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	UID         int32                  `protobuf:"varint,3,opt,name=UID,proto3" json:"UID,omitempty"`
	DisplayName string                 `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	IsAdmin     bool                   `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	Expires     *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetDisplayName

func (x *Token) GetDisplayName() string

func (*Token) GetExpires

func (x *Token) GetExpires() *timestamppb.Timestamp

func (*Token) GetIsAdmin

func (x *Token) GetIsAdmin() bool

func (*Token) GetToken

func (x *Token) GetToken() string

func (*Token) GetUID

func (x *Token) GetUID() int32

func (*Token) GetUsername

func (x *Token) GetUsername() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedLDAPManagerServer

type UnimplementedLDAPManagerServer struct {
}

UnimplementedLDAPManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedLDAPManagerServer) AddGroupMember

func (UnimplementedLDAPManagerServer) ChangePassword

func (UnimplementedLDAPManagerServer) DeleteGroup

func (UnimplementedLDAPManagerServer) DeleteUser

func (UnimplementedLDAPManagerServer) GetGroup

func (UnimplementedLDAPManagerServer) GetGroupList

func (UnimplementedLDAPManagerServer) GetUser

func (UnimplementedLDAPManagerServer) GetUserGroups

func (UnimplementedLDAPManagerServer) GetUserList

func (UnimplementedLDAPManagerServer) IsGroupMember

func (UnimplementedLDAPManagerServer) Login

func (UnimplementedLDAPManagerServer) NewGroup

func (UnimplementedLDAPManagerServer) NewUser

func (UnimplementedLDAPManagerServer) RemoveGroupMember

func (UnimplementedLDAPManagerServer) UpdateGroup

func (UnimplementedLDAPManagerServer) UpdateUser

type UnsafeLDAPManagerServer

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

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

type UpdateGroupRequest

type UpdateGroupRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	GID     int64  `protobuf:"varint,3,opt,name=GID,proto3" json:"GID,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateGroupRequest) GetGID

func (x *UpdateGroupRequest) GetGID() int64

func (*UpdateGroupRequest) GetName

func (x *UpdateGroupRequest) GetName() string

func (*UpdateGroupRequest) GetNewName

func (x *UpdateGroupRequest) GetNewName() 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 UpdateUserRequest

type UpdateUserRequest struct {
	Username string          `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Update   *NewUserRequest `protobuf:"bytes,10,opt,name=update,proto3" json:"update,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdate

func (x *UpdateUserRequest) GetUpdate() *NewUserRequest

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {
	Username      string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FirstName     string `protobuf:"bytes,10,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName      string `protobuf:"bytes,11,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	DisplayName   string `protobuf:"bytes,12,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Email         string `protobuf:"bytes,13,opt,name=email,proto3" json:"email,omitempty"`
	LoginShell    string `protobuf:"bytes,20,opt,name=login_shell,json=loginShell,proto3" json:"login_shell,omitempty"`
	HomeDirectory string `protobuf:"bytes,21,opt,name=home_directory,json=homeDirectory,proto3" json:"home_directory,omitempty"`
	CN            string `protobuf:"bytes,30,opt,name=CN,proto3" json:"CN,omitempty"`
	DN            string `protobuf:"bytes,31,opt,name=DN,proto3" json:"DN,omitempty"`
	UID           int32  `protobuf:"varint,32,opt,name=UID,proto3" json:"UID,omitempty"`
	GID           int64  `protobuf:"varint,33,opt,name=GID,proto3" json:"GID,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCN

func (x *User) GetCN() string

func (*User) GetDN

func (x *User) GetDN() string

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetGID

func (x *User) GetGID() int64

func (*User) GetHomeDirectory

func (x *User) GetHomeDirectory() string

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetLoginShell

func (x *User) GetLoginShell() string

func (*User) GetUID

func (x *User) GetUID() int32

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserList

type UserList struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Total int64   `protobuf:"varint,10,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*UserList) Descriptor deprecated

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

Deprecated: Use UserList.ProtoReflect.Descriptor instead.

func (*UserList) GetTotal

func (x *UserList) GetTotal() int64

func (*UserList) GetUsers

func (x *UserList) GetUsers() []*User

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) ProtoReflect

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

func (*UserList) Reset

func (x *UserList) Reset()

func (*UserList) String

func (x *UserList) String() string

Jump to

Keyboard shortcuts

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