func (s *daemonSetLister) List(selector labels.Selector) (ret []*v1.DaemonSet, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.DaemonSet))
	})
	return ret, err
}
List lists all DaemonSets in the indexer.
package v1
import (
	v1 "k8s.io/api/apps/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type DaemonSetLister interface {
	List(selector labels.Selector) (ret []*v1.DaemonSet, err error)
	DaemonSets(namespace string) DaemonSetNamespaceLister
	DaemonSetListerExpansion
}
type daemonSetLister struct {
	indexer cache.Indexer
}
func NewDaemonSetLister(indexer cache.Indexer) DaemonSetLister {
	return &daemonSetLister{indexer: indexer}
}