func (c *natsStreamingClusters) List(opts v1.ListOptions) (result *v1alpha1.NatsStreamingClusterList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1alpha1.NatsStreamingClusterList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("natsstreamingclusters").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do().
		Into(result)
	return
}
List takes label and field selectors, and returns the list of NatsStreamingClusters that match those selectors.
package v1alpha1
import (
	"time"
	v1alpha1 "github.com/nats-io/nats-streaming-operator/pkg/apis/streaming/v1alpha1"
	scheme "github.com/nats-io/nats-streaming-operator/pkg/client/v1alpha1/scheme"
	v1 "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 NatsStreamingClustersGetter interface {
	NatsStreamingClusters(namespace string) NatsStreamingClusterInterface
}
type NatsStreamingClusterInterface interface {
	Create(*v1alpha1.NatsStreamingCluster) (*v1alpha1.NatsStreamingCluster, error)
	Update(*v1alpha1.NatsStreamingCluster) (*v1alpha1.NatsStreamingCluster, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1alpha1.NatsStreamingCluster, error)
	List(opts v1.ListOptions) (*v1alpha1.NatsStreamingClusterList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NatsStreamingCluster, err error)
	NatsStreamingClusterExpansion
}
type natsStreamingClusters struct {
	client rest.Interface
	ns     string
}
func newNatsStreamingClusters(c *StreamingV1alpha1Client, namespace string) *natsStreamingClusters {
	return &natsStreamingClusters{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *natsStreamingClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.NatsStreamingCluster, err error) {
	result = &v1alpha1.NatsStreamingCluster{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("natsstreamingclusters").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}