Documentation ¶
Index ¶
- Constants
- Variables
- func DoRequest(req *CloudRequest) (resp *http.Response, err error)
- func IsAccessKeySet() bool
- func MarshalJsonToIOReader(v interface{}) (io.Reader, error)
- type CloudRequest
- func NewCCKRequest(action, method string, params map[string]string, body io.Reader) (*CloudRequest, error)
- func NewCCSRequest(action, method string, params map[string]string, body io.Reader) (*CloudRequest, error)
- func NewEbsRequest(action, method string, params map[string]string, body io.Reader) (*CloudRequest, error)
- func NewEcsRequest(action, method string, params map[string]string, body io.Reader) (*CloudRequest, error)
- func NewRequest(action, method string, params map[string]string, productType string, ...) (*CloudRequest, error)
Constants ¶
View Source
const ( // Nas ActionDescribeNasInstances = "DescribeNasInstances" ActionMountNas = "MountNas" ActionUmountNas = "UmountNas" ActionCreateNas = "CreateNas" ActionResizeNas = "ResizeNas" ActionDeleteNas = "DeleteNas" ActionTaskStatus = "CheckNasTaskStatus" // Disk ActionCreateDisk = "CreateBlock" ActionAttachDisk = "AttachBlock" ActionDetachDisk = "DetachBlock" ActionDeleteDisk = "DeleteBlock" ActionFindDiskByVolumeID = "DescribeBlock" ActionDiskTaskStatus = "CheckBlockTaskStatus" ActionUpdateBlock = "UpdateBlock" ActionDescribeClusterNodePvInfo = "DescribeClusterNodePvInfo" // Ebs ActionCreateEbs = "CreateDisk" ActionDescribeEvent = "DescribeEvent" ActionDeleteEbs = "DeleteDisk" ActionAttachEbs = "AttachDisk" ActionDetachEbs = "DetachDisk" ActionDescribeEbs = "DescribeDisk" ActionExtendEbs = "ExtendDisk" ActionDescribeDiskQuota = "DescribeDiskQuota" ActionDescribeInstance = "DescribeInstance" EbsSuccessCode = "Success" // Alarm ActionSendAlarm = "SendAlarm" )
Variables ¶
View Source
var ( APIHost string AccessKeyID string AccessKeySecret string ClusterName string )
Functions ¶
func IsAccessKeySet ¶
func IsAccessKeySet() bool
func MarshalJsonToIOReader ¶
Types ¶
type CloudRequest ¶
type CloudRequest struct {
// contains filtered or unexported fields
}
func NewCCKRequest ¶
func NewCCSRequest ¶
func NewEbsRequest ¶
func NewEcsRequest ¶
func NewRequest ¶
Click to show internal directories.
Click to hide internal directories.