You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

tencentTKE.go 930 B

123456789101112131415161718192021222324252627282930313233
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
  5. "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
  6. "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
  7. tke "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525"
  8. )
  9. func main() {
  10. credential := common.NewCredential(
  11. "AKIDRefQxnhmuqTU1KRWFl58wQeCE0XoAeEZ",
  12. "LUMVRmGj2kFrEahhZzA5pKvHNSMASntj",
  13. )
  14. cpf := profile.NewClientProfile()
  15. cpf.HttpProfile.Endpoint = "tke.tencentcloudapi.com"
  16. client, _ := tke.NewClient(credential, "ap-beijing", cpf)
  17. request := tke.NewDescribeEKSContainerInstancesRequest()
  18. response, err := client.DescribeEKSContainerInstances(request)
  19. if _, ok := err.(*errors.TencentCloudSDKError); ok {
  20. fmt.Printf("An API error has returned: %s", err)
  21. return
  22. }
  23. if err != nil {
  24. panic(err)
  25. }
  26. fmt.Printf("%s", response.ToJsonString())
  27. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.