v1beta1

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=edge.kubegems.io

Index

Constants

View Source
const (
	EdgePhaseWaiting = "Waiting"
	EdgePhaseOnline  = "Online"
	EdgePhaseOffline = "Offline"
)
View Source
const EdgeTaskFinalizer = "edgetask.finalizers.edge.kubegems.io"

Variables

View Source
var (
	GroupVersion = SchemeGroupVersion
	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: edge.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Certs

type Certs struct {
	CA   []byte `json:"ca,omitempty"`
	Cert []byte `json:"cert,omitempty"`
	Key  []byte `json:"key,omitempty"`
}

func (*Certs) DeepCopy

func (in *Certs) DeepCopy() *Certs

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

func (*Certs) DeepCopyInto

func (in *Certs) DeepCopyInto(out *Certs)

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

type EdgeCluster

type EdgeCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EdgeClusterSpec   `json:"spec,omitempty"`
	Status            EdgeClusterStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="Status" +kubebuilder:printcolumn:name="RegisterAddress",type="string",JSONPath=".spec.register.address",description="Hub address for register" +kubebuilder:printcolumn:name="Token",type="string",JSONPath=".spec.register.bootstrapToken",description="Token used for register" +kubebuilder:printcolumn:name="LastOnline",type="string",JSONPath=".status.tunnel.lastOnlineTimestamp",description="CreationTimestamp of the bundle"

func (*EdgeCluster) DeepCopy

func (in *EdgeCluster) DeepCopy() *EdgeCluster

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

func (*EdgeCluster) DeepCopyInto

func (in *EdgeCluster) DeepCopyInto(out *EdgeCluster)

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

func (*EdgeCluster) DeepCopyObject

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

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

type EdgeClusterList

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

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced

func (*EdgeClusterList) DeepCopy

func (in *EdgeClusterList) DeepCopy() *EdgeClusterList

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

func (*EdgeClusterList) DeepCopyInto

func (in *EdgeClusterList) DeepCopyInto(out *EdgeClusterList)

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

func (*EdgeClusterList) DeepCopyObject

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

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

type EdgeClusterSpec

type EdgeClusterSpec struct {
	Register RegisterInfo `json:"register,omitempty"`
}

func (*EdgeClusterSpec) DeepCopy

func (in *EdgeClusterSpec) DeepCopy() *EdgeClusterSpec

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

func (*EdgeClusterSpec) DeepCopyInto

func (in *EdgeClusterSpec) DeepCopyInto(out *EdgeClusterSpec)

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

type EdgeClusterStatus

type EdgeClusterStatus struct {
	Phase       EdgePhase         `json:"phase,omitempty"`
	Register    RegisterStatus    `json:"register,omitempty"`
	Tunnel      TunnelStatus      `json:"tunnel,omitempty"`
	Manufacture ManufactureStatus `json:"manufacture,omitempty"`
}

func (*EdgeClusterStatus) DeepCopy

func (in *EdgeClusterStatus) DeepCopy() *EdgeClusterStatus

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

func (*EdgeClusterStatus) DeepCopyInto

func (in *EdgeClusterStatus) DeepCopyInto(out *EdgeClusterStatus)

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

type EdgeHub

type EdgeHub struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EdgeHubSpec   `json:"spec,omitempty"`
	Status            EdgeHubStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="Status" +kubebuilder:printcolumn:name="Address",type="string",JSONPath=".status.address",description="Hub address for register" +kubebuilder:printcolumn:name="LastOnline",type="string",JSONPath=".status.tunnel.lastOnlineTimestamp",description="CreationTimestamp of the bundle"

func (*EdgeHub) DeepCopy

func (in *EdgeHub) DeepCopy() *EdgeHub

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

func (*EdgeHub) DeepCopyInto

func (in *EdgeHub) DeepCopyInto(out *EdgeHub)

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

func (*EdgeHub) DeepCopyObject

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

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

type EdgeHubList

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

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced

func (*EdgeHubList) DeepCopy

func (in *EdgeHubList) DeepCopy() *EdgeHubList

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

func (*EdgeHubList) DeepCopyInto

func (in *EdgeHubList) DeepCopyInto(out *EdgeHubList)

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

func (*EdgeHubList) DeepCopyObject

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

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

type EdgeHubSpec

type EdgeHubSpec struct{}

func (*EdgeHubSpec) DeepCopy

func (in *EdgeHubSpec) DeepCopy() *EdgeHubSpec

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

func (*EdgeHubSpec) DeepCopyInto

func (in *EdgeHubSpec) DeepCopyInto(out *EdgeHubSpec)

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

type EdgeHubStatus

type EdgeHubStatus struct {
	Phase       EdgePhase         `json:"phase,omitempty"`
	Address     string            `json:"address,omitempty"` // address of the hub
	Tunnel      TunnelStatus      `json:"tunnel,omitempty"`
	Manufacture ManufactureStatus `json:"manufacture,omitempty"`
}

func (*EdgeHubStatus) DeepCopy

func (in *EdgeHubStatus) DeepCopy() *EdgeHubStatus

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

func (*EdgeHubStatus) DeepCopyInto

func (in *EdgeHubStatus) DeepCopyInto(out *EdgeHubStatus)

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

type EdgePhase

type EdgePhase string

type EdgeTask added in v1.23.8

type EdgeTask struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EdgeTaskSpec   `json:"spec,omitempty"`
	Status            EdgeTaskStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="Status"

func (*EdgeTask) DeepCopy added in v1.23.8

func (in *EdgeTask) DeepCopy() *EdgeTask

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

func (*EdgeTask) DeepCopyInto added in v1.23.8

func (in *EdgeTask) DeepCopyInto(out *EdgeTask)

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

func (*EdgeTask) DeepCopyObject added in v1.23.8

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

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

type EdgeTaskCondition added in v1.23.8

type EdgeTaskCondition struct {
	Type               EdgeTaskConditionType  `json:"type,omitempty"`
	Status             corev1.ConditionStatus `json:"status,omitempty"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime,omitempty"`
	LastUpdateTime     metav1.Time            `json:"lastUpdateTime,omitempty"`
	Message            string                 `json:"message,omitempty"`
	Reason             string                 `json:"reason,omitempty"`
}

func (*EdgeTaskCondition) DeepCopy added in v1.23.8

func (in *EdgeTaskCondition) DeepCopy() *EdgeTaskCondition

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

func (*EdgeTaskCondition) DeepCopyInto added in v1.23.8

func (in *EdgeTaskCondition) DeepCopyInto(out *EdgeTaskCondition)

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

type EdgeTaskConditionType added in v1.23.8

type EdgeTaskConditionType string
const (
	EdgeTaskConditionTypePrepared    EdgeTaskConditionType = "Prepared"    // prepare for the resource
	EdgeTaskConditionTypeOnline      EdgeTaskConditionType = "Online"      // edge cluster online
	EdgeTaskConditionTypeDistributed EdgeTaskConditionType = "Distributed" // distributed the resource
	EdgeTaskConditionTypeAvailable   EdgeTaskConditionType = "Available"   // resources is available
	EdgeTaskConditionTypeCleaned     EdgeTaskConditionType = "Cleaned"     // resources cleanup
)

type EdgeTaskList added in v1.23.8

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

+kubebuilder:object:root=true

func (*EdgeTaskList) DeepCopy added in v1.23.8

func (in *EdgeTaskList) DeepCopy() *EdgeTaskList

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

func (*EdgeTaskList) DeepCopyInto added in v1.23.8

func (in *EdgeTaskList) DeepCopyInto(out *EdgeTaskList)

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

func (*EdgeTaskList) DeepCopyObject added in v1.23.8

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

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

type EdgeTaskPhase added in v1.23.8

type EdgeTaskPhase string
const (
	EdgeTaskPhaseWaiting EdgeTaskPhase = "Waiting"
	EdgeTaskPhaseRunning EdgeTaskPhase = "Running"
	EdgeTaskPhaseFailed  EdgeTaskPhase = "Failed"
)

type EdgeTaskPodStatus added in v1.23.8

type EdgeTaskPodStatus struct {
	Name   string                  `json:"name,omitempty"`
	Status corev1.PodStatus        `json:"status,omitempty"`
	Events []EdgeTaskResourceEvent `json:"events,omitempty"` // current resource events
}

func (*EdgeTaskPodStatus) DeepCopy added in v1.23.8

func (in *EdgeTaskPodStatus) DeepCopy() *EdgeTaskPodStatus

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

func (*EdgeTaskPodStatus) DeepCopyInto added in v1.23.8

func (in *EdgeTaskPodStatus) DeepCopyInto(out *EdgeTaskPodStatus)

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

type EdgeTaskResourceEvent added in v1.23.8

type EdgeTaskResourceEvent struct {
	Type          string      `json:"type,omitempty"`
	Reason        string      `json:"reason,omitempty"`
	Message       string      `json:"message,omitempty"`
	Count         int32       `json:"count,omitempty"`
	LastTimestamp metav1.Time `json:"lastTimestamp,omitempty"`
}

func (*EdgeTaskResourceEvent) DeepCopy added in v1.23.8

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

func (*EdgeTaskResourceEvent) DeepCopyInto added in v1.23.8

func (in *EdgeTaskResourceEvent) DeepCopyInto(out *EdgeTaskResourceEvent)

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

type EdgeTaskResourceStatus added in v1.23.8

type EdgeTaskResourceStatus struct {
	APIVersion string                  `json:"apiVersion,omitempty"`
	Kind       string                  `json:"kind,omitempty"`
	Name       string                  `json:"name,omitempty"`
	Namespace  string                  `json:"namespace,omitempty"`
	Images     []string                `json:"images,omitempty"` // current workload images if exists
	Exists     bool                    `json:"exists,omitempty"`
	Ready      bool                    `json:"ready,omitempty"`
	Message    string                  `json:"message,omitempty"`
	Events     []EdgeTaskResourceEvent `json:"events,omitempty"`
	Status     runtime.RawExtension    `json:"status,omitempty"`
	PodsStatus []EdgeTaskPodStatus     `json:"podsStatus,omitempty"`
}

func (*EdgeTaskResourceStatus) DeepCopy added in v1.23.8

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

func (*EdgeTaskResourceStatus) DeepCopyInto added in v1.23.8

func (in *EdgeTaskResourceStatus) DeepCopyInto(out *EdgeTaskResourceStatus)

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

type EdgeTaskSpec added in v1.23.8

type EdgeTaskSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	EdgeClusterName string `json:"edgeClusterName,omitempty"`
	// +kubebuilder:pruning:PreserveUnknownFields
	Resources []runtime.RawExtension `json:"resources,omitempty"`
}

