Documentation ¶
Index ¶
- type CSINodeLister
- type ControllerLister
- func (f ControllerLister) GetPodControllers(pod *v1.Pod) (controllers []*v1.ReplicationController, err error)
- func (f ControllerLister) List(labels.Selector) ([]*v1.ReplicationController, error)
- func (f ControllerLister) ReplicationControllers(namespace string) corelisters.ReplicationControllerNamespaceLister
- type NodeInfoLister
- func (nodes NodeInfoLister) Get(nodeName string) (*framework.NodeInfo, error)
- func (nodes NodeInfoLister) HavePodsWithAffinityList() ([]*framework.NodeInfo, error)
- func (nodes NodeInfoLister) HavePodsWithRequiredAntiAffinityList() ([]*framework.NodeInfo, error)
- func (nodes NodeInfoLister) List() ([]*framework.NodeInfo, error)
- type PersistentVolumeClaimLister
- type PersistentVolumeLister
- type ReplicaSetLister
- type ServiceLister
- type StatefulSetLister
- type StorageClassLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSINodeLister ¶
CSINodeLister declares a storagev1.CSINode type for testing.
type ControllerLister ¶
type ControllerLister []*v1.ReplicationController
ControllerLister implements ControllerLister on []v1.ReplicationController for test purposes.
func (ControllerLister) GetPodControllers ¶
func (f ControllerLister) GetPodControllers(pod *v1.Pod) (controllers []*v1.ReplicationController, err error)
GetPodControllers gets the ReplicationControllers that have the selector that match the labels on the given pod
func (ControllerLister) List ¶
func (f ControllerLister) List(labels.Selector) ([]*v1.ReplicationController, error)
List returns []v1.ReplicationController, the list of all ReplicationControllers.
func (ControllerLister) ReplicationControllers ¶
func (f ControllerLister) ReplicationControllers(namespace string) corelisters.ReplicationControllerNamespaceLister
ReplicationControllers returns nil
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, error)
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, error)
HavePodsWithRequiredAntiAffinityList is supposed to list nodes with at least one pod with required anti-affinity. For the fake lister we just return everything.
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 ReplicaSetLister ¶
type ReplicaSetLister []*appsv1.ReplicaSet
ReplicaSetLister implements ControllerLister on []extensions.ReplicaSet for test purposes.
func (ReplicaSetLister) GetPodReplicaSets ¶
func (f ReplicaSetLister) GetPodReplicaSets(pod *v1.Pod) (rss []*appsv1.ReplicaSet, err error)
GetPodReplicaSets gets the ReplicaSets that have the selector that match the labels on the given pod
func (ReplicaSetLister) List ¶
func (f ReplicaSetLister) List(labels.Selector) ([]*appsv1.ReplicaSet, error)
List returns replica sets.
func (ReplicaSetLister) ReplicaSets ¶
func (f ReplicaSetLister) ReplicaSets(namespace string) appslisters.ReplicaSetNamespaceLister
ReplicaSets returns nil
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.