v1

package
v0.0.0-...-a0dc9d2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the cloud-ide v1 API group +kubebuilder:object:generate=true +groupName=cloud-ide.mangohow.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cloud-ide.mangohow.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type WorkSpace

type WorkSpace struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkSpaceSpec   `json:"spec,omitempty"`
	Status WorkSpaceStatus `json:"status,omitempty"`
}

WorkSpace is the Schema for the workspaces API

func (*WorkSpace) DeepCopy

func (in *WorkSpace) DeepCopy() *WorkSpace

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkSpace.

func (*WorkSpace) DeepCopyInto

func (in *WorkSpace) DeepCopyInto(out *WorkSpace)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkSpace) DeepCopyObject

func (in *WorkSpace) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkSpaceList

type WorkSpaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []WorkSpace `json:"items"`
}

WorkSpaceList contains a list of WorkSpace

func (*WorkSpaceList) DeepCopy

func (in *WorkSpaceList) DeepCopy() *WorkSpaceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkSpaceList.

func (*WorkSpaceList) DeepCopyInto

func (in *WorkSpaceList) DeepCopyInto(out *WorkSpaceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkSpaceList) DeepCopyObject

func (in *WorkSpaceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkSpaceOperation

type WorkSpaceOperation string
const (
	WorkSpaceStart WorkSpaceOperation = "Start"
	WorkSpaceStop                     = "Stop"
)

type WorkSpacePhase

type WorkSpacePhase string
const (
	WorkspacePhaseRunning WorkSpacePhase = "Running"
	WorkspacePhaseStopped                = "Stopped"
)

type WorkSpaceSpec

type WorkSpaceSpec struct {

	// Workspace machine specifications
	Cpu     string `json:"cpu,omitempty"`
	Memory  string `json:"memory,omitempty"`
	Storage string `json:"storage,omitempty"`

	// 硬件资源
	Hardware string `json:"hardware,omitempty"`

	// The image
	Image string `json:"image,omitempty"`

	// Exposed port
	Port int32 `json:"port,omitempty"`

	// Volume mount path
	MountPath string `json:"mountPath"`

	// The operation to do
	Operation WorkSpaceOperation `json:"operation,omitempty"`
}

WorkSpaceSpec defines the desired state of WorkSpace

func (*WorkSpaceSpec) DeepCopy

func (in *WorkSpaceSpec) DeepCopy() *WorkSpaceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkSpaceSpec.

func (*WorkSpaceSpec) DeepCopyInto

func (in *WorkSpaceSpec) DeepCopyInto(out *WorkSpaceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkSpaceStatus

type WorkSpaceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Phase WorkSpacePhase `json:"phase,omitempty"`
}

WorkSpaceStatus defines the observed state of WorkSpace

func (*WorkSpaceStatus) DeepCopy

func (in *WorkSpaceStatus) DeepCopy() *WorkSpaceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkSpaceStatus.

func (*WorkSpaceStatus) DeepCopyInto

func (in *WorkSpaceStatus) DeepCopyInto(out *WorkSpaceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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