v1alpha1

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 15

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: topology.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AttributeInfo

type AttributeInfo struct {
	Name  string `json:"name" protobuf:"bytes,1,opt,name=name"`
	Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

AttributeInfo contains one attribute of a Zone. +protobuf=true

func (*AttributeInfo) DeepCopy

func (in *AttributeInfo) DeepCopy() *AttributeInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttributeInfo.

func (*AttributeInfo) DeepCopyInto

func (in *AttributeInfo) DeepCopyInto(out *AttributeInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttributeInfo) Descriptor added in v0.0.10

func (*AttributeInfo) Descriptor() ([]byte, []int)

func (*AttributeInfo) Marshal added in v0.0.10

func (m *AttributeInfo) Marshal() (dAtA []byte, err error)

func (*AttributeInfo) MarshalTo added in v0.0.10

func (m *AttributeInfo) MarshalTo(dAtA []byte) (int, error)

func (*AttributeInfo) MarshalToSizedBuffer added in v0.0.10

func (m *AttributeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AttributeInfo) ProtoMessage added in v0.0.10

func (*AttributeInfo) ProtoMessage()

func (*AttributeInfo) Reset added in v0.0.10

func (m *AttributeInfo) Reset()

func (*AttributeInfo) Size added in v0.0.10

func (m *AttributeInfo) Size() (n int)

func (*AttributeInfo) String added in v0.0.10

func (this *AttributeInfo) String() string

func (*AttributeInfo) Unmarshal added in v0.0.10

func (m *AttributeInfo) Unmarshal(dAtA []byte) error

func (*AttributeInfo) XXX_DiscardUnknown added in v0.0.10

func (m *AttributeInfo) XXX_DiscardUnknown()

func (*AttributeInfo) XXX_Marshal added in v0.0.10

func (m *AttributeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AttributeInfo) XXX_Merge added in v0.0.10

func (m *AttributeInfo) XXX_Merge(src proto.Message)

func (*AttributeInfo) XXX_Size added in v0.0.10

func (m *AttributeInfo) XXX_Size() int

func (*AttributeInfo) XXX_Unmarshal added in v0.0.10

func (m *AttributeInfo) XXX_Unmarshal(b []byte) error

type AttributeList

type AttributeList []AttributeInfo

AttributeList contains an array of AttributeInfo objects. +protobuf=true

func (AttributeList) DeepCopy

func (in AttributeList) DeepCopy() AttributeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttributeList.

func (AttributeList) DeepCopyInto

func (in AttributeList) DeepCopyInto(out *AttributeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CostInfo

type CostInfo struct {
	Name  string `json:"name" protobuf:"bytes,1,opt,name=name"`
	Value int64  `json:"value" protobuf:"varint,2,opt,name=value"`
}

CostInfo describes the cost (or distance) between two Zones. +protobuf=true

func (*CostInfo) DeepCopy

func (in *CostInfo) DeepCopy() *CostInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostInfo.

func (*CostInfo) DeepCopyInto

func (in *CostInfo) DeepCopyInto(out *CostInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CostInfo) Descriptor added in v0.0.10

func (*CostInfo) Descriptor() ([]byte, []int)

func (*CostInfo) Marshal added in v0.0.10

func (m *CostInfo) Marshal() (dAtA []byte, err error)

func (*CostInfo) MarshalTo added in v0.0.10

func (m *CostInfo) MarshalTo(dAtA []byte) (int, error)

func (*CostInfo) MarshalToSizedBuffer added in v0.0.10

func (m *CostInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CostInfo) ProtoMessage added in v0.0.10

func (*CostInfo) ProtoMessage()

func (*CostInfo) Reset added in v0.0.10

func (m *CostInfo) Reset()

func (*CostInfo) Size added in v0.0.10

func (m *CostInfo) Size() (n int)

func (*CostInfo) String added in v0.0.10

func (this *CostInfo) String() string

func (*CostInfo) Unmarshal added in v0.0.10

func (m *CostInfo) Unmarshal(dAtA []byte) error

func (*CostInfo) XXX_DiscardUnknown added in v0.0.10

func (m *CostInfo) XXX_DiscardUnknown()

func (*CostInfo) XXX_Marshal added in v0.0.10

func (m *CostInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CostInfo) XXX_Merge added in v0.0.10

func (m *CostInfo) XXX_Merge(src proto.Message)

func (*CostInfo) XXX_Size added in v0.0.10

func (m *CostInfo) XXX_Size() int

func (*CostInfo) XXX_Unmarshal added in v0.0.10

func (m *CostInfo) XXX_Unmarshal(b []byte) error

type CostList

type CostList []CostInfo

CostList contains an array of CostInfo objects. +protobuf=true

func (CostList) DeepCopy

func (in CostList) DeepCopy() CostList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CostList.

func (CostList) DeepCopyInto

func (in CostList) DeepCopyInto(out *CostList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeResourceTopology

type NodeResourceTopology struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	TopologyPolicies []string `json:"topologyPolicies"`
	Zones            ZoneList `json:"zones"`
}

NodeResourceTopology describes node resources and their topology.

func (*NodeResourceTopology) DeepCopy

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

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 {
	// Name of the resource.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Capacity of the resource, corresponding to capacity in node status, i.e.
	// total amount of this resource that the node has.
	Capacity resource.Quantity `json:"capacity" protobuf:"bytes,2,opt,name=capacity"`
	// Allocatable quantity of the resource, corresponding to allocatable in
	// node status, i.e. total amount of this resource available to be used by
	// pods.
	Allocatable resource.Quantity `json:"allocatable" protobuf:"bytes,3,opt,name=allocatable"`
	// Available is the amount of this resource currently available for new (to
	// be scheduled) pods, i.e. Allocatable minus the resources reserved by
	// currently running pods.
	Available resource.Quantity `json:"available" protobuf:"bytes,4,opt,name=available"`
}

ResourceInfo contains information about one resource type. +protobuf=true

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.

func (*ResourceInfo) Descriptor added in v0.0.10

func (*ResourceInfo) Descriptor() ([]byte, []int)

func (*ResourceInfo) Marshal added in v0.0.10

func (m *ResourceInfo) Marshal() (dAtA []byte, err error)

func (*ResourceInfo) MarshalTo added in v0.0.10

func (m *ResourceInfo) MarshalTo(dAtA []byte) (int, error)

func (*ResourceInfo) MarshalToSizedBuffer added in v0.0.10

func (m *ResourceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceInfo) ProtoMessage added in v0.0.10

func (*ResourceInfo) ProtoMessage()

func (*ResourceInfo) Reset added in v0.0.10

func (m *ResourceInfo) Reset()

func (*ResourceInfo) Size added in v0.0.10

func (m *ResourceInfo) Size() (n int)

func (*ResourceInfo) String added in v0.0.10

func (this *ResourceInfo) String() string

func (*ResourceInfo) Unmarshal added in v0.0.10

func (m *ResourceInfo) Unmarshal(dAtA []byte) error

func (*ResourceInfo) XXX_DiscardUnknown added in v0.0.10

func (m *ResourceInfo) XXX_DiscardUnknown()

func (*ResourceInfo) XXX_Marshal added in v0.0.10

func (m *ResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceInfo) XXX_Merge added in v0.0.10

func (m *ResourceInfo) XXX_Merge(src proto.Message)

func (*ResourceInfo) XXX_Size added in v0.0.10

func (m *ResourceInfo) XXX_Size() int

func (*ResourceInfo) XXX_Unmarshal added in v0.0.10

func (m *ResourceInfo) XXX_Unmarshal(b []byte) error

type ResourceInfoList

type ResourceInfoList []ResourceInfo

ResourceInfoList contains an array of ResourceInfo objects. +protobuf=true

func (ResourceInfoList) DeepCopy

func (in ResourceInfoList) DeepCopy() ResourceInfoList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfoList.

func (ResourceInfoList) DeepCopyInto

func (in ResourceInfoList) DeepCopyInto(out *ResourceInfoList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TopologyManagerPolicy added in v0.0.8

type TopologyManagerPolicy string
const (
	// Constants of type TopologyManagerPolicy represent policy of the worker
	// node's resource management component. It's TopologyManager in kubele.
	// SingleNUMANodeContainerLevel represent single-numa-node policy of
	// the TopologyManager
	SingleNUMANodeContainerLevel TopologyManagerPolicy = "SingleNUMANodeContainerLevel"
	// SingleNUMANodePodLevel enables pod level resource counting, this policy assumes
	// TopologyManager policy single-numa-node also was set on the node
	SingleNUMANodePodLevel TopologyManagerPolicy = "SingleNUMANodePodLevel"
	// Restricted TopologyManager policy was set on the node
	Restricted TopologyManagerPolicy = "Restricted"
	// RestrictedContainerLevel TopologyManager policy was set on the node and TopologyManagerScope was set to pod
	RestrictedContainerLevel TopologyManagerPolicy = "RestrictedContainerLevel"
	// RestrictedPodLevel TopologyManager policy was set on the node and TopologyManagerScope was set to pod
	RestrictedPodLevel TopologyManagerPolicy = "RestrictedPodLevel"
	// BestEffort TopologyManager policy was set on the node
	BestEffort TopologyManagerPolicy = "BestEffort"
	// BestEffort TopologyManager policy was set on the node and TopologyManagerScope was set to container
	BestEffortContainerLevel TopologyManagerPolicy = "BestEffortContainerLevel"
	// BestEffort TopologyManager policy was set on the node and TopologyManagerScope was set to pod
	BestEffortPodLevel TopologyManagerPolicy = "BestEffortPodLevel"
	// None policy is the default policy and does not perform any topology alignment.
	None TopologyManagerPolicy = "None"
)

type Zone

type Zone struct {
	Name       string           `json:"name" protobuf:"bytes,1,opt,name=name"`
	Type       string           `json:"type" protobuf:"bytes,2,opt,name=type"`
	Parent     string           `json:"parent,omitempty" protobuf:"bytes,3,opt,name=parent"`
	Costs      CostList         `json:"costs,omitempty" protobuf:"bytes,4,rep,name=costs"`
	Attributes AttributeList    `json:"attributes,omitempty" protobuf:"bytes,5,rep,name=attributes"`
	Resources  ResourceInfoList `json:"resources,omitempty" protobuf:"bytes,6,rep,name=resources"`
}

Zone represents a resource topology zone, e.g. socket, node, die or core. +protobuf=true

func (*Zone) DeepCopy

func (in *Zone) DeepCopy() *Zone

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Zone.

func (*Zone) DeepCopyInto

func (in *Zone) DeepCopyInto(out *Zone)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Zone) Descriptor added in v0.0.10

func (*Zone) Descriptor() ([]byte, []int)

func (*Zone) Marshal added in v0.0.10

func (m *Zone) Marshal() (dAtA []byte, err error)

func (*Zone) MarshalTo added in v0.0.10

func (m *Zone) MarshalTo(dAtA []byte) (int, error)

func (*Zone) MarshalToSizedBuffer added in v0.0.10

func (m *Zone) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Zone) ProtoMessage added in v0.0.10

func (*Zone) ProtoMessage()

func (*Zone) Reset added in v0.0.10

func (m *Zone) Reset()

func (*Zone) Size added in v0.0.10

func (m *Zone) Size() (n int)

func (*Zone) String added in v0.0.10

func (this *Zone) String() string

func (*Zone) Unmarshal added in v0.0.10

func (m *Zone) Unmarshal(dAtA []byte) error

func (*Zone) XXX_DiscardUnknown added in v0.0.10

func (m *Zone) XXX_DiscardUnknown()

func (*Zone) XXX_Marshal added in v0.0.10

func (m *Zone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Zone) XXX_Merge added in v0.0.10

func (m *Zone) XXX_Merge(src proto.Message)

func (*Zone) XXX_Size added in v0.0.10

func (m *Zone) XXX_Size() int

func (*Zone) XXX_Unmarshal added in v0.0.10

func (m *Zone) XXX_Unmarshal(b []byte) error

type ZoneList

type ZoneList []Zone

ZoneList contains an array of Zone objects. +protobuf=true

func (ZoneList) DeepCopy

func (in ZoneList) DeepCopy() ZoneList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneList.

func (ZoneList) DeepCopyInto

func (in ZoneList) DeepCopyInto(out *ZoneList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL