v1

package
v0.0.0-...-b9d6e19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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

View Source
const (
	WorkspacePhaseRunning  WorkSpacePhase = "Running"
	WorkspacePhaseStaring                 = "Starting"
	WorkspacePhaseStopping                = "Stopping"
	WorkspacePhaseStopped                 = "Stopped"
)

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 WorkSpacePhase

type WorkSpacePhase string

type WorkSpaceSpec

type WorkSpaceSpec struct {

	// user id
	// +kubebuilder:validation:MinLength=6
	// +kubebuilder:validation:MaxLength=24
	UID string `json:"uid,omitempty"`

	// space id
	// +kubebuilder:validation:MinLength=6
	// +kubebuilder:validation:MaxLength=24
	SID string `json:"sid,omitempty"`

	// resource limit cpu
	Cpu string `json:"cpu,omitempty"`

	// resource limit memory
	Memory string `json:"memory,omitempty"`

	// resource limit storage
	Storage string `json:"storage,omitempty"`

	// hardware resource description
	Hardware string `json:"hardware,omitempty"`

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

	// Exposed port
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=1024
	Port int32 `json:"port,omitempty"`

	// Volume mount path
	// +kubebuilder:validation:Pattern=""
	MountPath string `json:"mountPath"`

	// git repository to clone
	GitRepository string `json:"gitRepository,omitempty"`

	// The command can be "Start", "Stop" or ""
	Command WorkspaceCommand `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
	// +kubebuilder:default="Created"
	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.

type WorkspaceCommand

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

Jump to

Keyboard shortcuts

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