func (s *securityProfileLister) List(selector labels.Selector) (ret []*v1.SecurityProfile, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.SecurityProfile))
	})
	return ret, err
}
List lists all SecurityProfiles in the indexer.
package v1
import (
	v1 "github.com/Gui774ume/network-security-probe/pkg/k8s/apis/securityprobe.datadoghq.com/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type SecurityProfileLister interface {
	List(selector labels.Selector) (ret []*v1.SecurityProfile, err error)
	SecurityProfiles(namespace string) SecurityProfileNamespaceLister
	SecurityProfileListerExpansion
}
type securityProfileLister struct {
	indexer cache.Indexer
}
func NewSecurityProfileLister(indexer cache.Indexer) SecurityProfileLister {
	return &securityProfileLister{indexer: indexer}
}