Documentation ¶
Index ¶
- Constants
- Variables
- func AssignParams(params map[string]interface{}, options ...string) error
- func CmqEndPoint(action string, options ...string) string
- func CreateProfile(name string, conf *Configure) error
- func CurrentProfile() string
- func DefaultRegion() string
- func DoAction(service, action string, options ...string) ([]byte, error)
- func FmtOutput(view string, intf interface{}) ([]byte, error)
- func HasRegion(options ...string) (string, bool)
- func HasVersion(options ...string) (string, bool)
- func Inspect(flag string, cmd string, action string, options ...string) error
- func Internal() bool
- func ListProfiles() []*ini.Section
- func ParamsToStr(params map[string]interface{}) string
- func SwitchProfile(name string) error
- type Client
- func (c *Client) AppendUserAgent(ua string)
- func (client *Client) DoAction(service, action string, options ...string) ([]byte, error)
- func (c *Client) SendRequest(method, requesturl string, params map[string]interface{}) (*http.Response, error)
- func (c *Client) SetLog(out io.Writer, prefix string, flag int)
- func (c *Client) SetUserAgent(ua string)
- type ConfigFile
- type Configure
Constants ¶
View Source
const PWD = `github.com/tencentcloudplatform/tcpicli/core`
View Source
const (
VERSION = "1.0.0"
)
Variables ¶
View Source
var Endpoint = map[string]string{
"vpc": "vpc.api.qcloud.com/v2/index.php",
"cdn": "cdn.api.qcloud.com/v2/index.php",
"cvm": "cvm.api.qcloud.com/v2/index.php",
"cvm3.0": "cvm.tencentcloudapi.com/",
"ccs": "ccs.api.qcloud.com/v2/index.php",
"account": "account.api.qcloud.com/v2/index.php",
"dfw": "dfw.api.qcloud.com/v2/index.php",
"redis": "redis.api.qcloud.com/v2/index.php",
"img": "image.api.qcloud.com/v2/index.php",
"eip": "eip.api.qcloud.com/v2/index.php",
"lb": "lb.api.qcloud.com/v2/index.php",
"vod": "vod.api.qcloud.com/v2/index.php",
"ckafka": "ckafka.api.qcloud.com/v2/index.php",
"trade": "trade.api.qcloud.com/v2/index.php",
"feecenter": "feecenter.api.qcloud.com/v2/index.php",
}
cmq endpoint def lives in tcpicli/core/utils.go
Functions ¶
func AssignParams ¶
func CmqEndPoint ¶ added in v1.3.0
func CreateProfile ¶
func CurrentProfile ¶
func CurrentProfile() string
func DefaultRegion ¶
func DefaultRegion() string
func HasVersion ¶ added in v1.1.0
func ListProfiles ¶
func ParamsToStr ¶
func SwitchProfile ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var DefaultClient *Client
func (*Client) AppendUserAgent ¶ added in v1.3.2
func (*Client) SendRequest ¶
func (*Client) SetUserAgent ¶ added in v1.3.2
type ConfigFile ¶
Click to show internal directories.
Click to hide internal directories.