Documentation
¶
Index ¶
- Constants
- type FakeSoftLayerClient
- func (fslc *FakeSoftLayerClient) CheckForHttpResponseErrors(data []byte) error
- func (fslc *FakeSoftLayerClient) DoRawHttpRequest(path string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
- func (fslc *FakeSoftLayerClient) DoRawHttpRequestWithObjectFilter(path string, filters string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
- func (fslc *FakeSoftLayerClient) DoRawHttpRequestWithObjectFilterAndObjectMask(path string, masks []string, filters string, requestType string, ...) ([]byte, error)
- func (fslc *FakeSoftLayerClient) DoRawHttpRequestWithObjectMask(path string, masks []string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
- func (fslc *FakeSoftLayerClient) GenerateRequestBody(templateData interface{}) (*bytes.Buffer, error)
- func (fslc *FakeSoftLayerClient) GetService(serviceName string) (softlayer.Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Account_Service() (softlayer.SoftLayer_Account_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Billing_Item_Cancellation_Request_Service() (softlayer.SoftLayer_Billing_Item_Cancellation_Request_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Dns_Domain_ResourceRecord_Service() (softlayer.SoftLayer_Dns_Domain_ResourceRecord_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Dns_Domain_Service() (softlayer.SoftLayer_Dns_Domain_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Hardware_Service() (softlayer.SoftLayer_Hardware_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Network_Storage_Allowed_Host_Service() (softlayer.SoftLayer_Network_Storage_Allowed_Host_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Network_Storage_Service() (softlayer.SoftLayer_Network_Storage_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Product_Order_Service() (softlayer.SoftLayer_Product_Order_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Product_Package_Service() (softlayer.SoftLayer_Product_Package_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Security_Ssh_Key_Service() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Disk_Image_Service() (softlayer.SoftLayer_Virtual_Disk_Image_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service() (softlayer.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)
- func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Service() (softlayer.SoftLayer_Virtual_Guest_Service, error)
- func (fslc *FakeSoftLayerClient) HasErrors(body map[string]interface{}) error
Constants ¶
View Source
const ( SOFTLAYER_API_URL = "api.softlayer.com/rest/v3" TEMPLATE_ROOT_PATH = "templates" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSoftLayerClient ¶
type FakeSoftLayerClient struct { Username string ApiKey string TemplatePath string SoftLayerServices map[string]softlayer.Service DoRawHttpRequestResponseCount int DoRawHttpRequestResponse []byte DoRawHttpRequestResponses [][]byte DoRawHttpRequestResponsesIndex int DoRawHttpRequestError error DoRawHttpRequestPath string DoRawHttpRequestRequestType string GenerateRequestBodyBuffer *bytes.Buffer GenerateRequestBodyError error HasErrorsError, CheckForHttpResponseError error }
func NewFakeSoftLayerClient ¶
func NewFakeSoftLayerClient(username, apiKey string) *FakeSoftLayerClient
func (*FakeSoftLayerClient) CheckForHttpResponseErrors ¶
func (fslc *FakeSoftLayerClient) CheckForHttpResponseErrors(data []byte) error
func (*FakeSoftLayerClient) DoRawHttpRequest ¶
func (*FakeSoftLayerClient) DoRawHttpRequestWithObjectFilter ¶ added in v0.3.0
func (*FakeSoftLayerClient) DoRawHttpRequestWithObjectFilterAndObjectMask ¶ added in v0.3.0
func (*FakeSoftLayerClient) DoRawHttpRequestWithObjectMask ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) DoRawHttpRequestWithObjectMask(path string, masks []string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
Public methods
func (*FakeSoftLayerClient) GenerateRequestBody ¶
func (fslc *FakeSoftLayerClient) GenerateRequestBody(templateData interface{}) (*bytes.Buffer, error)
func (*FakeSoftLayerClient) GetService ¶
func (fslc *FakeSoftLayerClient) GetService(serviceName string) (softlayer.Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Account_Service ¶
func (fslc *FakeSoftLayerClient) GetSoftLayer_Account_Service() (softlayer.SoftLayer_Account_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Billing_Item_Cancellation_Request_Service ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Billing_Item_Cancellation_Request_Service() (softlayer.SoftLayer_Billing_Item_Cancellation_Request_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Dns_Domain_ResourceRecord_Service ¶ added in v0.4.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Dns_Domain_ResourceRecord_Service() (softlayer.SoftLayer_Dns_Domain_ResourceRecord_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Dns_Domain_Service ¶ added in v0.4.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Dns_Domain_Service() (softlayer.SoftLayer_Dns_Domain_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Hardware_Service ¶ added in v0.2.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Hardware_Service() (softlayer.SoftLayer_Hardware_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Network_Storage_Allowed_Host_Service ¶ added in v0.3.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Network_Storage_Allowed_Host_Service() (softlayer.SoftLayer_Network_Storage_Allowed_Host_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Network_Storage_Service ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Network_Storage_Service() (softlayer.SoftLayer_Network_Storage_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Product_Order_Service ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Product_Order_Service() (softlayer.SoftLayer_Product_Order_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Product_Package_Service ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Product_Package_Service() (softlayer.SoftLayer_Product_Package_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Security_Ssh_Key_Service ¶
func (fslc *FakeSoftLayerClient) GetSoftLayer_Security_Ssh_Key_Service() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Virtual_Disk_Image_Service ¶ added in v0.0.2
func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Disk_Image_Service() (softlayer.SoftLayer_Virtual_Disk_Image_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service ¶ added in v0.1.0
func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service() (softlayer.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)
func (*FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Service ¶
func (fslc *FakeSoftLayerClient) GetSoftLayer_Virtual_Guest_Service() (softlayer.SoftLayer_Virtual_Guest_Service, error)
func (*FakeSoftLayerClient) HasErrors ¶
func (fslc *FakeSoftLayerClient) HasErrors(body map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.