// Provisioners performs the provisioners request to the CA and returns the
// api.ProvisionersResponse struct with a map of provisioners.
//
// ProvisionerOption WithProvisionerCursor and WithProvisionLimit can be used to
// paginate the provisioners.
Provisioners performs the provisioners request to the CA and returns the
api.ProvisionersResponse struct with a map of provisioners.

ProvisionerOption WithProvisionerCursor and WithProvisionLimit can be used to
paginate the provisioners.
// Provisioners performs the provisioners request to the CA and returns the // api . ProvisionersResponse struct with a map of provisioners . // // ProvisionerOption WithProvisionerCursor and WithProvisionLimit can be used to // paginate the provisioners .
func (c *Client) Provisioners(opts ...ProvisionerOption) (*api.ProvisionersResponse, error) {
	var retried bool
	o := new(provisionerOptions)
	if err := o.apply(opts); err != nil {
		return nil, err
	}
	u := c.endpoint.ResolveReference(&url.URL{
		Path:     "/provisioners",
		RawQuery: o.rawQuery(),
	})
retry:
	resp, err := c.client.Get(u.String())
	if err != nil {
		return nil, errors.Wrapf(err, "client GET %s failed", u)
	}
	if resp.StatusCode >= 400 {
		if !retried && c.retryOnError(resp) {
			retried = true
			goto retry
		}
		return nil, readError(resp.Body)
	}
	var provisioners api.ProvisionersResponse
	if err := readJSON(resp.Body, &provisioners); err != nil {
		return nil, errors.Wrapf(err, "error reading %s", u)
	}
	return &provisioners, nil
}
func ( c * Client ) Provisioners ( opts ... ProvisionerOption ) ( * api . ProvisionersResponse , error ) { var retried bool o := new ( provisionerOptions ) if err := o . apply ( opts ) ; err != nil { return nil , err } u := c . endpoint . ResolveReference ( & url . URL { Path : " " , RawQuery : o . rawQuery ( ) , } ) retry : resp , err := c . client . Get ( u . String ( ) ) if err != nil { return nil , errors . Wrapf ( err , " " , u ) } if resp . StatusCode >= 400 { if ! retried && c . retryOnError ( resp ) { retried = true goto retry } return nil , readError ( resp . Body ) } var provisioners api . ProvisionersResponse if err := readJSON ( resp . Body , & provisioners ) ; err != nil { return nil , errors . Wrapf ( err , " " , u ) } return & provisioners , nil }
Provisioners performs the provisioners request to the CA and returns the
api.ProvisionersResponse struct with a map of provisioners.
Provisioners performs the provisioners request to the CA and returns the api . ProvisionersResponse struct with a map of provisioners .