Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=edge.kubegems.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Certs
- type EdgeCluster
- type EdgeClusterList
- type EdgeClusterSpec
- type EdgeClusterStatus
- type EdgeHub
- type EdgeHubList
- type EdgeHubSpec
- type EdgeHubStatus
- type EdgePhase
- type ManufactureStatus
- type RegisterInfo
- type RegisterStatus
- type TunnelStatus
Constants ¶
const ( EdgePhaseWaiting = "Waiting" EdgePhaseOnline = "Online" EdgePhaseOffline = "Offline" )
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: edge.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certs.
func (*Certs) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeHub.
func (*EdgeHub) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeHub) DeepCopyObject ¶
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 ManufactureStatus ¶
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.