Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the scheduling v1alpha1 API group +kubebuilder:object:generate=true +groupName=scheduling.liqo.io
Index ¶
- Variables
- func CreateNamespacedName(nodeName string) types.NamespacedName
- type SchedulingNode
- func (sn *SchedulingNode) CreateFromNode(node corev1.Node) error
- func (in *SchedulingNode) DeepCopy() *SchedulingNode
- func (in *SchedulingNode) DeepCopyInto(out *SchedulingNode)
- func (in *SchedulingNode) DeepCopyObject() runtime.Object
- func (sn *SchedulingNode) GetNodeName() string
- func (sn *SchedulingNode) InitSchedulingNode(name string)
- func (sn *SchedulingNode) UpdateFromNode(node corev1.Node) error
- type SchedulingNodeList
- type SchedulingNodeSpec
- type SchedulingNodeStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "scheduling.liqo.io", Version: "v1alpha1"} // 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 ¶
func CreateNamespacedName ¶
func CreateNamespacedName(nodeName string) types.NamespacedName
Types ¶
type SchedulingNode ¶
type SchedulingNode struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SchedulingNodeSpec `json:"spec,omitempty"` Status SchedulingNodeStatus `json:"status,omitempty"` }
SchedulingNode is the Schema for the schedulingnodes API
func (*SchedulingNode) CreateFromNode ¶
func (sn *SchedulingNode) CreateFromNode(node corev1.Node) error
func (*SchedulingNode) DeepCopy ¶
func (in *SchedulingNode) DeepCopy() *SchedulingNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingNode.
func (*SchedulingNode) DeepCopyInto ¶
func (in *SchedulingNode) DeepCopyInto(out *SchedulingNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulingNode) DeepCopyObject ¶
func (in *SchedulingNode) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SchedulingNode) GetNodeName ¶
func (sn *SchedulingNode) GetNodeName() string
func (*SchedulingNode) InitSchedulingNode ¶
func (sn *SchedulingNode) InitSchedulingNode(name string)
func (*SchedulingNode) UpdateFromNode ¶
func (sn *SchedulingNode) UpdateFromNode(node corev1.Node) error
type SchedulingNodeList ¶
type SchedulingNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SchedulingNode `json:"items"` }
SchedulingNodeList contains a list of SchedulingNode
func (*SchedulingNodeList) DeepCopy ¶
func (in *SchedulingNodeList) DeepCopy() *SchedulingNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingNodeList.
func (*SchedulingNodeList) DeepCopyInto ¶
func (in *SchedulingNodeList) DeepCopyInto(out *SchedulingNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulingNodeList) DeepCopyObject ¶
func (in *SchedulingNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulingNodeSpec ¶
type SchedulingNodeSpec struct { NodeName corev1.ResourceName `json:"nodeName"` NodeType corev1.ResourceName `json:"nodeType"` Images []corev1.ContainerImage `json:"images,omitempty"` LimitRange corev1.LimitRangeSpec `json:"limitRange,omitempty"` ResourceQuota corev1.ResourceQuotaSpec `json:"resourceQuota,omitempty"` Neighbors map[corev1.ResourceName]corev1.ResourceList `json:"neighbors,omitempty"` Properties map[corev1.ResourceName]string `json:"properties,omitempty"` Prices corev1.ResourceList `json:"prices,omitempty"` }
SchedulingNodeSpec defines the desired state of SchedulingNode
func (*SchedulingNodeSpec) DeepCopy ¶
func (in *SchedulingNodeSpec) DeepCopy() *SchedulingNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingNodeSpec.
func (*SchedulingNodeSpec) DeepCopyInto ¶
func (in *SchedulingNodeSpec) DeepCopyInto(out *SchedulingNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulingNodeStatus ¶
type SchedulingNodeStatus struct { }
SchedulingNodeStatus defines the observed state of SchedulingNode
func (*SchedulingNodeStatus) DeepCopy ¶
func (in *SchedulingNodeStatus) DeepCopy() *SchedulingNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingNodeStatus.
func (*SchedulingNodeStatus) DeepCopyInto ¶
func (in *SchedulingNodeStatus) DeepCopyInto(out *SchedulingNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.