func (s *logSinkLister) LogSinks(namespace string) LogSinkNamespaceLister {
	return logSinkNamespaceLister{indexer: s.indexer, namespace: namespace}
}
LogSinks returns an object that can list and get LogSinks.
package v1alpha1
import (
	v1alpha1 "github.com/knative/observability/pkg/apis/sink/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type LogSinkLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.LogSink, err error)
	LogSinks(namespace string) LogSinkNamespaceLister
	LogSinkListerExpansion
}
type logSinkLister struct {
	indexer cache.Indexer
}
func NewLogSinkLister(indexer cache.Indexer) LogSinkLister {
	return &logSinkLister{indexer: indexer}
}
func (s *logSinkLister) List(selector labels.Selector) (ret []*v1alpha1.LogSink, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.LogSink))
	})
	return ret, err
}