v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the hotplug v1 API group +kubebuilder:object:generate=true +groupName=hotplug.kubecube.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hotplug.kubecube.io", 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 ComponentConfig

type ComponentConfig struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Status    string `json:"status,omitempty"`
	PkgName   string `json:"pkgName,omitempty"`
	Env       string `json:"env,omitempty"`
}

type DeployResult

type DeployResult struct {
	Name    string `json:"name,omitempty"`
	Status  string `json:"status,omitempty"`
	Result  string `json:"result,omitempty"`
	Message string `json:"message,omitempty"`
}

type Hotplug

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

	Spec   HotplugSpec   `json:"spec,omitempty"`
	Status HotplugStatus `json:"status,omitempty"`
}

Hotplug is the Schema for the hotplugs API +kubebuilder:resource:categories="kubecube",scope="Cluster" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Hotplug) DeepCopy

func (in *Hotplug) DeepCopy() *Hotplug

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

func (*Hotplug) DeepCopyInto

func (in *Hotplug) DeepCopyInto(out *Hotplug)

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

func (*Hotplug) DeepCopyObject

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

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

type HotplugList

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

HotplugList contains a list of Hotplug

func (*HotplugList) DeepCopy

func (in *HotplugList) DeepCopy() *HotplugList

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

func (*HotplugList) DeepCopyInto

func (in *HotplugList) DeepCopyInto(out *HotplugList)

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

func (*HotplugList) DeepCopyObject

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

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

type HotplugSpec

type HotplugSpec struct {
	Component []ComponentConfig `json:"component,omitempty"`
}

HotplugSpec defines the desired state of Hotplug

func (*HotplugSpec) DeepCopy

func (in *HotplugSpec) DeepCopy() *HotplugSpec

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

func (*HotplugSpec) DeepCopyInto

func (in *HotplugSpec) DeepCopyInto(out *HotplugSpec)

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

type HotplugStatus

type HotplugStatus struct {
	Phase   string          `json:"phase,omitempty"`
	Results []*DeployResult `json:"results,omitempty"`
}

HotplugStatus defines the observed state of Hotplug

func (*HotplugStatus) DeepCopy

func (in *HotplugStatus) DeepCopy() *HotplugStatus

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

func (*HotplugStatus) DeepCopyInto

func (in *HotplugStatus) DeepCopyInto(out *HotplugStatus)

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