func (c *securityProfiles) List(opts metav1.ListOptions) (result *v1.SecurityProfileList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.SecurityProfileList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("securityprofiles").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
List takes label and field selectors, and returns the list of SecurityProfiles that match those selectors.
package v1
import (
	"time"
	v1 "github.com/Gui774ume/network-security-probe/pkg/k8s/apis/securityprobe.datadoghq.com/v1"
	scheme "github.com/Gui774ume/network-security-probe/pkg/k8s/client/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type SecurityProfilesGetter interface {
	SecurityProfiles(namespace string) SecurityProfileInterface
}
type SecurityProfileInterface interface {
	Create(*v1.SecurityProfile) (*v1.SecurityProfile, error)
	Update(*v1.SecurityProfile) (*v1.SecurityProfile, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
	Get(name string, options metav1.GetOptions) (*v1.SecurityProfile, error)
	List(opts metav1.ListOptions) (*v1.SecurityProfileList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.SecurityProfile, err error)
	SecurityProfileExpansion
}
type securityProfiles struct {
	client rest.Interface
	ns     string
}
func newSecurityProfiles(c *SecurityprobeV1Client, namespace string) *securityProfiles {
	return &securityProfiles{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *securityProfiles) Get(name string, options metav1.GetOptions) (result *v1.SecurityProfile, err error) {
	result = &v1.SecurityProfile{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("securityprofiles").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}