func (s *appLister) Apps(namespace string) AppNamespaceLister {
	return appNamespaceLister{indexer: s.indexer, namespace: namespace}
}
Apps returns an object that can list and get Apps.
package v1
import (
	v1 "github.com/tsuru/tsuru/provision/kubernetes/pkg/apis/tsuru/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type AppLister interface {
	List(selector labels.Selector) (ret []*v1.App, err error)
	Apps(namespace string) AppNamespaceLister
	AppListerExpansion
}
type appLister struct {
	indexer cache.Indexer
}
func NewAppLister(indexer cache.Indexer) AppLister {
	return &appLister{indexer: indexer}
}
func (s *appLister) List(selector labels.Selector) (ret []*v1.App, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.App))
	})
	return ret, err
}