func (*EdgeTaskSpec) DeepCopy added in v1.23.8

func (in *EdgeTaskSpec) DeepCopy() *EdgeTaskSpec

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

func (*EdgeTaskSpec) DeepCopyInto added in v1.23.8

func (in *EdgeTaskSpec) DeepCopyInto(out *EdgeTaskSpec)

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

type EdgeTaskStatus added in v1.23.8

type EdgeTaskStatus struct {
	ObservedGeneration int64                    `json:"observedGeneration,omitempty"`
	Phase              EdgeTaskPhase            `json:"phase,omitempty"`
	Conditions         []EdgeTaskCondition      `json:"conditions,omitempty"`
	ResourcesHash      string                   `json:"resourcesHash,omitempty"` // observed resources hash
	ResourcesStatus    []EdgeTaskResourceStatus `json:"resourcesStatus,omitempty"`
}

func (*EdgeTaskStatus) DeepCopy added in v1.23.8

func (in *EdgeTaskStatus) DeepCopy() *EdgeTaskStatus

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

func (*EdgeTaskStatus) DeepCopyInto added in v1.23.8

func (in *EdgeTaskStatus) DeepCopyInto(out *EdgeTaskStatus)

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

type ManufactureStatus

type ManufactureStatus map[string]string

func (ManufactureStatus) DeepCopy

