func (s daemonSetNamespaceLister) Get(name string) (*v1beta2.DaemonSet, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1beta2.Resource("daemonset"), name)
	}
	return obj.(*v1beta2.DaemonSet), nil
}
Get retrieves the DaemonSet from the indexer for a given namespace and name.
package v1beta2
import (
	v1beta2 "k8s.io/api/apps/v1beta2"
	"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 []*v1beta2.DaemonSet, err error)
	DaemonSets(namespace string) DaemonSetNamespaceLister
	DaemonSetListerExpansion
}
type daemonSetLister struct {
	indexer cache.Indexer
}
func NewDaemonSetLister(indexer cache.Indexer) DaemonSetLister {
	return &daemonSetLister{indexer: indexer}
}
func (s *daemonSetLister) List(selector labels.Selector) (ret []*v1beta2.DaemonSet, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta2.DaemonSet))
	})
	return ret, err
}
func (s *daemonSetLister) DaemonSets(namespace string) DaemonSetNamespaceLister {
	return daemonSetNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type DaemonSetNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta2.DaemonSet, err error)
	Get(name string) (*v1beta2.DaemonSet, error)
	DaemonSetNamespaceListerExpansion
}
type daemonSetNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s daemonSetNamespaceLister) List(selector labels.Selector) (ret []*v1beta2.DaemonSet, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta2.DaemonSet))
	})
	return ret, err
}