本文整理汇总了Golang中github.com/jiangshengwu/aliyun-sdk-for-go/log.Debug函数的典型用法代码示例。如果您正苦于以下问题:Golang Debug函数的具体用法?Golang Debug怎么用?Golang Debug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Debug函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: RequestAPI
func RequestAPI(params map[string]string) (string, error) {
query := util.GetQueryFromMap(params)
req := &util.AliyunRequest{}
req.Url = ECSHost + query
log.Debug(req.Url)
result, err := req.DoGetRequest()
return result, err
}
开发者ID:smartmz,项目名称:aliyun-sdk-for-go,代码行数:8,代码来源:ecs.go
示例2: RequestAPI
func (c *CommonParam) RequestAPI(params map[string]interface{}) (string, error) {
query := GetQueryFromMap(params)
req := &AliyunRequest{}
req.Url = c.Host + query
log.Debug(req.Url)
result, err := req.DoGetRequest()
return result, err
}
开发者ID:jiangxukai,项目名称:aliyun-sdk-for-go,代码行数:8,代码来源:client.go
示例3: Request
func (c *CommonParam) Request(action string, params map[string]string, response interface{}) error {
p := c.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return err
}
log.Debug(result)
json.Unmarshal([]byte(result), response)
return nil
}
开发者ID:feiyang21687,项目名称:aliyun-sdk-for-go,代码行数:10,代码来源:ecs.go
示例4: DescribeInstanceTypes
func (op *OtherOperator) DescribeInstanceTypes(params map[string]string) (DescribeInstanceTypesResponse, error) {
var resp DescribeInstanceTypesResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return DescribeInstanceTypesResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:other.go
示例5: ModifyImageSharePermission
func (op *ImageOperator) ModifyImageSharePermission(params map[string]string) (ModifyImageSharePermissionResponse, error) {
var resp ModifyImageSharePermissionResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyImageSharePermissionResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:image.go
示例6: CancelCopyImage
func (op *ImageOperator) CancelCopyImage(params map[string]string) (CancelCopyImageResponse, error) {
var resp CancelCopyImageResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return CancelCopyImageResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:image.go
示例7: RevokeSecurityGroupEgress
func (op *SecurityGroupOperator) RevokeSecurityGroupEgress(params map[string]string) (RevokeSecurityGroupEgressResponse, error) {
var resp RevokeSecurityGroupEgressResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return RevokeSecurityGroupEgressResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:group.go
示例8: ReplaceSystemDisk
func (op *DiskOperator) ReplaceSystemDisk(params map[string]string) (ReplaceSystemDiskResponse, error) {
var resp ReplaceSystemDiskResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ReplaceSystemDiskResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:disk.go
示例9: ModifyAutoSnapshotPolicy
func (op *SnapshotOperator) ModifyAutoSnapshotPolicy(params map[string]string) (ModifyAutoSnapshotPolicyResponse, error) {
var resp ModifyAutoSnapshotPolicyResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyAutoSnapshotPolicyResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:snapshot.go
示例10: AllocatePublicIpAddress
func (op *NetworkOperator) AllocatePublicIpAddress(params map[string]string) (AllocatePublicIpAddressResponse, error) {
var resp AllocatePublicIpAddressResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return AllocatePublicIpAddressResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:network.go
示例11: ModifyEipAddressAttribute
func (op *NetworkOperator) ModifyEipAddressAttribute(params map[string]string) (ModifyEipAddressAttributeResponse, error) {
var resp ModifyEipAddressAttributeResponse
action := GetFuncName(1)
p := op.Common.ResolveAllParams(action, params)
result, err := RequestAPI(p)
if err != nil {
return ModifyEipAddressAttributeResponse{}, err
}
log.Debug(result)
json.Unmarshal([]byte(result), &resp)
return resp, nil
}
开发者ID:jiangshengwu,项目名称:dockerf,代码行数:12,代码来源:network.go
注:本文中的github.com/jiangshengwu/aliyun-sdk-for-go/log.Debug函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论