Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: egpuController.GroupName, Version: "v1alpha1"}
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 EGPU ¶
type EGPU struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EGPUSpec `json:"spec"` Status EGPUStatus `json:"status"` }
EGPU is a specification for a EGPU resource
func (*EGPU) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPU.
func (*EGPU) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EGPU) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EGPUCapacity ¶
type EGPUCapacity struct { QGPUCore string `json:"QGPUCore"` QGPUMemory string `json:"QGPUMemory"` }
func (*EGPUCapacity) DeepCopy ¶
func (in *EGPUCapacity) DeepCopy() *EGPUCapacity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPUCapacity.
func (*EGPUCapacity) DeepCopyInto ¶
func (in *EGPUCapacity) DeepCopyInto(out *EGPUCapacity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EGPUList ¶
type EGPUList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []EGPU `json:"items"` }
EGPUList is a list of EGPU resources
func (*EGPUList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPUList.
func (*EGPUList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EGPUList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EGPUResource ¶
type EGPUResource struct {
Capacity EGPUCapacity `json:"capacity"`
}
func (*EGPUResource) DeepCopy ¶
func (in *EGPUResource) DeepCopy() *EGPUResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPUResource.
func (*EGPUResource) DeepCopyInto ¶
func (in *EGPUResource) DeepCopyInto(out *EGPUResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EGPUSpec ¶
type EGPUSpec struct { NodeName string `json:"nodeName"` GPU []string `json:"gpu"` Resources EGPUResource `json:"resources"` }
EGPUSpec is the spec for a EGPU resource
func (*EGPUSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPUSpec.
func (*EGPUSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EGPUStatus ¶
type EGPUStatus struct {
AvailableReplicas int32 `json:"availableReplicas"`
}
EGPUStatus is the status for a EGPU resource
func (*EGPUStatus) DeepCopy ¶
func (in *EGPUStatus) DeepCopy() *EGPUStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EGPUStatus.
func (*EGPUStatus) DeepCopyInto ¶
func (in *EGPUStatus) DeepCopyInto(out *EGPUStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.