func()

in client-go/clientset/versioned/typed/jobset/v1alpha1/jobset.go [77:91]


func (c *jobSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobSetList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1alpha1.JobSetList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("jobsets").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}