userv3

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Overview

Package userv3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package userv3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	GroupService_CreateGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/CreateGroup"
	GroupService_GetGroups_FullMethodName   = "/paralus.dev.rpc.user.v3.GroupService/GetGroups"
	GroupService_GetGroup_FullMethodName    = "/paralus.dev.rpc.user.v3.GroupService/GetGroup"
	GroupService_UpdateGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/UpdateGroup"
	GroupService_DeleteGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/DeleteGroup"
)
View Source
const (
	UserService_AuditLogWebhook_FullMethodName      = "/paralus.dev.rpc.user.v3.UserService/AuditLogWebhook"
	UserService_CreateUser_FullMethodName           = "/paralus.dev.rpc.user.v3.UserService/CreateUser"
	UserService_GetUsers_FullMethodName             = "/paralus.dev.rpc.user.v3.UserService/GetUsers"
	UserService_GetUser_FullMethodName              = "/paralus.dev.rpc.user.v3.UserService/GetUser"
	UserService_GetUserInfo_FullMethodName          = "/paralus.dev.rpc.user.v3.UserService/GetUserInfo"
	UserService_UpdateUser_FullMethodName           = "/paralus.dev.rpc.user.v3.UserService/UpdateUser"
	UserService_UpdateUserForceReset_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UpdateUserForceReset"
	UserService_DeleteUser_FullMethodName           = "/paralus.dev.rpc.user.v3.UserService/DeleteUser"
	UserService_DownloadCliConfig_FullMethodName    = "/paralus.dev.rpc.user.v3.UserService/DownloadCliConfig"
	UserService_UserListApiKeys_FullMethodName      = "/paralus.dev.rpc.user.v3.UserService/UserListApiKeys"
	UserService_UserDeleteApiKeys_FullMethodName    = "/paralus.dev.rpc.user.v3.UserService/UserDeleteApiKeys"
	UserService_UserForgotPassword_FullMethodName   = "/paralus.dev.rpc.user.v3.UserService/UserForgotPassword"
)

Variables

View Source
var File_proto_rpc_user_group_proto protoreflect.FileDescriptor
View Source
var File_proto_rpc_user_user_proto protoreflect.FileDescriptor
View Source
var GroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "paralus.dev.rpc.user.v3.GroupService",
	HandlerType: (*GroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateGroup",
			Handler:    _GroupService_CreateGroup_Handler,
		},
		{
			MethodName: "GetGroups",
			Handler:    _GroupService_GetGroups_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _GroupService_GetGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _GroupService_UpdateGroup_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _GroupService_DeleteGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/rpc/user/group.proto",
}

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

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "paralus.dev.rpc.user.v3.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AuditLogWebhook",
			Handler:    _UserService_AuditLogWebhook_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _UserService_GetUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "GetUserInfo",
			Handler:    _UserService_GetUserInfo_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateUserForceReset",
			Handler:    _UserService_UpdateUserForceReset_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "DownloadCliConfig",
			Handler:    _UserService_DownloadCliConfig_Handler,
		},
		{
			MethodName: "UserListApiKeys",
			Handler:    _UserService_UserListApiKeys_Handler,
		},
		{
			MethodName: "UserDeleteApiKeys",
			Handler:    _UserService_UserDeleteApiKeys_Handler,
		},
		{
			MethodName: "UserForgotPassword",
			Handler:    _UserService_UserForgotPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/rpc/user/user.proto",
}

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

Functions

func RegisterGroupServiceHandler added in v0.1.3

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

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

func RegisterGroupServiceHandlerClient added in v0.1.3

func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GroupServiceClient) error

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

func RegisterGroupServiceHandlerFromEndpoint added in v0.1.3

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

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

func RegisterGroupServiceHandlerServer added in v0.1.3

func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GroupServiceServer) error

RegisterGroupServiceHandlerServer registers the http handlers for service GroupService to "mux". UnaryRPC :call GroupServiceServer 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 RegisterGroupServiceHandlerFromEndpoint instead.

func RegisterGroupServiceServer added in v0.1.3

func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)

func RegisterUserServiceHandler added in v0.1.3

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

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

func RegisterUserServiceHandlerClient added in v0.1.3

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

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

func RegisterUserServiceHandlerFromEndpoint added in v0.1.3

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

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

func RegisterUserServiceHandlerServer added in v0.1.3

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer 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 RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer added in v0.1.3

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type ApiKeyRequest

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

func (*ApiKeyRequest) Descriptor deprecated

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

Deprecated: Use ApiKeyRequest.ProtoReflect.Descriptor instead.

