Documentation
¶
Index ¶
- func NewNodeInfoLister(nodes []*v1.Node) framework.NodeInfoLister
- type CSINodeLister
- type NodeInfoLister
- func (nodes NodeInfoLister) Get(nodeName string) (framework.NodeInfo, error)
- func (nodes NodeInfoLister) HavePodsWithAffinityList() []framework.NodeInfo
- func (nodes NodeInfoLister) HavePodsWithRequiredAntiAffinityList() []framework.NodeInfo
- func (nodes NodeInfoLister) InPartitionList() []framework.NodeInfo
- func (nodes NodeInfoLister) Len() int
- func (nodes NodeInfoLister) List() []framework.NodeInfo
- func (nodes NodeInfoLister) OutOfPartitionList() []framework.NodeInfo
- type PersistentVolumeClaimLister
- type PersistentVolumeLister
- type ServiceLister
- type StatefulSetLister
- type StorageClassLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeInfoLister ¶
func NewNodeInfoLister(nodes []*v1.Node) framework.NodeInfoLister
NewNodeInfoLister create a new fake NodeInfoLister from a slice of v1.Nodes.
Types ¶
type CSINodeLister ¶
CSINodeLister declares a storagev1.CSINode type for testing.
type NodeInfoLister ¶
NodeInfoLister declares a []framework.NodeInfo type for testing.
func (NodeInfoLister) Get ¶
func (nodes NodeInfoLister) Get(nodeName string) (framework.NodeInfo, error)
Get returns a fake node object in the fake nodes.
func (NodeInfoLister) HavePodsWithAffinityList ¶
func (nodes NodeInfoLister) HavePodsWithAffinityList() []framework.NodeInfo
HavePodsWithAffinityList is supposed to list nodes with at least one pod with affinity. For the fake lister we just return everything.
func (NodeInfoLister) HavePodsWithRequiredAntiAffinityList ¶
func (nodes NodeInfoLister) HavePodsWithRequiredAntiAffinityList() []framework.NodeInfo
HavePodsWithRequiredAntiAffinityList is supposed to list nodes with at least one pod with required anti-affinity. For the fake lister we just return everything.
func (NodeInfoLister) InPartitionList ¶
func (nodes NodeInfoLister) InPartitionList() []framework.NodeInfo
Returns the list of NodeInfos in the partition of the scheduler
func (NodeInfoLister) Len ¶
func (nodes NodeInfoLister) Len() int
func (NodeInfoLister) List ¶
func (nodes NodeInfoLister) List() []framework.NodeInfo
List lists all nodes.
func (NodeInfoLister) OutOfPartitionList ¶
func (nodes NodeInfoLister) OutOfPartitionList() []framework.NodeInfo
Returns the list of NodeInfos out of the partition of the scheduler
type PersistentVolumeClaimLister ¶
type PersistentVolumeClaimLister []v1.PersistentVolumeClaim
PersistentVolumeClaimLister declares a []v1.PersistentVolumeClaim type for testing.
func (PersistentVolumeClaimLister) List ¶
func (pvcs PersistentVolumeClaimLister) List(selector labels.Selector) (ret []*v1.PersistentVolumeClaim, err error)
List gets PVC matching the namespace and PVC ID.
func (PersistentVolumeClaimLister) PersistentVolumeClaims ¶
func (pvcs PersistentVolumeClaimLister) PersistentVolumeClaims(namespace string) corelisters.PersistentVolumeClaimNamespaceLister
PersistentVolumeClaims returns a fake PersistentVolumeClaimLister object.
type PersistentVolumeLister ¶
type PersistentVolumeLister []v1.PersistentVolume
PersistentVolumeLister declares a []v1.PersistentVolume type for testing.
func (PersistentVolumeLister) Get ¶
func (pvs PersistentVolumeLister) Get(pvID string) (*v1.PersistentVolume, error)
Get returns a fake PV object in the fake PVs by PV ID.
func (PersistentVolumeLister) List ¶
func (pvs PersistentVolumeLister) List(selector labels.Selector) ([]*v1.PersistentVolume, error)
List lists all PersistentVolumes in the indexer.
type ServiceLister ¶
ServiceLister implements ServiceLister on []v1.Service for test purposes.
func (ServiceLister) Services ¶
func (f ServiceLister) Services(namespace string) corelisters.ServiceNamespaceLister
Services returns nil.
type StatefulSetLister ¶
type StatefulSetLister []*appsv1.StatefulSet
StatefulSetLister implements ControllerLister on []appsv1.StatefulSet for testing purposes.
func (StatefulSetLister) GetPodStatefulSets ¶
func (f StatefulSetLister) GetPodStatefulSets(pod *v1.Pod) (sss []*appsv1.StatefulSet, err error)
GetPodStatefulSets gets the StatefulSets that have the selector that match the labels on the given pod.
func (StatefulSetLister) List ¶
func (f StatefulSetLister) List(labels.Selector) ([]*appsv1.StatefulSet, error)
List returns stateful sets.
func (StatefulSetLister) StatefulSets ¶
func (f StatefulSetLister) StatefulSets(namespace string) appslisters.StatefulSetNamespaceLister
StatefulSets returns nil
type StorageClassLister ¶
type StorageClassLister []storagev1.StorageClass
StorageClassLister declares a []storagev1.StorageClass type for testing.
func (StorageClassLister) Get ¶
func (classes StorageClassLister) Get(name string) (*storagev1.StorageClass, error)
Get returns a fake storage class object in the fake storage classes by name.
func (StorageClassLister) List ¶
func (classes StorageClassLister) List(selector labels.Selector) ([]*storagev1.StorageClass, error)
List lists all StorageClass in the indexer.