Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func Convert_edge_EdgeDeviceList_To_v1alpha1_EdgeDeviceList(in *edge.EdgeDeviceList, out *EdgeDeviceList, s conversion.Scope) error
- func Convert_edge_EdgeDeviceSpec_To_v1alpha1_EdgeDeviceSpec(in *edge.EdgeDeviceSpec, out *EdgeDeviceSpec, s conversion.Scope) error
- func Convert_edge_EdgeDevice_To_v1alpha1_EdgeDevice(in *edge.EdgeDevice, out *EdgeDevice, s conversion.Scope) error
- func Convert_edge_EdgeNode_To_v1alpha1_EdgeNode(in *edge.EdgeNode, out *EdgeNode, s conversion.Scope) error
- func Convert_edge_Workload_To_v1alpha1_Workload(in *edge.Workload, out *Workload, s conversion.Scope) error
- func Convert_v1alpha1_EdgeDeviceList_To_edge_EdgeDeviceList(in *EdgeDeviceList, out *edge.EdgeDeviceList, s conversion.Scope) error
- func Convert_v1alpha1_EdgeDeviceSpec_To_edge_EdgeDeviceSpec(in *EdgeDeviceSpec, out *edge.EdgeDeviceSpec, s conversion.Scope) error
- func Convert_v1alpha1_EdgeDevice_To_edge_EdgeDevice(in *EdgeDevice, out *edge.EdgeDevice, s conversion.Scope) error
- func Convert_v1alpha1_EdgeNode_To_edge_EdgeNode(in *EdgeNode, out *edge.EdgeNode, s conversion.Scope) error
- func Convert_v1alpha1_Workload_To_edge_Workload(in *Workload, out *edge.Workload, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_EdgeDeviceSpec(obj *EdgeDeviceSpec)
- func SetObjectDefaults_EdgeDevice(in *EdgeDevice)
- func SetObjectDefaults_EdgeDeviceList(in *EdgeDeviceList)
- type EdgeDevice
- type EdgeDeviceList
- type EdgeDeviceSpec
- type EdgeDeviceStatus
- type EdgeNode
- type EdgeNodeStatus
- type EdgeNodes
- type Workload
Constants ¶
const ( EdgeDeviceStatusUp = EdgeDeviceStatus("up") EdgeDeviceStatusDegraded = EdgeDeviceStatus("degraded") EdgeDeviceStatusDown = EdgeDeviceStatus("down") )
const ( EdgeNodeStatusOnline = EdgeNodeStatus("online") EdgeNodeStatusOffline = EdgeNodeStatus("offline") )
const GroupName = "org.redhat.edgeapi"
GroupName is the group name used in this package
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. // SchemeBuilder is the scheme builder with scheme init functions to run for this API package SchemeBuilder runtime.SchemeBuilder // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_edge_EdgeDeviceList_To_v1alpha1_EdgeDeviceList ¶
func Convert_edge_EdgeDeviceList_To_v1alpha1_EdgeDeviceList(in *edge.EdgeDeviceList, out *EdgeDeviceList, s conversion.Scope) error
Convert_edge_EdgeDeviceList_To_v1alpha1_EdgeDeviceList is an autogenerated conversion function.
func Convert_edge_EdgeDeviceSpec_To_v1alpha1_EdgeDeviceSpec ¶
func Convert_edge_EdgeDeviceSpec_To_v1alpha1_EdgeDeviceSpec(in *edge.EdgeDeviceSpec, out *EdgeDeviceSpec, s conversion.Scope) error
Convert_edge_EdgeDeviceSpec_To_v1alpha1_EdgeDeviceSpec is an autogenerated conversion function.
func Convert_edge_EdgeDevice_To_v1alpha1_EdgeDevice ¶
func Convert_edge_EdgeDevice_To_v1alpha1_EdgeDevice(in *edge.EdgeDevice, out *EdgeDevice, s conversion.Scope) error
Convert_edge_EdgeDevice_To_v1alpha1_EdgeDevice is an autogenerated conversion function.
func Convert_edge_EdgeNode_To_v1alpha1_EdgeNode ¶
func Convert_edge_EdgeNode_To_v1alpha1_EdgeNode(in *edge.EdgeNode, out *EdgeNode, s conversion.Scope) error
Convert_edge_EdgeNode_To_v1alpha1_EdgeNode is an autogenerated conversion function.
func Convert_edge_Workload_To_v1alpha1_Workload ¶
func Convert_edge_Workload_To_v1alpha1_Workload(in *edge.Workload, out *Workload, s conversion.Scope) error
Convert_edge_Workload_To_v1alpha1_Workload is an autogenerated conversion function.
func Convert_v1alpha1_EdgeDeviceList_To_edge_EdgeDeviceList ¶
func Convert_v1alpha1_EdgeDeviceList_To_edge_EdgeDeviceList(in *EdgeDeviceList, out *edge.EdgeDeviceList, s conversion.Scope) error
Convert_v1alpha1_EdgeDeviceList_To_edge_EdgeDeviceList is an autogenerated conversion function.
func Convert_v1alpha1_EdgeDeviceSpec_To_edge_EdgeDeviceSpec ¶
func Convert_v1alpha1_EdgeDeviceSpec_To_edge_EdgeDeviceSpec(in *EdgeDeviceSpec, out *edge.EdgeDeviceSpec, s conversion.Scope) error
Convert_v1alpha1_EdgeDeviceSpec_To_edge_EdgeDeviceSpec is an autogenerated conversion function.
func Convert_v1alpha1_EdgeDevice_To_edge_EdgeDevice ¶
func Convert_v1alpha1_EdgeDevice_To_edge_EdgeDevice(in *EdgeDevice, out *edge.EdgeDevice, s conversion.Scope) error
Convert_v1alpha1_EdgeDevice_To_edge_EdgeDevice is an autogenerated conversion function.
func Convert_v1alpha1_EdgeNode_To_edge_EdgeNode ¶
func Convert_v1alpha1_EdgeNode_To_edge_EdgeNode(in *EdgeNode, out *edge.EdgeNode, s conversion.Scope) error
Convert_v1alpha1_EdgeNode_To_edge_EdgeNode is an autogenerated conversion function.
func Convert_v1alpha1_Workload_To_edge_Workload ¶
func Convert_v1alpha1_Workload_To_edge_Workload(in *Workload, out *edge.Workload, s conversion.Scope) error
Convert_v1alpha1_Workload_To_edge_Workload is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_EdgeDeviceSpec ¶
func SetDefaults_EdgeDeviceSpec(obj *EdgeDeviceSpec)
SetDefaults_EdgeDeviceSpec sets defaults for EdgeDevice spec
func SetObjectDefaults_EdgeDevice ¶
func SetObjectDefaults_EdgeDevice(in *EdgeDevice)
func SetObjectDefaults_EdgeDeviceList ¶
func SetObjectDefaults_EdgeDeviceList(in *EdgeDeviceList)
Types ¶
type EdgeDevice ¶
type EdgeDevice struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EdgeDeviceSpec `json:"spec,omitempty"` Status EdgeDeviceStatus `json:"status,omitempty"` }
func (*EdgeDevice) DeepCopy ¶
func (in *EdgeDevice) DeepCopy() *EdgeDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeDevice.
func (*EdgeDevice) DeepCopyInto ¶
func (in *EdgeDevice) DeepCopyInto(out *EdgeDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeDevice) DeepCopyObject ¶
func (in *EdgeDevice) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EdgeDeviceList ¶
type EdgeDeviceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EdgeDevice `json:"items"` }
func (*EdgeDeviceList) DeepCopy ¶
func (in *EdgeDeviceList) DeepCopy() *EdgeDeviceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeDeviceList.
func (*EdgeDeviceList) DeepCopyInto ¶
func (in *EdgeDeviceList) DeepCopyInto(out *EdgeDeviceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeDeviceList) DeepCopyObject ¶
func (in *EdgeDeviceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EdgeDeviceSpec ¶
type EdgeDeviceSpec struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` Nodes EdgeNodes `json:"nodes,omitempty"` }
func (*EdgeDeviceSpec) DeepCopy ¶
func (in *EdgeDeviceSpec) DeepCopy() *EdgeDeviceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeDeviceSpec.
func (*EdgeDeviceSpec) DeepCopyInto ¶
func (in *EdgeDeviceSpec) DeepCopyInto(out *EdgeDeviceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeDeviceStatus ¶
type EdgeDeviceStatus string
type EdgeNode ¶
type EdgeNode struct { Name string `json:"name,omitempty"` Status EdgeNodeStatus `json:"status,omitempty"` LastSeenTimestamp string `json:"lastSeenTimestamp,omitempty"` Workloads []Workload `json:"workloads,omitempty"` }
func (*EdgeNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeNode.
func (*EdgeNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeNodeStatus ¶
type EdgeNodeStatus string
type EdgeNodes ¶
type EdgeNodes []EdgeNode
func (EdgeNodes) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeNodes.
func (EdgeNodes) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { Name string `json:"name,omitempty"` State string `json:"state,omitempty"` SubState string `json:"substate,omitempty"` }
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.