code: func (r *Client) GetDatasourceByName(name string) (Datasource, error) {
  	var (
  		raw  []byte
  		ds   Datasource
  		code int
  		err  error
  	)
  	if raw, code, err = r.get(fmt.Sprintf("api/datasources/name/%s", name), nil); err != nil {
  		return ds, err
  	}
  	if code != 200 {
  		return ds, fmt.Errorf("HTTP error %d: returns %s", code, raw)
  	}
  	err = json.Unmarshal(raw, &ds)
  	return ds, err
  }
docs: // GetDatasourceByName gets an datasource by Name.
  // It reflects GET /api/datasources/name/:datasourceName API call.