func (in ManufactureStatus) DeepCopy() ManufactureStatus

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

func (ManufactureStatus) DeepCopyInto

func (in ManufactureStatus) DeepCopyInto(out *ManufactureStatus)

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

type RegisterInfo

type RegisterInfo struct {
	HubName        string       `json:"hubName,omitempty"`        // register on hub
	ExpiresAt      *metav1.Time `json:"expiresAt,omitempty"`      // edge certs expires at,default 1 year
	Image          string       `json:"image,omitempty"`          // edge certs
	BootstrapToken string       `json:"bootstrapToken,omitempty"` // edge token
	Certs          *Certs       `json:"certs,omitempty"`          // pre generated certs
}

func (*RegisterInfo) DeepCopy

func (in *RegisterInfo) DeepCopy() *RegisterInfo

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

func (*RegisterInfo) DeepCopyInto

func (in *RegisterInfo) DeepCopyInto(out *RegisterInfo)

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

type RegisterStatus

type RegisterStatus struct {
	LastRegister      *metav1.Time `json:"lastRegister,omitempty"`
	LastRegisterToken string       `json:"lastRegisterToken,omitempty"`
	URL               string       `json:"url,omitempty"`
}

func (*RegisterStatus) DeepCopy

func (in *RegisterStatus) DeepCopy() *RegisterStatus

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

func (*RegisterStatus) DeepCopyInto

func (in *RegisterStatus) DeepCopyInto(out *RegisterStatus)

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

type TunnelStatus

type TunnelStatus struct {
	Connected              bool         `json:"connected,omitempty"`
	LastOnlineTimestamp    *metav1.Time `json:"lastOnlineTimestamp,omitempty"`
	LastOfflineTimestamp   *metav1.Time `json:"lastOfflineTimestamp,omitempty"`
	LastHeartBeatTimestamp *metav1.Time `json:"lastHeartBeatTimestamp,omitempty"`
}

func (*TunnelStatus) DeepCopy

func (in *TunnelStatus) DeepCopy() *TunnelStatus

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

func (*TunnelStatus) DeepCopyInto

func (in *TunnelStatus) DeepCopyInto(out *TunnelStatus)

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