Documentation ¶
Index ¶
- Variables
- func RegisterCloudIdeServiceServer(s *grpc.Server, srv CloudIdeServiceServer)
- type CloudIdeServiceClient
- type CloudIdeServiceServer
- type QueryOption
- func (*QueryOption) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOption) GetName() string
- func (x *QueryOption) GetNamespace() string
- func (*QueryOption) ProtoMessage()
- func (x *QueryOption) ProtoReflect() protoreflect.Message
- func (x *QueryOption) Reset()
- func (x *QueryOption) String() string
- 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 Response
- type UnimplementedCloudIdeServiceServer
- func (*UnimplementedCloudIdeServiceServer) CreateSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error)
- func (*UnimplementedCloudIdeServiceServer) DeleteSpace(context.Context, *QueryOption) (*Response, error)
- func (*UnimplementedCloudIdeServiceServer) GetPodSpaceInfo(context.Context, *QueryOption) (*WorkspaceRunningInfo, error)
- func (*UnimplementedCloudIdeServiceServer) GetPodSpaceStatus(context.Context, *QueryOption) (*WorkspaceStatus, error)
- func (*UnimplementedCloudIdeServiceServer) StartSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error)
- func (*UnimplementedCloudIdeServiceServer) StopSpace(context.Context, *QueryOption) (*Response, error)
- type WorkspaceInfo
- func (*WorkspaceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceInfo) GetImage() string
- func (x *WorkspaceInfo) GetName() string
- func (x *WorkspaceInfo) GetNamespace() string
- func (x *WorkspaceInfo) GetPort() int32
- func (x *WorkspaceInfo) GetResourceLimit() *ResourceLimit
- func (x *WorkspaceInfo) GetVolumeMountPath() string
- func (*WorkspaceInfo) ProtoMessage()
- func (x *WorkspaceInfo) ProtoReflect() protoreflect.Message
- func (x *WorkspaceInfo) Reset()
- func (x *WorkspaceInfo) String() string
- type WorkspaceRunningInfo
- func (*WorkspaceRunningInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceRunningInfo) GetIp() string
- func (x *WorkspaceRunningInfo) GetNodeName() string
- func (x *WorkspaceRunningInfo) GetPort() int32
- func (*WorkspaceRunningInfo) ProtoMessage()
- func (x *WorkspaceRunningInfo) ProtoReflect() protoreflect.Message
- func (x *WorkspaceRunningInfo) Reset()
- func (x *WorkspaceRunningInfo) String() string
- type WorkspaceStatus
- func (*WorkspaceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceStatus) GetMessage() string
- func (x *WorkspaceStatus) GetStatus() int32
- func (*WorkspaceStatus) ProtoMessage()
- func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message
- func (x *WorkspaceStatus) Reset()
- func (x *WorkspaceStatus) String() string
Constants ¶
This section is empty.
Variables ¶
var File_pb_proto_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudIdeServiceServer ¶
func RegisterCloudIdeServiceServer(s *grpc.Server, srv CloudIdeServiceServer)
Types ¶
type CloudIdeServiceClient ¶
type CloudIdeServiceClient interface { // 创建云IDE空间并等待Pod状态变为Running,第一次创建,需要挂载存储卷 CreateSpace(ctx context.Context, in *WorkspaceInfo, opts ...grpc.CallOption) (*WorkspaceRunningInfo, error) // 启动(创建)云IDE空间,非第一次创建,无需挂载存储卷,使用之前的存储卷 StartSpace(ctx context.Context, in *WorkspaceInfo, opts ...grpc.CallOption) (*WorkspaceRunningInfo, error) // 删除云IDE空间,需要删除存储卷 DeleteSpace(ctx context.Context, in *QueryOption, opts ...grpc.CallOption) (*Response, error) // 停止(删除)云工作空间,无需删除存储卷 StopSpace(ctx context.Context, in *QueryOption, opts ...grpc.CallOption) (*Response, error) // 获取Pod运行状态 GetPodSpaceStatus(ctx context.Context, in *QueryOption, opts ...grpc.CallOption) (*WorkspaceStatus, error) // 获取云IDE空间Pod的信息 GetPodSpaceInfo(ctx context.Context, in *QueryOption, opts ...grpc.CallOption) (*WorkspaceRunningInfo, error) }
CloudIdeServiceClient is the client API for CloudIdeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCloudIdeServiceClient ¶
func NewCloudIdeServiceClient(cc grpc.ClientConnInterface) CloudIdeServiceClient
type CloudIdeServiceServer ¶
type CloudIdeServiceServer interface { // 创建云IDE空间并等待Pod状态变为Running,第一次创建,需要挂载存储卷 CreateSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error) // 启动(创建)云IDE空间,非第一次创建,无需挂载存储卷,使用之前的存储卷 StartSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error) // 删除云IDE空间,需要删除存储卷 DeleteSpace(context.Context, *QueryOption) (*Response, error) // 停止(删除)云工作空间,无需删除存储卷 StopSpace(context.Context, *QueryOption) (*Response, error) // 获取Pod运行状态 GetPodSpaceStatus(context.Context, *QueryOption) (*WorkspaceStatus, error) // 获取云IDE空间Pod的信息 GetPodSpaceInfo(context.Context, *QueryOption) (*WorkspaceRunningInfo, error) }
CloudIdeServiceServer is the server API for CloudIdeService service.
type QueryOption ¶
type QueryOption struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*QueryOption) Descriptor
deprecated
func (*QueryOption) Descriptor() ([]byte, []int)
Deprecated: Use QueryOption.ProtoReflect.Descriptor instead.
func (*QueryOption) GetName ¶
func (x *QueryOption) GetName() string
func (*QueryOption) GetNamespace ¶
func (x *QueryOption) GetNamespace() string
func (*QueryOption) ProtoMessage ¶
func (*QueryOption) ProtoMessage()
func (*QueryOption) ProtoReflect ¶
func (x *QueryOption) ProtoReflect() protoreflect.Message
func (*QueryOption) Reset ¶
func (x *QueryOption) Reset()
func (*QueryOption) String ¶
func (x *QueryOption) 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 Response ¶
type Response struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedCloudIdeServiceServer ¶
type UnimplementedCloudIdeServiceServer struct { }
UnimplementedCloudIdeServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCloudIdeServiceServer) CreateSpace ¶
func (*UnimplementedCloudIdeServiceServer) CreateSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error)
func (*UnimplementedCloudIdeServiceServer) DeleteSpace ¶
func (*UnimplementedCloudIdeServiceServer) DeleteSpace(context.Context, *QueryOption) (*Response, error)
func (*UnimplementedCloudIdeServiceServer) GetPodSpaceInfo ¶
func (*UnimplementedCloudIdeServiceServer) GetPodSpaceInfo(context.Context, *QueryOption) (*WorkspaceRunningInfo, error)
func (*UnimplementedCloudIdeServiceServer) GetPodSpaceStatus ¶
func (*UnimplementedCloudIdeServiceServer) GetPodSpaceStatus(context.Context, *QueryOption) (*WorkspaceStatus, error)
func (*UnimplementedCloudIdeServiceServer) StartSpace ¶
func (*UnimplementedCloudIdeServiceServer) StartSpace(context.Context, *WorkspaceInfo) (*WorkspaceRunningInfo, error)
func (*UnimplementedCloudIdeServiceServer) StopSpace ¶
func (*UnimplementedCloudIdeServiceServer) StopSpace(context.Context, *QueryOption) (*Response, error)
type WorkspaceInfo ¶
type WorkspaceInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,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"` VolumeMountPath string `protobuf:"bytes,5,opt,name=volumeMountPath,proto3" json:"volumeMountPath,omitempty"` ResourceLimit *ResourceLimit `protobuf:"bytes,6,opt,name=resourceLimit,proto3" json:"resourceLimit,omitempty"` // contains filtered or unexported fields }
工作空间信息
func (*WorkspaceInfo) Descriptor
deprecated
func (*WorkspaceInfo) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceInfo.ProtoReflect.Descriptor instead.
func (*WorkspaceInfo) GetImage ¶
func (x *WorkspaceInfo) GetImage() string
func (*WorkspaceInfo) GetName ¶
func (x *WorkspaceInfo) GetName() string
func (*WorkspaceInfo) GetNamespace ¶
func (x *WorkspaceInfo) GetNamespace() string
func (*WorkspaceInfo) GetPort ¶
func (x *WorkspaceInfo) GetPort() int32
func (*WorkspaceInfo) GetResourceLimit ¶
func (x *WorkspaceInfo) GetResourceLimit() *ResourceLimit
func (*WorkspaceInfo) GetVolumeMountPath ¶
func (x *WorkspaceInfo) GetVolumeMountPath() string
func (*WorkspaceInfo) ProtoMessage ¶
func (*WorkspaceInfo) ProtoMessage()
func (*WorkspaceInfo) ProtoReflect ¶
func (x *WorkspaceInfo) ProtoReflect() protoreflect.Message
func (*WorkspaceInfo) Reset ¶
func (x *WorkspaceInfo) Reset()
func (*WorkspaceInfo) String ¶
func (x *WorkspaceInfo) String() string
type WorkspaceRunningInfo ¶
type WorkspaceRunningInfo struct { NodeName string `protobuf:"bytes,1,opt,name=nodeName,proto3" json:"nodeName,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
工作空间运行信息
func (*WorkspaceRunningInfo) Descriptor
deprecated
func (*WorkspaceRunningInfo) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceRunningInfo.ProtoReflect.Descriptor instead.
func (*WorkspaceRunningInfo) GetIp ¶
func (x *WorkspaceRunningInfo) GetIp() string
func (*WorkspaceRunningInfo) GetNodeName ¶
func (x *WorkspaceRunningInfo) GetNodeName() string
func (*WorkspaceRunningInfo) GetPort ¶
func (x *WorkspaceRunningInfo) GetPort() int32
func (*WorkspaceRunningInfo) ProtoMessage ¶
func (*WorkspaceRunningInfo) ProtoMessage()
func (*WorkspaceRunningInfo) ProtoReflect ¶
func (x *WorkspaceRunningInfo) ProtoReflect() protoreflect.Message
func (*WorkspaceRunningInfo) Reset ¶
func (x *WorkspaceRunningInfo) Reset()
func (*WorkspaceRunningInfo) String ¶
func (x *WorkspaceRunningInfo) String() string
type WorkspaceStatus ¶
type WorkspaceStatus struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
工作空间的状态
func (*WorkspaceStatus) Descriptor
deprecated
func (*WorkspaceStatus) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceStatus.ProtoReflect.Descriptor instead.
func (*WorkspaceStatus) GetMessage ¶
func (x *WorkspaceStatus) GetMessage() string
func (*WorkspaceStatus) GetStatus ¶
func (x *WorkspaceStatus) GetStatus() int32
func (*WorkspaceStatus) ProtoMessage ¶
func (*WorkspaceStatus) ProtoMessage()
func (*WorkspaceStatus) ProtoReflect ¶
func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message
func (*WorkspaceStatus) Reset ¶
func (x *WorkspaceStatus) Reset()
func (*WorkspaceStatus) String ¶
func (x *WorkspaceStatus) String() string