 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func AssignParams(params map[string]interface{}, options ...string) error
- 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
- type ConfigFile
- type Configure
Constants ¶
      View Source
      
  
const PWD = `github.com/tencentcloudplatform/tcpicli/core`
    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",
	"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",
	"vod":     "vod.api.qcloud.com/v2/index.php",
}
    Functions ¶
func AssignParams ¶
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 ConfigFile ¶
 Click to show internal directories. 
   Click to hide internal directories.