Documentation ¶
Overview ¶
Package v1alpha1 is the internal version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "nodeinfo.volcano.sh", Version: "v1alpha1"} // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = GroupVersion
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 CPUInfo ¶
type CPUInfo struct { NUMANodeID int `json:"numa,omitempty"` SocketID int `json:"socket,omitempty"` CoreID int `json:"core,omitempty"` }
CPUInfo is the cpu topology detail
func (*CPUInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPUInfo.
func (*CPUInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Numatopo ¶
type Numatopo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the numa information of the worker node Spec NumatopoSpec `json:"spec,omitempty"` }
Numatopo is the Schema for the numatopoes API
func (*Numatopo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Numatopo.
func (*Numatopo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Numatopo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NumatopoList ¶
type NumatopoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Numatopo `json:"items"` }
NumatopoList contains a list of Numatopo
func (*NumatopoList) DeepCopy ¶
func (in *NumatopoList) DeepCopy() *NumatopoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NumatopoList.
func (*NumatopoList) DeepCopyInto ¶
func (in *NumatopoList) DeepCopyInto(out *NumatopoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NumatopoList) DeepCopyObject ¶
func (in *NumatopoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NumatopoSpec ¶
type NumatopoSpec struct { // Specifies the policy of the manager // +optional Policies map[PolicyName]string `json:"policies,omitempty"` // Specifies the reserved resource of the node // Key is resource name // +optional ResReserved map[string]string `json:"resReserved,omitempty"` // Specifies the numa info for the resource // Key is resource name // +optional NumaResMap map[string]ResourceInfo `json:"numares,omitempty"` // Specifies the cpu topology info // Key is cpu id // +optional CPUDetail map[string]CPUInfo `json:"cpuDetail,omitempty"` }
NumatopoSpec defines the desired state of Numatopo
func (*NumatopoSpec) DeepCopy ¶
func (in *NumatopoSpec) DeepCopy() *NumatopoSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NumatopoSpec.
func (*NumatopoSpec) DeepCopyInto ¶
func (in *NumatopoSpec) DeepCopyInto(out *NumatopoSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyName ¶
type PolicyName string
PolicyName is the policy name type
const ( // CPUManagerPolicy shows cpu manager policy type CPUManagerPolicy PolicyName = "CPUManagerPolicy" // TopologyManagerPolicy shows topology manager policy type TopologyManagerPolicy PolicyName = "TopologyManagerPolicy" )
type ResourceInfo ¶
type ResourceInfo struct { Allocatable string `json:"allocatable,omitempty"` Capacity int `json:"capacity,omitempty"` }
ResourceInfo is the sets about resource capacity and allocatable
func (*ResourceInfo) DeepCopy ¶
func (in *ResourceInfo) DeepCopy() *ResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfo.
func (*ResourceInfo) DeepCopyInto ¶
func (in *ResourceInfo) DeepCopyInto(out *ResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.