func DownloadConfig(cli bce.Client, cdr *CfgDownloadReq) (*CfgDownloadResult, error) {
	url := PREFIX_V3CORE + "/" + cdr.Coreid + "/config/" + cdr.Version + "/download"
	params := map[string]string{"withBin": strconv.FormatBool(cdr.WithBin)}
	result := &CfgDownloadResult{}
	req := &GetHttpReq{Url: url, Params: params, Result: result}
	err := Get(cli, req)
	if err != nil {
		return nil, err
	}
	return result, nil
}
DownloadConfig - download a config

PARAMS:
- cli: the client agent which can perform sending request
- *CfgDownloadReq: id, version, with bin or not
RETURNS:
- *CfgDownloadResult: the result
- error: nil if ok otherwise the specific error
package api
import (
	"strconv"
	"github.com/baidubce/bce-sdk-go/bce"
	"github.com/baidubce/bce-sdk-go/http"
)
const (
	PREFIX_V3CORE = "/v3/core"
)
func ListConfig(cli bce.Client, coreid string, lcr *ListConfigReq) (*ListConfigResult, error) {
	params := map[string]string{}
	if lcr.Status != "" {
		params["status"] = lcr.Status
	}
	params["pageNo"] = strconv.Itoa(lcr.PageNo)
	params["pageSize"] = strconv.Itoa(lcr.PageSize)
	url := PREFIX_V3CORE + "/" + coreid + "/config"
	result := &ListConfigResult{}
	req := &GetHttpReq{Url: url, Result: result, Params: params}
	err := Get(cli, req)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func GetConfig(cli bce.Client, coreid string, ver string) (*CfgResult, error) {
	url := PREFIX_V3CORE + "/" + coreid + "/config/" + ver
	result := &CfgResult{}
	req := &GetHttpReq{Url: url, Result: result}
	err := Get(cli, req)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func PubConfig(cli bce.Client, cpr *CoreidVersion, cpb *CfgPubBody) (*CfgResult, error) {
	url := PREFIX_V3CORE + "/" + cpr.Coreid + "/config/" + cpr.Version + "/publish"
	result := &CfgResult{}
	req := &PostHttpReq{Url: url, Body: cpb, Result: result}
	err := Post(cli, req)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func DeployConfig(cli bce.Client, coreid string, ver string) error {
	url := PREFIX_V3CORE + "/" + coreid + "/config/" + ver + "/deploy"
	req := &PostHttpReq{Url: url}
	err := Post(cli, req)
	if err != nil {
		return err
	}
	return nil
}