func (*ApiKeyRequest) GetId

func (x *ApiKeyRequest) GetId() string

func (*ApiKeyRequest) GetUsername

func (x *ApiKeyRequest) GetUsername() string

func (*ApiKeyRequest) ProtoMessage

func (*ApiKeyRequest) ProtoMessage()

func (*ApiKeyRequest) ProtoReflect

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

func (*ApiKeyRequest) Reset

func (x *ApiKeyRequest) Reset()

func (*ApiKeyRequest) String

func (x *ApiKeyRequest) String() string

type ApiKeyResponse

type ApiKeyResponse struct {
	ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=modifiedAt,proto3" json:"modifiedAt,omitempty"`
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Id         string                 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Key        string                 `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	Name       string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiKeyResponse) Descriptor deprecated

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

Deprecated: Use ApiKeyResponse.ProtoReflect.Descriptor instead.

func (*ApiKeyResponse) GetCreatedAt

func (x *ApiKeyResponse) GetCreatedAt() *timestamppb.Timestamp

func (*ApiKeyResponse) GetId

func (x *ApiKeyResponse) GetId() string

func (*ApiKeyResponse) GetKey

func (x *ApiKeyResponse) GetKey() string

func (*ApiKeyResponse) GetModifiedAt

func (x *ApiKeyResponse) GetModifiedAt() *timestamppb.Timestamp

func (*ApiKeyResponse) GetName

func (x *ApiKeyResponse) GetName() string

func (*ApiKeyResponse) ProtoMessage

func (*ApiKeyResponse) ProtoMessage()

func (*ApiKeyResponse) ProtoReflect

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

func (*ApiKeyResponse) Reset

func (x *ApiKeyResponse) Reset()

func (*ApiKeyResponse) String

func (x *ApiKeyResponse) String() string

type CliConfigRequest

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

func (*CliConfigRequest) Descriptor deprecated

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

Deprecated: Use CliConfigRequest.ProtoReflect.Descriptor instead.

func (*CliConfigRequest) ProtoMessage

func (*CliConfigRequest) ProtoMessage()

func (*CliConfigRequest) ProtoReflect

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

func (*CliConfigRequest) Reset

func (x *CliConfigRequest) Reset()

func (*CliConfigRequest) String

func (x *CliConfigRequest) String() string

type GroupServiceClient added in v0.1.3

type GroupServiceClient interface {
	CreateGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error)
	GetGroups(ctx context.Context, in *v31.QueryOptions, opts ...grpc.CallOption) (*v3.GroupList, error)
	GetGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error)
	UpdateGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error)
	DeleteGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error)
}

GroupServiceClient is the client API for GroupService 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 NewGroupServiceClient added in v0.1.3

func NewGroupServiceClient(cc grpc.ClientConnInterface) GroupServiceClient

type GroupServiceServer added in v0.1.3

type GroupServiceServer interface {
	CreateGroup(context.Context, *v3.Group) (*v3.Group, error)
	GetGroups(context.Context, *v31.QueryOptions) (*v3.GroupList, error)
	GetGroup(context.Context, *v3.Group) (*v3.Group, error)
	UpdateGroup(context.Context, *v3.Group) (*v3.Group, error)
	DeleteGroup(context.Context, *v3.Group) (*v3.Group, error)
}

GroupServiceServer is the server API for GroupService service. All implementations should embed UnimplementedGroupServiceServer for forward compatibility

type Option

type Option func(*options)

Option is the functional argument for Pool options

func WithAddr

func WithAddr(addr string) Option

WithAddr sets address of the pool

func WithCaCertPEM

func WithCaCertPEM(caCert []byte) Option

WithCaCertPEM sets PEM encoded CA cert for pool

func WithClientCertPEM

func WithClientCertPEM(cert []byte) Option

WithClientCertPEM sets PEM encoded client cert for pool

func WithClientKeyPEM

func WithClientKeyPEM(key []byte) Option

WithClientKeyPEM sets PEM encoded client key for pool

func WithMaxConn

func WithMaxConn(maxConn int) Option

WithMaxConn sets maximum number of connections of the pool if not set defaults to 10

type UGClient

type UGClient interface {
	Unhealthy()
	Close() error
	UserServiceClient
}

UserClient is the interface for accessing all User & Group RPCs exposed by Paralus Base

type UGPool

type UGPool interface {
	Close()
	NewClient(ctx context.Context) (UGClient, error)
}

UGPool maintains pool of grpc connections to system base services

func NewUGPool

func NewUGPool(addr string, maxConn int) UGPool

NewUGPool new user group pool

type UnimplementedGroupServiceServer added in v0.1.3

type UnimplementedGroupServiceServer struct {
}

UnimplementedGroupServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedGroupServiceServer) CreateGroup added in v0.1.3

func (UnimplementedGroupServiceServer) DeleteGroup added in v0.1.3

func (UnimplementedGroupServiceServer) GetGroup added in v0.1.3

func (UnimplementedGroupServiceServer) GetGroups added in v0.1.3

func (UnimplementedGroupServiceServer) UpdateGroup added in v0.1.3

type UnimplementedUserServiceServer added in v0.1.3

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) AuditLogWebhook added in v0.1.9

func (UnimplementedUserServiceServer) CreateUser added in v0.1.3

func (UnimplementedUserServiceServer) DeleteUser added in v0.1.3

func (UnimplementedUserServiceServer) DownloadCliConfig added in v0.1.3

func (UnimplementedUserServiceServer) GetUser added in v0.1.3

func (UnimplementedUserServiceServer) GetUserInfo added in v0.1.3

func (UnimplementedUserServiceServer) GetUsers added in v0.1.3

func (UnimplementedUserServiceServer) UpdateUser added in v0.1.3

func (UnimplementedUserServiceServer) UpdateUserForceReset added in v0.2.0

func (UnimplementedUserServiceServer) UserDeleteApiKeys added in v0.1.3

func (UnimplementedUserServiceServer) UserForgotPassword added in v0.1.3

func (UnimplementedUserServiceServer) UserListApiKeys added in v0.1.3

type UnsafeGroupServiceServer added in v0.1.3

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

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

type UnsafeUserServiceServer added in v0.1.3

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

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

type UpdateForceResetRequest added in v0.2.0

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

func (*UpdateForceResetRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use UpdateForceResetRequest.ProtoReflect.Descriptor instead.

func (*UpdateForceResetRequest) ProtoMessage added in v0.2.0

func (*UpdateForceResetRequest) ProtoMessage()

func (*UpdateForceResetRequest) ProtoReflect added in v0.2.0

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

func (*UpdateForceResetRequest) Reset added in v0.2.0

func (x *UpdateForceResetRequest) Reset()

func (*UpdateForceResetRequest) String added in v0.2.0

func (x *UpdateForceResetRequest) String() string

type UpdateForceResetResponse added in v0.2.0

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

func (*UpdateForceResetResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use UpdateForceResetResponse.ProtoReflect.Descriptor instead.

func (*UpdateForceResetResponse) ProtoMessage added in v0.2.0

func (*UpdateForceResetResponse) ProtoMessage()

func (*UpdateForceResetResponse) ProtoReflect added in v0.2.0

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

func (*UpdateForceResetResponse) Reset added in v0.2.0

func (x *UpdateForceResetResponse) Reset()

func (*UpdateForceResetResponse) String added in v0.2.0

func (x *UpdateForceResetResponse) String() string

type UserDeleteApiKeysResponse added in v0.1.3

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

func (*UserDeleteApiKeysResponse) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UserDeleteApiKeysResponse.ProtoReflect.Descriptor instead.

func (*UserDeleteApiKeysResponse) ProtoMessage added in v0.1.3

func (*UserDeleteApiKeysResponse) ProtoMessage()

func (*UserDeleteApiKeysResponse) ProtoReflect added in v0.1.3

func (*UserDeleteApiKeysResponse) Reset added in v0.1.3

func (x *UserDeleteApiKeysResponse) Reset()

func (*UserDeleteApiKeysResponse) String added in v0.1.3

func (x *UserDeleteApiKeysResponse) String() string

type UserForgotPasswordRequest added in v0.1.3

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

func (*UserForgotPasswordRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UserForgotPasswordRequest.ProtoReflect.Descriptor instead.

func (*UserForgotPasswordRequest) GetUsername added in v0.1.3

func (x *UserForgotPasswordRequest) GetUsername() string

func (*UserForgotPasswordRequest) ProtoMessage added in v0.1.3

func (*UserForgotPasswordRequest) ProtoMessage()

func (*UserForgotPasswordRequest) ProtoReflect added in v0.1.3

func (*UserForgotPasswordRequest) Reset added in v0.1.3

func (x *UserForgotPasswordRequest) Reset()

func (*UserForgotPasswordRequest) String added in v0.1.3

func (x *UserForgotPasswordRequest) String() string

type UserForgotPasswordResponse added in v0.1.3

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

func (*UserForgotPasswordResponse) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UserForgotPasswordResponse.ProtoReflect.Descriptor instead.

func (x *UserForgotPasswordResponse) GetRecoveryLink() string

func (*UserForgotPasswordResponse) ProtoMessage added in v0.1.3

func (*UserForgotPasswordResponse) ProtoMessage()

func (*UserForgotPasswordResponse) ProtoReflect added in v0.1.3

func (*UserForgotPasswordResponse) Reset added in v0.1.3

func (x *UserForgotPasswordResponse) Reset()

func (*UserForgotPasswordResponse) String added in v0.1.3

func (x *UserForgotPasswordResponse) String() string

type UserListApiKeysResponse added in v0.1.3

type UserListApiKeysResponse struct {
	Items []*ApiKeyResponse `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*UserListApiKeysResponse) Descriptor deprecated added in v0.1.3

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

Deprecated: Use UserListApiKeysResponse.ProtoReflect.Descriptor instead.

func (*UserListApiKeysResponse) GetItems added in v0.1.3

func (x *UserListApiKeysResponse) GetItems() []*ApiKeyResponse

func (*UserListApiKeysResponse) ProtoMessage added in v0.1.3

func (*UserListApiKeysResponse) ProtoMessage()

func (*UserListApiKeysResponse) ProtoReflect added in v0.1.3

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

func (*UserListApiKeysResponse) Reset added in v0.1.3

func (x *UserListApiKeysResponse) Reset()

func (*UserListApiKeysResponse) String added in v0.1.3

func (x *UserListApiKeysResponse) String() string

type UserLoginAuditRequest added in v0.1.9

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

func (*UserLoginAuditRequest) Descriptor deprecated added in v0.1.9

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

Deprecated: Use UserLoginAuditRequest.ProtoReflect.Descriptor instead.

func (*UserLoginAuditRequest) GetUserId added in v0.1.9

func (x *UserLoginAuditRequest) GetUserId() string

func (*UserLoginAuditRequest) ProtoMessage added in v0.1.9

func (*UserLoginAuditRequest) ProtoMessage()

func (*UserLoginAuditRequest) ProtoReflect added in v0.1.9

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

