api/cluster.go
func provisionerList(w http.ResponseWriter, r *http.Request, t auth.Token) (err error) {
	allowed := permission.Check(t, permission.PermClusterRead)
	if !allowed {
		return permission.ErrUnauthorized
	}
	provs, err := provision.Registry()
	if err != nil {
		return err
	}
	info := make([]provisionerInfo, len(provs))
	for i, p := range provs {
		info[i].Name = p.GetName()
		if clusterProv, ok := p.(cluster.ClusteredProvisioner); ok {
			info[i].ClusterHelp = clusterProv.ClusterHelp()
		}
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(info)
}
func provisionerList(w http.ResponseWriter, r *http.Request, t auth.Token) (err error) {
	allowed := permission.Check(t, permission.PermClusterRead)
	if !allowed {
		return permission.ErrUnauthorized
	}
	provs, err := provision.Registry()
	if err != nil {
		return err
	}
	info := make([]provisionerInfo, len(provs))
	for i, p := range provs {
		info[i].Name = p.GetName()
		if clusterProv, ok := p.(cluster.ClusteredProvisioner); ok {
			info[i].ClusterHelp = clusterProv.ClusterHelp()
		}
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(info)
}
// title: list provisioners
// path: /provisioner
// method: GET
// produce: application/json
// responses:
//   200: Ok
//   204: No Content
//   401: Unauthorized