forked from cloudfoundry/bosh-softlayer-cpi-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
26 lines (21 loc) · 1.28 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package softlayer
import (
"bytes"
)
type Client interface {
GetService(name string) (Service, error)
GetSoftLayer_Account_Service() (SoftLayer_Account_Service, error)
GetSoftLayer_Virtual_Guest_Service() (SoftLayer_Virtual_Guest_Service, error)
GetSoftLayer_Virtual_Disk_Image_Service() (SoftLayer_Virtual_Disk_Image_Service, error)
GetSoftLayer_Security_Ssh_Key_Service() (SoftLayer_Security_Ssh_Key_Service, error)
GetSoftLayer_Product_Package_Service() (SoftLayer_Product_Package_Service, error)
GetSoftLayer_Product_Order_Service() (SoftLayer_Product_Order_Service, error)
GetSoftLayer_Network_Storage_Service() (SoftLayer_Network_Storage_Service, error)
GetSoftLayer_Billing_Item_Cancellation_Request_Service() (SoftLayer_Billing_Item_Cancellation_Request_Service, error)
GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service() (SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)
DoRawHttpRequest(path string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
DoRawHttpRequestWithObjectMask(path string, masks []string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
GenerateRequestBody(templateData interface{}) (*bytes.Buffer, error)
HasErrors(body map[string]interface{}) error
CheckForHttpResponseErrors(data []byte) error
}