Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCloudIdeServiceServer(s grpc.ServiceRegistrar, srv CloudIdeServiceServer)
- type CloudIdeServiceClient
- type CloudIdeServiceServer
- type RequestCreate
- func (*RequestCreate) Descriptor() ([]byte, []int)deprecated
- func (x *RequestCreate) GetGitRepository() string
- func (x *RequestCreate) GetImage() string
- func (x *RequestCreate) GetPort() int32
- func (x *RequestCreate) GetResourceLimit() *ResourceLimit
- func (x *RequestCreate) GetSid() string
- func (x *RequestCreate) GetUid() string
- func (x *RequestCreate) GetVolumeMountPath() string
- func (*RequestCreate) ProtoMessage()
- func (x *RequestCreate) ProtoReflect() protoreflect.Message
- func (x *RequestCreate) Reset()
- func (x *RequestCreate) String() string
- type RequestDelete
- func (*RequestDelete) Descriptor() ([]byte, []int)deprecated
- func (x *RequestDelete) GetSid() string
- func (x *RequestDelete) GetUid() string
- func (*RequestDelete) ProtoMessage()
- func (x *RequestDelete) ProtoReflect() protoreflect.Message
- func (x *RequestDelete) Reset()
- func (x *RequestDelete) String() string
- type RequestRunningWorkspaces
- func (*RequestRunningWorkspaces) Descriptor() ([]byte, []int)deprecated
- func (x *RequestRunningWorkspaces) GetUid() string
- func (*RequestRunningWorkspaces) ProtoMessage()
- func (x *RequestRunningWorkspaces) ProtoReflect() protoreflect.Message
- func (x *RequestRunningWorkspaces) Reset()
- func (x *RequestRunningWorkspaces) String() string
- type RequestStart
- func (*RequestStart) Descriptor() ([]byte, []int)deprecated
- func (x *RequestStart) GetResourceLimit() *ResourceLimit
- func (x *RequestStart) GetSid() string
- func (x *RequestStart) GetUid() string
- func (*RequestStart) ProtoMessage()
- func (x *RequestStart) ProtoReflect() protoreflect.Message
- func (x *RequestStart) Reset()
- func (x *RequestStart) String() string
- type RequestStop
- type ResourceLimit
- func (*ResourceLimit) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceLimit) GetCpu() string
- func (x *ResourceLimit) GetMemory() string
- func (x *ResourceLimit) GetStorage() string
- func (*ResourceLimit) ProtoMessage()
- func (x *ResourceLimit) ProtoReflect() protoreflect.Message
- func (x *ResourceLimit) Reset()
- func (x *ResourceLimit) String() string
- type ResponseCreate
- func (*ResponseCreate) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseCreate) GetMessage() string
- func (x *ResponseCreate) GetStatus() ResponseCreate_Status
- func (*ResponseCreate) ProtoMessage()
- func (x *ResponseCreate) ProtoReflect() protoreflect.Message
- func (x *ResponseCreate) Reset()
- func (x *ResponseCreate) String() string
- type ResponseCreate_Status
- func (ResponseCreate_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseCreate_Status) Enum() *ResponseCreate_Status
- func (ResponseCreate_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseCreate_Status) Number() protoreflect.EnumNumber
- func (x ResponseCreate_Status) String() string
- func (ResponseCreate_Status) Type() protoreflect.EnumType
- type ResponseDelete
- func (*ResponseDelete) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseDelete) GetMessage() string
- func (x *ResponseDelete) GetStatus() ResponseDelete_Status
- func (*ResponseDelete) ProtoMessage()
- func (x *ResponseDelete) ProtoReflect() protoreflect.Message
- func (x *ResponseDelete) Reset()
- func (x *ResponseDelete) String() string
- type ResponseDelete_Status
- func (ResponseDelete_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseDelete_Status) Enum() *ResponseDelete_Status
- func (ResponseDelete_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseDelete_Status) Number() protoreflect.EnumNumber
- func (x ResponseDelete_Status) String() string
- func (ResponseDelete_Status) Type() protoreflect.EnumType
- type ResponseRunningWorkspace
- func (*ResponseRunningWorkspace) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseRunningWorkspace) GetWorkspaces() []*ResponseRunningWorkspace_WorkspaceBasicInfo
- func (*ResponseRunningWorkspace) ProtoMessage()
- func (x *ResponseRunningWorkspace) ProtoReflect() protoreflect.Message
- func (x *ResponseRunningWorkspace) Reset()
- func (x *ResponseRunningWorkspace) String() string
- type ResponseRunningWorkspace_Status
- func (ResponseRunningWorkspace_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseRunningWorkspace_Status) Enum() *ResponseRunningWorkspace_Status
- func (ResponseRunningWorkspace_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseRunningWorkspace_Status) Number() protoreflect.EnumNumber
- func (x ResponseRunningWorkspace_Status) String() string
- func (ResponseRunningWorkspace_Status) Type() protoreflect.EnumType
- type ResponseRunningWorkspace_WorkspaceBasicInfo
- func (*ResponseRunningWorkspace_WorkspaceBasicInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) GetName() string
- func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) GetSid() string
- func (*ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoMessage()
- func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoReflect() protoreflect.Message
- func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) Reset()
- func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) String() string
- type ResponseStart
- func (*ResponseStart) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseStart) GetMessage() string
- func (x *ResponseStart) GetStatus() ResponseStart_Status
- func (*ResponseStart) ProtoMessage()
- func (x *ResponseStart) ProtoReflect() protoreflect.Message
- func (x *ResponseStart) Reset()
- func (x *ResponseStart) String() string
- type ResponseStart_Status
- func (ResponseStart_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseStart_Status) Enum() *ResponseStart_Status
- func (ResponseStart_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseStart_Status) Number() protoreflect.EnumNumber
- func (x ResponseStart_Status) String() string
- func (ResponseStart_Status) Type() protoreflect.EnumType
- type ResponseStop
- func (*ResponseStop) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseStop) GetMessage() string
- func (x *ResponseStop) GetStatus() ResponseStop_Status
- func (*ResponseStop) ProtoMessage()
- func (x *ResponseStop) ProtoReflect() protoreflect.Message
- func (x *ResponseStop) Reset()
- func (x *ResponseStop) String() string
- type ResponseStop_Status
- func (ResponseStop_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseStop_Status) Enum() *ResponseStop_Status
- func (ResponseStop_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseStop_Status) Number() protoreflect.EnumNumber
- func (x ResponseStop_Status) String() string
- func (ResponseStop_Status) Type() protoreflect.EnumType
- type UnimplementedCloudIdeServiceServer
- func (UnimplementedCloudIdeServiceServer) CreateSpace(context.Context, *RequestCreate) (*ResponseCreate, error)
- func (UnimplementedCloudIdeServiceServer) DeleteSpace(context.Context, *RequestDelete) (*ResponseDelete, error)
- func (UnimplementedCloudIdeServiceServer) RunningWorkspaces(context.Context, *RequestRunningWorkspaces) (*ResponseRunningWorkspace, error)
- func (UnimplementedCloudIdeServiceServer) StartSpace(context.Context, *RequestStart) (*ResponseStart, error)
- func (UnimplementedCloudIdeServiceServer) StopSpace(context.Context, *RequestStop) (*ResponseStop, error)
- type UnsafeCloudIdeServiceServer
Constants ¶
const ( CloudIdeService_CreateSpace_FullMethodName = "/pb.CloudIdeService/createSpace" CloudIdeService_StartSpace_FullMethodName = "/pb.CloudIdeService/startSpace" CloudIdeService_DeleteSpace_FullMethodName = "/pb.CloudIdeService/deleteSpace" CloudIdeService_StopSpace_FullMethodName = "/pb.CloudIdeService/stopSpace" CloudIdeService_RunningWorkspaces_FullMethodName = "/pb.CloudIdeService/runningWorkspaces" )
Variables ¶
var ( ResponseCreate_Status_name = map[int32]string{ 0: "Success", 1: "AlreadyExist", 2: "Error", } ResponseCreate_Status_value = map[string]int32{ "Success": 0, "AlreadyExist": 1, "Error": 2, } )
Enum value maps for ResponseCreate_Status.
var ( ResponseStart_Status_name = map[int32]string{ 0: "Success", 1: "NotFound", 2: "Error", } ResponseStart_Status_value = map[string]int32{ "Success": 0, "NotFound": 1, "Error": 2, } )
Enum value maps for ResponseStart_Status.
var ( ResponseStop_Status_name = map[int32]string{ 0: "Success", 1: "NotFound", 2: "Error", } ResponseStop_Status_value = map[string]int32{ "Success": 0, "NotFound": 1, "Error": 2, } )
Enum value maps for ResponseStop_Status.
var ( ResponseDelete_Status_name = map[int32]string{ 0: "Success", 1: "Error", } ResponseDelete_Status_value = map[string]int32{ "Success": 0, "Error": 1, } )
Enum value maps for ResponseDelete_Status.
var ( ResponseRunningWorkspace_Status_name = map[int32]string{ 0: "Success", 1: "NotFound", } ResponseRunningWorkspace_Status_value = map[string]int32{ "Success": 0, "NotFound": 1, } )
Enum value maps for ResponseRunningWorkspace_Status.
var CloudIdeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.CloudIdeService", HandlerType: (*CloudIdeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "createSpace", Handler: _CloudIdeService_CreateSpace_Handler, }, { MethodName: "startSpace", Handler: _CloudIdeService_StartSpace_Handler, }, { MethodName: "deleteSpace", Handler: _CloudIdeService_DeleteSpace_Handler, }, { MethodName: "stopSpace", Handler: _CloudIdeService_StopSpace_Handler, }, { MethodName: "runningWorkspaces", Handler: _CloudIdeService_RunningWorkspaces_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/proto/service.proto", }
CloudIdeService_ServiceDesc is the grpc.ServiceDesc for CloudIdeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_proto_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudIdeServiceServer ¶
func RegisterCloudIdeServiceServer(s grpc.ServiceRegistrar, srv CloudIdeServiceServer)
Types ¶
type CloudIdeServiceClient ¶
type CloudIdeServiceClient interface { // 创建云IDE空间并等待Pod状态变为Running,第一次创建,需要挂载存储卷 CreateSpace(ctx context.Context, in *RequestCreate, opts ...grpc.CallOption) (*ResponseCreate, error) // 启动(创建)云IDE空间,非第一次创建,无需挂载存储卷,使用之前的存储卷 StartSpace(ctx context.Context, in *RequestStart, opts ...grpc.CallOption) (*ResponseStart, error) // 删除云IDE空间,需要删除存储卷 DeleteSpace(ctx context.Context, in *RequestDelete, opts ...grpc.CallOption) (*ResponseDelete, error) // 停止(删除)云工作空间,无需删除存储卷 StopSpace(ctx context.Context, in *RequestStop, opts ...grpc.CallOption) (*ResponseStop, error) // 获取运行中的Workspace RunningWorkspaces(ctx context.Context, in *RequestRunningWorkspaces, opts ...grpc.CallOption) (*ResponseRunningWorkspace, error) }
CloudIdeServiceClient is the client API for CloudIdeService 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 NewCloudIdeServiceClient ¶
func NewCloudIdeServiceClient(cc grpc.ClientConnInterface) CloudIdeServiceClient
type CloudIdeServiceServer ¶
type CloudIdeServiceServer interface { // 创建云IDE空间并等待Pod状态变为Running,第一次创建,需要挂载存储卷 CreateSpace(context.Context, *RequestCreate) (*ResponseCreate, error) // 启动(创建)云IDE空间,非第一次创建,无需挂载存储卷,使用之前的存储卷 StartSpace(context.Context, *RequestStart) (*ResponseStart, error) // 删除云IDE空间,需要删除存储卷 DeleteSpace(context.Context, *RequestDelete) (*ResponseDelete, error) // 停止(删除)云工作空间,无需删除存储卷 StopSpace(context.Context, *RequestStop) (*ResponseStop, error) // 获取运行中的Workspace RunningWorkspaces(context.Context, *RequestRunningWorkspaces) (*ResponseRunningWorkspace, error) // contains filtered or unexported methods }
CloudIdeServiceServer is the server API for CloudIdeService service. All implementations must embed UnimplementedCloudIdeServiceServer for forward compatibility
type RequestCreate ¶
type RequestCreate struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` GitRepository string `protobuf:"bytes,5,opt,name=gitRepository,proto3" json:"gitRepository,omitempty"` VolumeMountPath string `protobuf:"bytes,6,opt,name=volumeMountPath,proto3" json:"volumeMountPath,omitempty"` ResourceLimit *ResourceLimit `protobuf:"bytes,7,opt,name=resourceLimit,proto3" json:"resourceLimit,omitempty"` // contains filtered or unexported fields }
创建请求
func (*RequestCreate) Descriptor
deprecated
func (*RequestCreate) Descriptor() ([]byte, []int)
Deprecated: Use RequestCreate.ProtoReflect.Descriptor instead.
func (*RequestCreate) GetGitRepository ¶
func (x *RequestCreate) GetGitRepository() string
func (*RequestCreate) GetImage ¶
func (x *RequestCreate) GetImage() string
func (*RequestCreate) GetPort ¶
func (x *RequestCreate) GetPort() int32
func (*RequestCreate) GetResourceLimit ¶
func (x *RequestCreate) GetResourceLimit() *ResourceLimit
func (*RequestCreate) GetSid ¶
func (x *RequestCreate) GetSid() string
func (*RequestCreate) GetUid ¶
func (x *RequestCreate) GetUid() string
func (*RequestCreate) GetVolumeMountPath ¶
func (x *RequestCreate) GetVolumeMountPath() string
func (*RequestCreate) ProtoMessage ¶
func (*RequestCreate) ProtoMessage()
func (*RequestCreate) ProtoReflect ¶
func (x *RequestCreate) ProtoReflect() protoreflect.Message
func (*RequestCreate) Reset ¶
func (x *RequestCreate) Reset()
func (*RequestCreate) String ¶
func (x *RequestCreate) String() string
type RequestDelete ¶
type RequestDelete struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*RequestDelete) Descriptor
deprecated
func (*RequestDelete) Descriptor() ([]byte, []int)
Deprecated: Use RequestDelete.ProtoReflect.Descriptor instead.
func (*RequestDelete) GetSid ¶
func (x *RequestDelete) GetSid() string
func (*RequestDelete) GetUid ¶
func (x *RequestDelete) GetUid() string
func (*RequestDelete) ProtoMessage ¶
func (*RequestDelete) ProtoMessage()
func (*RequestDelete) ProtoReflect ¶
func (x *RequestDelete) ProtoReflect() protoreflect.Message
func (*RequestDelete) Reset ¶
func (x *RequestDelete) Reset()
func (*RequestDelete) String ¶
func (x *RequestDelete) String() string
type RequestRunningWorkspaces ¶
type RequestRunningWorkspaces struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*RequestRunningWorkspaces) Descriptor
deprecated
func (*RequestRunningWorkspaces) Descriptor() ([]byte, []int)
Deprecated: Use RequestRunningWorkspaces.ProtoReflect.Descriptor instead.
func (*RequestRunningWorkspaces) GetUid ¶
func (x *RequestRunningWorkspaces) GetUid() string
func (*RequestRunningWorkspaces) ProtoMessage ¶
func (*RequestRunningWorkspaces) ProtoMessage()
func (*RequestRunningWorkspaces) ProtoReflect ¶
func (x *RequestRunningWorkspaces) ProtoReflect() protoreflect.Message
func (*RequestRunningWorkspaces) Reset ¶
func (x *RequestRunningWorkspaces) Reset()
func (*RequestRunningWorkspaces) String ¶
func (x *RequestRunningWorkspaces) String() string
type RequestStart ¶
type RequestStart struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` ResourceLimit *ResourceLimit `protobuf:"bytes,3,opt,name=resourceLimit,proto3" json:"resourceLimit,omitempty"` // contains filtered or unexported fields }
func (*RequestStart) Descriptor
deprecated
func (*RequestStart) Descriptor() ([]byte, []int)
Deprecated: Use RequestStart.ProtoReflect.Descriptor instead.
func (*RequestStart) GetResourceLimit ¶
func (x *RequestStart) GetResourceLimit() *ResourceLimit
func (*RequestStart) GetSid ¶
func (x *RequestStart) GetSid() string
func (*RequestStart) GetUid ¶
func (x *RequestStart) GetUid() string
func (*RequestStart) ProtoMessage ¶
func (*RequestStart) ProtoMessage()
func (*RequestStart) ProtoReflect ¶
func (x *RequestStart) ProtoReflect() protoreflect.Message
func (*RequestStart) Reset ¶
func (x *RequestStart) Reset()
func (*RequestStart) String ¶
func (x *RequestStart) String() string
type RequestStop ¶
type RequestStop struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*RequestStop) Descriptor
deprecated
func (*RequestStop) Descriptor() ([]byte, []int)
Deprecated: Use RequestStop.ProtoReflect.Descriptor instead.
func (*RequestStop) GetSid ¶
func (x *RequestStop) GetSid() string
func (*RequestStop) GetUid ¶
func (x *RequestStop) GetUid() string
func (*RequestStop) ProtoMessage ¶
func (*RequestStop) ProtoMessage()
func (*RequestStop) ProtoReflect ¶
func (x *RequestStop) ProtoReflect() protoreflect.Message
func (*RequestStop) Reset ¶
func (x *RequestStop) Reset()
func (*RequestStop) String ¶
func (x *RequestStop) String() string
type ResourceLimit ¶
type ResourceLimit struct { Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` Memory string `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` Storage string `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"` // contains filtered or unexported fields }
工作空间的资源限制
func (*ResourceLimit) Descriptor
deprecated
func (*ResourceLimit) Descriptor() ([]byte, []int)
Deprecated: Use ResourceLimit.ProtoReflect.Descriptor instead.
func (*ResourceLimit) GetCpu ¶
func (x *ResourceLimit) GetCpu() string
func (*ResourceLimit) GetMemory ¶
func (x *ResourceLimit) GetMemory() string
func (*ResourceLimit) GetStorage ¶
func (x *ResourceLimit) GetStorage() string
func (*ResourceLimit) ProtoMessage ¶
func (*ResourceLimit) ProtoMessage()
func (*ResourceLimit) ProtoReflect ¶
func (x *ResourceLimit) ProtoReflect() protoreflect.Message
func (*ResourceLimit) Reset ¶
func (x *ResourceLimit) Reset()
func (*ResourceLimit) String ¶
func (x *ResourceLimit) String() string
type ResponseCreate ¶
type ResponseCreate struct { Status ResponseCreate_Status `protobuf:"varint,1,opt,name=status,proto3,enum=pb.ResponseCreate_Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseCreate) Descriptor
deprecated
func (*ResponseCreate) Descriptor() ([]byte, []int)
Deprecated: Use ResponseCreate.ProtoReflect.Descriptor instead.
func (*ResponseCreate) GetMessage ¶
func (x *ResponseCreate) GetMessage() string
func (*ResponseCreate) GetStatus ¶
func (x *ResponseCreate) GetStatus() ResponseCreate_Status
func (*ResponseCreate) ProtoMessage ¶
func (*ResponseCreate) ProtoMessage()
func (*ResponseCreate) ProtoReflect ¶
func (x *ResponseCreate) ProtoReflect() protoreflect.Message
func (*ResponseCreate) Reset ¶
func (x *ResponseCreate) Reset()
func (*ResponseCreate) String ¶
func (x *ResponseCreate) String() string
type ResponseCreate_Status ¶
type ResponseCreate_Status int32
const ( ResponseCreate_Success ResponseCreate_Status = 0 ResponseCreate_AlreadyExist ResponseCreate_Status = 1 ResponseCreate_Error ResponseCreate_Status = 2 )
func (ResponseCreate_Status) Descriptor ¶
func (ResponseCreate_Status) Descriptor() protoreflect.EnumDescriptor
func (ResponseCreate_Status) Enum ¶
func (x ResponseCreate_Status) Enum() *ResponseCreate_Status
func (ResponseCreate_Status) EnumDescriptor
deprecated
func (ResponseCreate_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseCreate_Status.Descriptor instead.
func (ResponseCreate_Status) Number ¶
func (x ResponseCreate_Status) Number() protoreflect.EnumNumber
func (ResponseCreate_Status) String ¶
func (x ResponseCreate_Status) String() string
func (ResponseCreate_Status) Type ¶
func (ResponseCreate_Status) Type() protoreflect.EnumType
type ResponseDelete ¶
type ResponseDelete struct { Status ResponseDelete_Status `protobuf:"varint,1,opt,name=status,proto3,enum=pb.ResponseDelete_Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseDelete) Descriptor
deprecated
func (*ResponseDelete) Descriptor() ([]byte, []int)
Deprecated: Use ResponseDelete.ProtoReflect.Descriptor instead.
func (*ResponseDelete) GetMessage ¶
func (x *ResponseDelete) GetMessage() string
func (*ResponseDelete) GetStatus ¶
func (x *ResponseDelete) GetStatus() ResponseDelete_Status
func (*ResponseDelete) ProtoMessage ¶
func (*ResponseDelete) ProtoMessage()
func (*ResponseDelete) ProtoReflect ¶
func (x *ResponseDelete) ProtoReflect() protoreflect.Message
func (*ResponseDelete) Reset ¶
func (x *ResponseDelete) Reset()
func (*ResponseDelete) String ¶
func (x *ResponseDelete) String() string
type ResponseDelete_Status ¶
type ResponseDelete_Status int32
const ( ResponseDelete_Success ResponseDelete_Status = 0 ResponseDelete_Error ResponseDelete_Status = 1 )
func (ResponseDelete_Status) Descriptor ¶
func (ResponseDelete_Status) Descriptor() protoreflect.EnumDescriptor
func (ResponseDelete_Status) Enum ¶
func (x ResponseDelete_Status) Enum() *ResponseDelete_Status
func (ResponseDelete_Status) EnumDescriptor
deprecated
func (ResponseDelete_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseDelete_Status.Descriptor instead.
func (ResponseDelete_Status) Number ¶
func (x ResponseDelete_Status) Number() protoreflect.EnumNumber
func (ResponseDelete_Status) String ¶
func (x ResponseDelete_Status) String() string
func (ResponseDelete_Status) Type ¶
func (ResponseDelete_Status) Type() protoreflect.EnumType
type ResponseRunningWorkspace ¶
type ResponseRunningWorkspace struct { Workspaces []*ResponseRunningWorkspace_WorkspaceBasicInfo `protobuf:"bytes,1,rep,name=workspaces,proto3" json:"workspaces,omitempty"` // contains filtered or unexported fields }
func (*ResponseRunningWorkspace) Descriptor
deprecated
func (*ResponseRunningWorkspace) Descriptor() ([]byte, []int)
Deprecated: Use ResponseRunningWorkspace.ProtoReflect.Descriptor instead.
func (*ResponseRunningWorkspace) GetWorkspaces ¶
func (x *ResponseRunningWorkspace) GetWorkspaces() []*ResponseRunningWorkspace_WorkspaceBasicInfo
func (*ResponseRunningWorkspace) ProtoMessage ¶
func (*ResponseRunningWorkspace) ProtoMessage()
func (*ResponseRunningWorkspace) ProtoReflect ¶
func (x *ResponseRunningWorkspace) ProtoReflect() protoreflect.Message
func (*ResponseRunningWorkspace) Reset ¶
func (x *ResponseRunningWorkspace) Reset()
func (*ResponseRunningWorkspace) String ¶
func (x *ResponseRunningWorkspace) String() string
type ResponseRunningWorkspace_Status ¶
type ResponseRunningWorkspace_Status int32
const ( ResponseRunningWorkspace_Success ResponseRunningWorkspace_Status = 0 ResponseRunningWorkspace_NotFound ResponseRunningWorkspace_Status = 1 )
func (ResponseRunningWorkspace_Status) Descriptor ¶
func (ResponseRunningWorkspace_Status) Descriptor() protoreflect.EnumDescriptor
func (ResponseRunningWorkspace_Status) Enum ¶
func (x ResponseRunningWorkspace_Status) Enum() *ResponseRunningWorkspace_Status
func (ResponseRunningWorkspace_Status) EnumDescriptor
deprecated
func (ResponseRunningWorkspace_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseRunningWorkspace_Status.Descriptor instead.
func (ResponseRunningWorkspace_Status) Number ¶
func (x ResponseRunningWorkspace_Status) Number() protoreflect.EnumNumber
func (ResponseRunningWorkspace_Status) String ¶
func (x ResponseRunningWorkspace_Status) String() string
func (ResponseRunningWorkspace_Status) Type ¶
func (ResponseRunningWorkspace_Status) Type() protoreflect.EnumType
type ResponseRunningWorkspace_WorkspaceBasicInfo ¶
type ResponseRunningWorkspace_WorkspaceBasicInfo struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) Descriptor
deprecated
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) Descriptor() ([]byte, []int)
Deprecated: Use ResponseRunningWorkspace_WorkspaceBasicInfo.ProtoReflect.Descriptor instead.
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) GetName ¶
func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) GetName() string
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) GetSid ¶
func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) GetSid() string
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoMessage ¶
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoMessage()
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoReflect ¶
func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) ProtoReflect() protoreflect.Message
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) Reset ¶
func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) Reset()
func (*ResponseRunningWorkspace_WorkspaceBasicInfo) String ¶
func (x *ResponseRunningWorkspace_WorkspaceBasicInfo) String() string
type ResponseStart ¶
type ResponseStart struct { Status ResponseStart_Status `protobuf:"varint,1,opt,name=status,proto3,enum=pb.ResponseStart_Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
工作空间运行信息
func (*ResponseStart) Descriptor
deprecated
func (*ResponseStart) Descriptor() ([]byte, []int)
Deprecated: Use ResponseStart.ProtoReflect.Descriptor instead.
func (*ResponseStart) GetMessage ¶
func (x *ResponseStart) GetMessage() string
func (*ResponseStart) GetStatus ¶
func (x *ResponseStart) GetStatus() ResponseStart_Status
func (*ResponseStart) ProtoMessage ¶
func (*ResponseStart) ProtoMessage()
func (*ResponseStart) ProtoReflect ¶
func (x *ResponseStart) ProtoReflect() protoreflect.Message
func (*ResponseStart) Reset ¶
func (x *ResponseStart) Reset()
func (*ResponseStart) String ¶
func (x *ResponseStart) String() string
type ResponseStart_Status ¶
type ResponseStart_Status int32
const ( ResponseStart_Success ResponseStart_Status = 0 ResponseStart_NotFound ResponseStart_Status = 1 ResponseStart_Error ResponseStart_Status = 2 )
func (ResponseStart_Status) Descriptor ¶
func (ResponseStart_Status) Descriptor() protoreflect.EnumDescriptor
func (ResponseStart_Status) Enum ¶
func (x ResponseStart_Status) Enum() *ResponseStart_Status
func (ResponseStart_Status) EnumDescriptor
deprecated
func (ResponseStart_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseStart_Status.Descriptor instead.
func (ResponseStart_Status) Number ¶
func (x ResponseStart_Status) Number() protoreflect.EnumNumber
func (ResponseStart_Status) String ¶
func (x ResponseStart_Status) String() string
func (ResponseStart_Status) Type ¶
func (ResponseStart_Status) Type() protoreflect.EnumType
type ResponseStop ¶
type ResponseStop struct { Status ResponseStop_Status `protobuf:"varint,1,opt,name=status,proto3,enum=pb.ResponseStop_Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResponseStop) Descriptor
deprecated
func (*ResponseStop) Descriptor() ([]byte, []int)
Deprecated: Use ResponseStop.ProtoReflect.Descriptor instead.
func (*ResponseStop) GetMessage ¶
func (x *ResponseStop) GetMessage() string
func (*ResponseStop) GetStatus ¶
func (x *ResponseStop) GetStatus() ResponseStop_Status
func (*ResponseStop) ProtoMessage ¶
func (*ResponseStop) ProtoMessage()
func (*ResponseStop) ProtoReflect ¶
func (x *ResponseStop) ProtoReflect() protoreflect.Message
func (*ResponseStop) Reset ¶
func (x *ResponseStop) Reset()
func (*ResponseStop) String ¶
func (x *ResponseStop) String() string
type ResponseStop_Status ¶
type ResponseStop_Status int32
const ( ResponseStop_Success ResponseStop_Status = 0 ResponseStop_NotFound ResponseStop_Status = 1 ResponseStop_Error ResponseStop_Status = 2 )
func (ResponseStop_Status) Descriptor ¶
func (ResponseStop_Status) Descriptor() protoreflect.EnumDescriptor
func (ResponseStop_Status) Enum ¶
func (x ResponseStop_Status) Enum() *ResponseStop_Status
func (ResponseStop_Status) EnumDescriptor
deprecated
func (ResponseStop_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseStop_Status.Descriptor instead.
func (ResponseStop_Status) Number ¶
func (x ResponseStop_Status) Number() protoreflect.EnumNumber
func (ResponseStop_Status) String ¶
func (x ResponseStop_Status) String() string
func (ResponseStop_Status) Type ¶
func (ResponseStop_Status) Type() protoreflect.EnumType
type UnimplementedCloudIdeServiceServer ¶
type UnimplementedCloudIdeServiceServer struct { }
UnimplementedCloudIdeServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudIdeServiceServer) CreateSpace ¶
func (UnimplementedCloudIdeServiceServer) CreateSpace(context.Context, *RequestCreate) (*ResponseCreate, error)
func (UnimplementedCloudIdeServiceServer) DeleteSpace ¶
func (UnimplementedCloudIdeServiceServer) DeleteSpace(context.Context, *RequestDelete) (*ResponseDelete, error)
func (UnimplementedCloudIdeServiceServer) RunningWorkspaces ¶
func (UnimplementedCloudIdeServiceServer) RunningWorkspaces(context.Context, *RequestRunningWorkspaces) (*ResponseRunningWorkspace, error)
func (UnimplementedCloudIdeServiceServer) StartSpace ¶
func (UnimplementedCloudIdeServiceServer) StartSpace(context.Context, *RequestStart) (*ResponseStart, error)
func (UnimplementedCloudIdeServiceServer) StopSpace ¶
func (UnimplementedCloudIdeServiceServer) StopSpace(context.Context, *RequestStop) (*ResponseStop, error)
type UnsafeCloudIdeServiceServer ¶
type UnsafeCloudIdeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCloudIdeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudIdeServiceServer will result in compilation errors.