Documentation ¶
Overview ¶
Package mgmtv1alpha is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- 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 CreateUserRequest
- type CreateUserResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type GetUserRequest
- type GetUserResponse
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetPageSize() int64
- func (x *ListUserRequest) GetPageToken() string
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- type ListUserResponse
- func (*ListUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserResponse) GetNextPageToken() string
- func (x *ListUserResponse) GetTotalSize() int64
- func (x *ListUserResponse) GetUsers() []*User
- func (*ListUserResponse) ProtoMessage()
- func (x *ListUserResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserResponse) Reset()
- func (x *ListUserResponse) String() string
- type LivenessRequest
- func (*LivenessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LivenessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest
- func (*LivenessRequest) ProtoMessage()
- func (x *LivenessRequest) ProtoReflect() protoreflect.Message
- func (x *LivenessRequest) Reset()
- func (x *LivenessRequest) String() string
- type LivenessResponse
- func (*LivenessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LivenessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse
- func (*LivenessResponse) ProtoMessage()
- func (x *LivenessResponse) ProtoReflect() protoreflect.Message
- func (x *LivenessResponse) Reset()
- func (x *LivenessResponse) String() string
- type LookUpUserRequest
- type LookUpUserResponse
- type OwnerType
- type ReadinessRequest
- func (*ReadinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadinessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest
- func (*ReadinessRequest) ProtoMessage()
- func (x *ReadinessRequest) ProtoReflect() protoreflect.Message
- func (x *ReadinessRequest) Reset()
- func (x *ReadinessRequest) String() string
- type ReadinessResponse
- func (*ReadinessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadinessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse
- func (*ReadinessResponse) ProtoMessage()
- func (x *ReadinessResponse) ProtoReflect() protoreflect.Message
- func (x *ReadinessResponse) Reset()
- func (x *ReadinessResponse) String() string
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
- func (UnimplementedUserServiceServer) Liveness(context.Context, *LivenessRequest) (*LivenessResponse, error)
- func (UnimplementedUserServiceServer) LookUpUser(context.Context, *LookUpUserRequest) (*LookUpUserResponse, error)
- func (UnimplementedUserServiceServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- type UnsafeUserServiceServer
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCompanyName() string
- func (x *User) GetCookieToken() string
- func (x *User) GetCreateTime() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetNewsletterSubscription() bool
- func (x *User) GetRole() string
- func (x *User) GetType() OwnerType
- func (x *User) GetUid() string
- func (x *User) GetUpdateTime() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( OwnerType_name = map[int32]string{ 0: "OWNER_TYPE_UNSPECIFIED", 1: "OWNER_TYPE_USER", 2: "OWNER_TYPE_ORGANIZATION", } OwnerType_value = map[string]int32{ "OWNER_TYPE_UNSPECIFIED": 0, "OWNER_TYPE_USER": 1, "OWNER_TYPE_ORGANIZATION": 2, } )
Enum value maps for OwnerType.
var File_vdp_mgmt_v1alpha_healthcheck_proto protoreflect.FileDescriptor
var File_vdp_mgmt_v1alpha_mgmt_proto protoreflect.FileDescriptor
var File_vdp_mgmt_v1alpha_mgmt_service_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vdp.mgmt.v1alpha.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Liveness", Handler: _UserService_Liveness_Handler, }, { MethodName: "Readiness", Handler: _UserService_Readiness_Handler, }, { MethodName: "ListUser", Handler: _UserService_ListUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "LookUpUser", Handler: _UserService_LookUpUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vdp/mgmt/v1alpha/mgmt_service.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 RegisterUserServiceHandler ¶
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 ¶
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 ¶
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 ¶
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 ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { // The user to be created // // The user's `name` field is used to identify the user to create. // Format: users/{user} User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
CreateUserRequest represents a request to create a user
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { // A user resource User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
CreateUserResponse represents a response for a user response
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetUser ¶
func (x *CreateUserResponse) GetUser() *User
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { // The resource name of the user to be deleted, // for example: "users/local-user" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
DeleteUserRequest represents a request to delete a user
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetName ¶
func (x *DeleteUserRequest) GetName() 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 DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
DeleteUserResponse represents an empty response
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { // Resource name of a user. For example: // "users/instill" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
GetUserRequest represents a request to query a user
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetName ¶
func (x *GetUserRequest) GetName() 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 GetUserResponse ¶
type GetUserResponse struct { // A user resource User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
GetUserResponse represents a response for a user resource
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type ListUserRequest ¶
type ListUserRequest struct { // Page size: the maximum number of resources to return. The service may // return fewer than this value. If unspecified, at most 10 users will be // returned. The maximum value is 100; values above 100 will be coereced to // 100. PageSize *int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` // Page token PageToken *string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"` // contains filtered or unexported fields }
ListUserRequest represents a request to list all users
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetPageSize ¶
func (x *ListUserRequest) GetPageSize() int64
func (*ListUserRequest) GetPageToken ¶
func (x *ListUserRequest) GetPageToken() string
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
type ListUserResponse ¶
type ListUserResponse struct { // A list of users Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Next page token NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // Total count of users TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` // contains filtered or unexported fields }
ListUserResponse represents a response for a list of users
func (*ListUserResponse) Descriptor
deprecated
func (*ListUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.
func (*ListUserResponse) GetNextPageToken ¶
func (x *ListUserResponse) GetNextPageToken() string
func (*ListUserResponse) GetTotalSize ¶
func (x *ListUserResponse) GetTotalSize() int64
func (*ListUserResponse) GetUsers ¶
func (x *ListUserResponse) GetUsers() []*User
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) ProtoReflect ¶
func (x *ListUserResponse) ProtoReflect() protoreflect.Message
func (*ListUserResponse) Reset ¶
func (x *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (x *ListUserResponse) String() string
type LivenessRequest ¶
type LivenessRequest struct { // HealthCheckRequest message HealthCheckRequest *v1alpha.HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof" json:"health_check_request,omitempty"` // contains filtered or unexported fields }
LivenessRequest represents a request to check a service liveness status
func (*LivenessRequest) Descriptor
deprecated
func (*LivenessRequest) Descriptor() ([]byte, []int)
Deprecated: Use LivenessRequest.ProtoReflect.Descriptor instead.
func (*LivenessRequest) GetHealthCheckRequest ¶
func (x *LivenessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest
func (*LivenessRequest) ProtoMessage ¶
func (*LivenessRequest) ProtoMessage()
func (*LivenessRequest) ProtoReflect ¶
func (x *LivenessRequest) ProtoReflect() protoreflect.Message
func (*LivenessRequest) Reset ¶
func (x *LivenessRequest) Reset()
func (*LivenessRequest) String ¶
func (x *LivenessRequest) String() string
type LivenessResponse ¶
type LivenessResponse struct { // HealthCheckResponse message HealthCheckResponse *v1alpha.HealthCheckResponse `protobuf:"bytes,1,opt,name=health_check_response,json=healthCheckResponse,proto3" json:"health_check_response,omitempty"` // contains filtered or unexported fields }
LivenessResponse represents a response for a service liveness status
func (*LivenessResponse) Descriptor
deprecated
func (*LivenessResponse) Descriptor() ([]byte, []int)
Deprecated: Use LivenessResponse.ProtoReflect.Descriptor instead.
func (*LivenessResponse) GetHealthCheckResponse ¶
func (x *LivenessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse
func (*LivenessResponse) ProtoMessage ¶
func (*LivenessResponse) ProtoMessage()
func (*LivenessResponse) ProtoReflect ¶
func (x *LivenessResponse) ProtoReflect() protoreflect.Message
func (*LivenessResponse) Reset ¶
func (x *LivenessResponse) Reset()
func (*LivenessResponse) String ¶
func (x *LivenessResponse) String() string
type LookUpUserRequest ¶
type LookUpUserRequest struct { // Permalink of a user. For example: // "users/{uid}" Permalink string `protobuf:"bytes,1,opt,name=permalink,proto3" json:"permalink,omitempty"` // contains filtered or unexported fields }
LookUpUserRequest represents a request to query a user by permalink
func (*LookUpUserRequest) Descriptor
deprecated
func (*LookUpUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookUpUserRequest.ProtoReflect.Descriptor instead.
func (*LookUpUserRequest) GetPermalink ¶
func (x *LookUpUserRequest) GetPermalink() string
func (*LookUpUserRequest) ProtoMessage ¶
func (*LookUpUserRequest) ProtoMessage()
func (*LookUpUserRequest) ProtoReflect ¶
func (x *LookUpUserRequest) ProtoReflect() protoreflect.Message
func (*LookUpUserRequest) Reset ¶
func (x *LookUpUserRequest) Reset()
func (*LookUpUserRequest) String ¶
func (x *LookUpUserRequest) String() string
type LookUpUserResponse ¶
type LookUpUserResponse struct { // A user resource User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
LookUpUserResponse represents a response for a user resource
func (*LookUpUserResponse) Descriptor
deprecated
func (*LookUpUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookUpUserResponse.ProtoReflect.Descriptor instead.
func (*LookUpUserResponse) GetUser ¶
func (x *LookUpUserResponse) GetUser() *User
func (*LookUpUserResponse) ProtoMessage ¶
func (*LookUpUserResponse) ProtoMessage()
func (*LookUpUserResponse) ProtoReflect ¶
func (x *LookUpUserResponse) ProtoReflect() protoreflect.Message
func (*LookUpUserResponse) Reset ¶
func (x *LookUpUserResponse) Reset()
func (*LookUpUserResponse) String ¶
func (x *LookUpUserResponse) String() string
type OwnerType ¶
type OwnerType int32
OwnerType enumerates the owner type of any resource
func (OwnerType) Descriptor ¶
func (OwnerType) Descriptor() protoreflect.EnumDescriptor
func (OwnerType) EnumDescriptor
deprecated
func (OwnerType) Number ¶
func (x OwnerType) Number() protoreflect.EnumNumber
func (OwnerType) Type ¶
func (OwnerType) Type() protoreflect.EnumType
type ReadinessRequest ¶
type ReadinessRequest struct { // HealthCheckRequest message HealthCheckRequest *v1alpha.HealthCheckRequest `protobuf:"bytes,1,opt,name=health_check_request,json=healthCheckRequest,proto3,oneof" json:"health_check_request,omitempty"` // contains filtered or unexported fields }
ReadinessRequest represents a request to check a service readiness status
func (*ReadinessRequest) Descriptor
deprecated
func (*ReadinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadinessRequest.ProtoReflect.Descriptor instead.
func (*ReadinessRequest) GetHealthCheckRequest ¶
func (x *ReadinessRequest) GetHealthCheckRequest() *v1alpha.HealthCheckRequest
func (*ReadinessRequest) ProtoMessage ¶
func (*ReadinessRequest) ProtoMessage()
func (*ReadinessRequest) ProtoReflect ¶
func (x *ReadinessRequest) ProtoReflect() protoreflect.Message
func (*ReadinessRequest) Reset ¶
func (x *ReadinessRequest) Reset()
func (*ReadinessRequest) String ¶
func (x *ReadinessRequest) String() string
type ReadinessResponse ¶
type ReadinessResponse struct { // HealthCheckResponse message HealthCheckResponse *v1alpha.HealthCheckResponse `protobuf:"bytes,1,opt,name=health_check_response,json=healthCheckResponse,proto3" json:"health_check_response,omitempty"` // contains filtered or unexported fields }
ReadinessResponse represents a response for a service readiness status
func (*ReadinessResponse) Descriptor
deprecated
func (*ReadinessResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadinessResponse.ProtoReflect.Descriptor instead.
func (*ReadinessResponse) GetHealthCheckResponse ¶
func (x *ReadinessResponse) GetHealthCheckResponse() *v1alpha.HealthCheckResponse
func (*ReadinessResponse) ProtoMessage ¶
func (*ReadinessResponse) ProtoMessage()
func (*ReadinessResponse) ProtoReflect ¶
func (x *ReadinessResponse) ProtoReflect() protoreflect.Message
func (*ReadinessResponse) Reset ¶
func (x *ReadinessResponse) Reset()
func (*ReadinessResponse) String ¶
func (x *ReadinessResponse) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) ListUser ¶
func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
func (UnimplementedUserServiceServer) Liveness ¶
func (UnimplementedUserServiceServer) Liveness(context.Context, *LivenessRequest) (*LivenessResponse, error)
func (UnimplementedUserServiceServer) LookUpUser ¶
func (UnimplementedUserServiceServer) LookUpUser(context.Context, *LookUpUserRequest) (*LookUpUserResponse, error)
func (UnimplementedUserServiceServer) Readiness ¶
func (UnimplementedUserServiceServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
type UnsafeUserServiceServer ¶
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 UpdateUserRequest ¶
type UpdateUserRequest struct { // The user to update // // The user's `name` field is used to identify the user to update. // Format: users/{user} User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // Update mask for a user resource UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
UpdateUserRequest represents a request to update a user
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask ¶
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
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 UpdateUserResponse ¶
type UpdateUserResponse struct { // A user resource User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
UpdateUserResponse represents a response for a user resource
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetUser ¶
func (x *UpdateUserResponse) GetUser() *User
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
type User ¶
type User struct { // Resource name. It must have the format of "users/*". // For example: "users/local-user". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // User ID in UUIDv4 Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // User email Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"` // Resource ID (the last segment of the resource name), also the user login // username. This conforms to RFC-1034, which restricts to letters, numbers, // and hyphen, with the first character a letter, the last a letter or a // number, and a 63 character maximum. Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` // User company name CompanyName *string `protobuf:"bytes,5,opt,name=company_name,json=companyName,proto3,oneof" json:"company_name,omitempty"` // User role. Allowed roles: // - "manager" // - "ai-researcher" // - "ai-engineer" // - "data-engineer", // - "data-scientist", // - "analytics-engineer" // - "hobbyist" Role *string `protobuf:"bytes,6,opt,name=role,proto3,oneof" json:"role,omitempty"` // User newsletter subscription NewsletterSubscription bool `` /* 128-byte string literal not displayed */ // User console cookie token CookieToken *string `protobuf:"bytes,8,opt,name=cookie_token,json=cookieToken,proto3,oneof" json:"cookie_token,omitempty"` // Owner type: fixed to `OWNER_TYPE_USER` Type OwnerType `protobuf:"varint,9,opt,name=type,proto3,enum=vdp.mgmt.v1alpha.OwnerType" json:"type,omitempty"` // User creation time CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // User update time UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
User represents the content of a user
func (*User) Descriptor
deprecated
func (*User) GetCompanyName ¶
func (*User) GetCookieToken ¶
func (*User) GetCreateTime ¶
func (x *User) GetCreateTime() *timestamppb.Timestamp
func (*User) GetNewsletterSubscription ¶
func (*User) GetUpdateTime ¶
func (x *User) GetUpdateTime() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { // Liveness method receives a LivenessRequest message and returns a // LivenessResponse message. // See https://github.com/grpc/grpc/blob/master/doc/health-checking.md Liveness(ctx context.Context, in *LivenessRequest, opts ...grpc.CallOption) (*LivenessResponse, error) // Readiness method receives a ReadinessRequest message and returns a // ReadinessResponse message. // See https://github.com/grpc/grpc/blob/master/doc/health-checking.md Readiness(ctx context.Context, in *ReadinessRequest, opts ...grpc.CallOption) (*ReadinessResponse, error) // ListUser method receives a ListUserRequest message and returns a // ListUserResponse message. ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) // CreateUser receives a CreateUserRequest message and returns a // aGetUserResponse CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) // GetUser method receives a GetUserRequest message and returns // a GetUserResponse message. GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) // UpdateUser method receives a UpdateUserRequest message and returns // a UpdateUserResponse UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) // DeleteUser method receives a DeleteUserRequest message and returns a // DeleteUserResponse DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) // LookUpUser method receives a LookUpUserRequest message and returns a // LookUpUserResponse LookUpUser(ctx context.Context, in *LookUpUserRequest, opts ...grpc.CallOption) (*LookUpUserResponse, 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 ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { // Liveness method receives a LivenessRequest message and returns a // LivenessResponse message. // See https://github.com/grpc/grpc/blob/master/doc/health-checking.md Liveness(context.Context, *LivenessRequest) (*LivenessResponse, error) // Readiness method receives a ReadinessRequest message and returns a // ReadinessResponse message. // See https://github.com/grpc/grpc/blob/master/doc/health-checking.md Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) // ListUser method receives a ListUserRequest message and returns a // ListUserResponse message. ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) // CreateUser receives a CreateUserRequest message and returns a // aGetUserResponse CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // GetUser method receives a GetUserRequest message and returns // a GetUserResponse message. GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) // UpdateUser method receives a UpdateUserRequest message and returns // a UpdateUserResponse UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) // DeleteUser method receives a DeleteUserRequest message and returns a // DeleteUserResponse DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) // LookUpUser method receives a LookUpUserRequest message and returns a // LookUpUserResponse LookUpUser(context.Context, *LookUpUserRequest) (*LookUpUserResponse, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility