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
- Variables
- func RegisterGroupServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGroupServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GroupServiceClient) error
- func RegisterGroupServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GroupServiceServer) error
- func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type ApiKeyRequest
- func (*ApiKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApiKeyRequest) GetId() string
- func (x *ApiKeyRequest) GetUsername() string
- func (*ApiKeyRequest) ProtoMessage()
- func (x *ApiKeyRequest) ProtoReflect() protoreflect.Message
- func (x *ApiKeyRequest) Reset()
- func (x *ApiKeyRequest) String() string
- type ApiKeyResponse
- func (*ApiKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApiKeyResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *ApiKeyResponse) GetId() string
- func (x *ApiKeyResponse) GetKey() string
- func (x *ApiKeyResponse) GetModifiedAt() *timestamppb.Timestamp
- func (x *ApiKeyResponse) GetName() string
- func (*ApiKeyResponse) ProtoMessage()
- func (x *ApiKeyResponse) ProtoReflect() protoreflect.Message
- func (x *ApiKeyResponse) Reset()
- func (x *ApiKeyResponse) String() string
- type CliConfigRequest
- type GroupServiceClient
- type GroupServiceServer
- type Option
- type UGClient
- type UGPool
- type UnimplementedGroupServiceServer
- func (UnimplementedGroupServiceServer) CreateGroup(context.Context, *v3.Group) (*v3.Group, error)
- func (UnimplementedGroupServiceServer) DeleteGroup(context.Context, *v3.Group) (*v3.Group, error)
- func (UnimplementedGroupServiceServer) GetGroup(context.Context, *v3.Group) (*v3.Group, error)
- func (UnimplementedGroupServiceServer) GetGroups(context.Context, *v31.QueryOptions) (*v3.GroupList, error)
- func (UnimplementedGroupServiceServer) UpdateGroup(context.Context, *v3.Group) (*v3.Group, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) AuditLogWebhook(context.Context, *UserLoginAuditRequest) (*UserLoginAuditResponse, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *v3.User) (*v3.User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *v3.User) (*UserDeleteApiKeysResponse, error)
- func (UnimplementedUserServiceServer) DownloadCliConfig(context.Context, *CliConfigRequest) (*v31.HttpBody, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *v3.User) (*v3.User, error)
- func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *v3.User) (*v3.UserInfo, error)
- func (UnimplementedUserServiceServer) GetUsers(context.Context, *v31.QueryOptions) (*v3.UserList, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *v3.User) (*v3.User, error)
- func (UnimplementedUserServiceServer) UpdateUserForceReset(context.Context, *UpdateForceResetRequest) (*UpdateForceResetResponse, error)
- func (UnimplementedUserServiceServer) UserDeleteApiKeys(context.Context, *ApiKeyRequest) (*UserDeleteApiKeysResponse, error)
- func (UnimplementedUserServiceServer) UserForgotPassword(context.Context, *UserForgotPasswordRequest) (*UserForgotPasswordResponse, error)
- func (UnimplementedUserServiceServer) UserListApiKeys(context.Context, *ApiKeyRequest) (*UserListApiKeysResponse, error)
- type UnsafeGroupServiceServer
- type UnsafeUserServiceServer
- type UpdateForceResetRequest
- type UpdateForceResetResponse
- type UserDeleteApiKeysResponse
- type UserForgotPasswordRequest
- func (*UserForgotPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserForgotPasswordRequest) GetUsername() string
- func (*UserForgotPasswordRequest) ProtoMessage()
- func (x *UserForgotPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UserForgotPasswordRequest) Reset()
- func (x *UserForgotPasswordRequest) String() string
- type UserForgotPasswordResponse
- func (*UserForgotPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserForgotPasswordResponse) GetRecoveryLink() string
- func (*UserForgotPasswordResponse) ProtoMessage()
- func (x *UserForgotPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *UserForgotPasswordResponse) Reset()
- func (x *UserForgotPasswordResponse) String() string
- type UserListApiKeysResponse
- func (*UserListApiKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserListApiKeysResponse) GetItems() []*ApiKeyResponse
- func (*UserListApiKeysResponse) ProtoMessage()
- func (x *UserListApiKeysResponse) ProtoReflect() protoreflect.Message
- func (x *UserListApiKeysResponse) Reset()
- func (x *UserListApiKeysResponse) String() string
- type UserLoginAuditRequest
- func (*UserLoginAuditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginAuditRequest) GetUserId() string
- func (*UserLoginAuditRequest) ProtoMessage()
- func (x *UserLoginAuditRequest) ProtoReflect() protoreflect.Message
- func (x *UserLoginAuditRequest) Reset()
- func (x *UserLoginAuditRequest) String() string
- type UserLoginAuditResponse
- type UserServiceClient
- type UserServiceServer
Constants ¶
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" )
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 ¶
var File_proto_rpc_user_group_proto protoreflect.FileDescriptor
var File_proto_rpc_user_user_proto protoreflect.FileDescriptor
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)
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 WithCaCertPEM ¶
WithCaCertPEM sets PEM encoded CA cert for pool
func WithClientCertPEM ¶
WithClientCertPEM sets PEM encoded client cert for pool
func WithClientKeyPEM ¶
WithClientKeyPEM sets PEM encoded client key for pool
func WithMaxConn ¶
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 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) GetGroups ¶ added in v0.1.3
func (UnimplementedGroupServiceServer) GetGroups(context.Context, *v31.QueryOptions) (*v3.GroupList, error)
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) AuditLogWebhook(context.Context, *UserLoginAuditRequest) (*UserLoginAuditResponse, error)
func (UnimplementedUserServiceServer) CreateUser ¶ added in v0.1.3
func (UnimplementedUserServiceServer) DeleteUser ¶ added in v0.1.3
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *v3.User) (*UserDeleteApiKeysResponse, error)
func (UnimplementedUserServiceServer) DownloadCliConfig ¶ added in v0.1.3
func (UnimplementedUserServiceServer) DownloadCliConfig(context.Context, *CliConfigRequest) (*v31.HttpBody, error)
func (UnimplementedUserServiceServer) GetUserInfo ¶ added in v0.1.3
func (UnimplementedUserServiceServer) GetUsers ¶ added in v0.1.3
func (UnimplementedUserServiceServer) GetUsers(context.Context, *v31.QueryOptions) (*v3.UserList, error)
func (UnimplementedUserServiceServer) UpdateUser ¶ added in v0.1.3
func (UnimplementedUserServiceServer) UpdateUserForceReset ¶ added in v0.2.0
func (UnimplementedUserServiceServer) UpdateUserForceReset(context.Context, *UpdateForceResetRequest) (*UpdateForceResetResponse, error)
func (UnimplementedUserServiceServer) UserDeleteApiKeys ¶ added in v0.1.3
func (UnimplementedUserServiceServer) UserDeleteApiKeys(context.Context, *ApiKeyRequest) (*UserDeleteApiKeysResponse, error)
func (UnimplementedUserServiceServer) UserForgotPassword ¶ added in v0.1.3
func (UnimplementedUserServiceServer) UserForgotPassword(context.Context, *UserForgotPasswordRequest) (*UserForgotPasswordResponse, error)
func (UnimplementedUserServiceServer) UserListApiKeys ¶ added in v0.1.3
func (UnimplementedUserServiceServer) UserListApiKeys(context.Context, *ApiKeyRequest) (*UserListApiKeysResponse, error)
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 (x *UserDeleteApiKeysResponse) ProtoReflect() protoreflect.Message
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 (x *UserForgotPasswordRequest) ProtoReflect() protoreflect.Message
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 (*UserForgotPasswordResponse) GetRecoveryLink ¶ added in v0.1.3
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 (x *UserForgotPasswordResponse) ProtoReflect() protoreflect.Message
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
type UserServiceServer interface { AuditLogWebhook(context.Context, *UserLoginAuditRequest) (*UserLoginAuditResponse, error) CreateUser(context.Context, *v3.User) (*v3.User, error) GetUsers(context.Context, *v31.QueryOptions) (*v3.UserList, error) GetUser(context.Context, *v3.User) (*v3.User, error) GetUserInfo(context.Context, *v3.User) (*v3.UserInfo, error) UpdateUser(context.Context, *v3.User) (*v3.User, error) UpdateUserForceReset(context.Context, *UpdateForceResetRequest) (*UpdateForceResetResponse, error) DeleteUser(context.Context, *v3.User) (*UserDeleteApiKeysResponse, error) DownloadCliConfig(context.Context, *CliConfigRequest) (*v31.HttpBody, error) UserListApiKeys(context.Context, *ApiKeyRequest) (*UserListApiKeysResponse, error) UserDeleteApiKeys(context.Context, *ApiKeyRequest) (*UserDeleteApiKeysResponse, error) UserForgotPassword(context.Context, *UserForgotPasswordRequest) (*UserForgotPasswordResponse, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility