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: topology.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 NodeResourceTopology ¶
type NodeResourceTopology struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` TopologyPolicy []string `json:"topologyPolicies"` Zones ZoneMap `json:"zones"` }
NodeResourceTopology is a specification for a Foo resource
func (*NodeResourceTopology) DeepCopy ¶
func (in *NodeResourceTopology) DeepCopy() *NodeResourceTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopology.
func (*NodeResourceTopology) DeepCopyInto ¶
func (in *NodeResourceTopology) DeepCopyInto(out *NodeResourceTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourceTopology) DeepCopyObject ¶
func (in *NodeResourceTopology) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeResourceTopologyList ¶
type NodeResourceTopologyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []NodeResourceTopology `json:"items"` }
NodeResourceTopologyList is a list of NodeResourceTopology resources
func (*NodeResourceTopologyList) DeepCopy ¶
func (in *NodeResourceTopologyList) DeepCopy() *NodeResourceTopologyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopologyList.
func (*NodeResourceTopologyList) DeepCopyInto ¶
func (in *NodeResourceTopologyList) DeepCopyInto(out *NodeResourceTopologyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourceTopologyList) DeepCopyObject ¶
func (in *NodeResourceTopologyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceInfo ¶
type ResourceInfo struct { Allocatable string `json:"allocatable"` Capacity string `json:"capacity"` }
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.
type ResourceInfoMap ¶
type ResourceInfoMap map[string]ResourceInfo
func (ResourceInfoMap) DeepCopy ¶
func (in ResourceInfoMap) DeepCopy() ResourceInfoMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfoMap.
func (ResourceInfoMap) DeepCopyInto ¶
func (in ResourceInfoMap) DeepCopyInto(out *ResourceInfoMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Zone ¶
type Zone struct { Type string `json:"type"` Parent string `json:"parent,omitempty"` Costs map[string]int `json:"costs,omitempty"` Attributes map[string]int `json:"attributes,omitempty"` Resources ResourceInfoMap `json:"resources,omitempty"` }
Zone is the spec for a NodeResourceTopology resource
func (*Zone) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Zone.
func (*Zone) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.