kubernetes/staging/src/k8s.io/pod-security-admission/admission/pods.go

// PodListerFromClient returns a PodLister that does live lists using the provided client.
func PodListerFromClient(client kubernetes.Interface) PodLister {}

type clientPodLister

func (p *clientPodLister) ListPods(ctx context.Context, namespace string) ([]*corev1.Pod, error) {}

// PodListerFromInformer returns a PodLister that does cached lists using the provided lister.
func PodListerFromInformer(lister corev1listers.PodLister) PodLister {}

type informerPodLister

func (p *informerPodLister) ListPods(ctx context.Context, namespace string) ([]*corev1.Pod, error) {}