func (*UserLoginAuditRequest) Reset added in v0.1.9

func (x *UserLoginAuditRequest) Reset()

func (*UserLoginAuditRequest) String added in v0.1.9

func (x *UserLoginAuditRequest) String() string

type UserLoginAuditResponse added in v0.1.9

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

func (*UserLoginAuditResponse) Descriptor deprecated added in v0.1.9

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

Deprecated: Use UserLoginAuditResponse.ProtoReflect.Descriptor instead.

func (*UserLoginAuditResponse) ProtoMessage added in v0.1.9

func (*UserLoginAuditResponse) ProtoMessage()

func (*UserLoginAuditResponse) ProtoReflect added in v0.1.9

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

func (*UserLoginAuditResponse) Reset added in v0.1.9

func (x *UserLoginAuditResponse) Reset()

func (*UserLoginAuditResponse) String added in v0.1.9

func (x *UserLoginAuditResponse) String() string

type UserServiceClient added in v0.1.3

type UserServiceClient interface {
	AuditLogWebhook(ctx context.Context, in *UserLoginAuditRequest, opts ...grpc.CallOption) (*UserLoginAuditResponse, error)
	CreateUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error)
	GetUsers(ctx context.Context, in *v31.QueryOptions, opts ...grpc.CallOption) (*v3.UserList, error)
	GetUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error)
	GetUserInfo(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.UserInfo, error)
	UpdateUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error)
	UpdateUserForceReset(ctx context.Context, in *UpdateForceResetRequest, opts ...grpc.CallOption) (*UpdateForceResetResponse, error)
	DeleteUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*UserDeleteApiKeysResponse, error)
	DownloadCliConfig(ctx context.Context, in *CliConfigRequest, opts ...grpc.CallOption) (*v31.HttpBody, error)
	UserListApiKeys(ctx context.Context, in *ApiKeyRequest, opts ...grpc.CallOption) (*UserListApiKeysResponse, error)
	UserDeleteApiKeys(ctx context.Context, in *ApiKeyRequest, opts ...grpc.CallOption) (*UserDeleteApiKeysResponse, error)
	UserForgotPassword(ctx context.Context, in *UserForgotPasswordRequest, opts ...grpc.CallOption) (*UserForgotPasswordResponse, error)
}

UserServiceClient is the client API for UserService 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 NewUserServiceClient added in v0.1.3

func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient

type UserServiceServer added in v0.1.3

UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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