Documentation ¶
Index ¶
- Constants
- Variables
- func CdsRespDeal(ctx context.Context, response *http.Response, action string, data interface{}) (int, error)
- func DoOpenApiRequest(ctx context.Context, req *CloudRequest, staggered int) (resp *http.Response, err error)
- func DoRequest(method, url string, body io.Reader) (resp *http.Response, err error)
- func IsAccessKeySet() bool
- func Run(name string, arg ...string) (string, error)
- func Staggered(t int)
- type CloudRequest
- type Response
Constants ¶
View Source
const ( CUSTOMER_ID = "CUSTOMER_ID" USER_ID = "USER_ID" )
Variables ¶
View Source
var ( APIHost string AccessKeyID string AccessKeySecret string )
Functions ¶
func CdsRespDeal ¶
func DoOpenApiRequest ¶
func IsAccessKeySet ¶
func IsAccessKeySet() bool
Types ¶
type CloudRequest ¶
type CloudRequest struct {
// contains filtered or unexported fields
}
func NewCCKRequest ¶
func NewRequest ¶
func NewRequest(action, method string, params map[string]string, productType string, body interface{}) *CloudRequest
Click to show internal directories.
Click to hide internal directories.