client

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 17 Imported by: 94

Documentation

Index

Constants

View Source
const NON_VERBOSE = "NON_VERBOSE"
View Source
const (
	TEMPLATE_ROOT_PATH = "templates"
)

Variables

This section is empty.

Functions

func GetSLApiEndpoint added in v0.7.0

func GetSLApiEndpoint() string

Types

type HttpClient added in v0.5.0

type HttpClient struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewHttpClient added in v0.5.0

func NewHttpClient(username, password, apiUrl, templatePath string, useHttps bool) *HttpClient

func NewHttpsClient added in v0.6.0

func NewHttpsClient(username, password, apiUrl, templatePath string) *HttpClient

func (*HttpClient) CheckForHttpResponseErrors added in v0.5.0

func (slc *HttpClient) CheckForHttpResponseErrors(data []byte) error

func (*HttpClient) CheckForHttpResponseErrorsSilently added in v0.7.0

func (slc *HttpClient) CheckForHttpResponseErrorsSilently(data []byte) error

func (*HttpClient) DoRawHttpRequest added in v0.5.0

func (slc *HttpClient) DoRawHttpRequest(path string, requestType string, requestBody *bytes.Buffer) ([]byte, int, error)

func (*HttpClient) DoRawHttpRequestWithObjectFilter added in v0.5.0

func (slc *HttpClient) DoRawHttpRequestWithObjectFilter(path string, filters string, requestType string, requestBody *bytes.Buffer) ([]byte, int, error)

func (*HttpClient) DoRawHttpRequestWithObjectFilterAndObjectMask added in v0.5.0

func (slc *HttpClient) DoRawHttpRequestWithObjectFilterAndObjectMask(path string, masks []string, filters string, requestType string, requestBody *bytes.Buffer) ([]byte, int, error)

func (*HttpClient) DoRawHttpRequestWithObjectMask added in v0.5.0

func (slc *HttpClient) DoRawHttpRequestWithObjectMask(path string, masks []string, requestType string, requestBody *bytes.Buffer) ([]byte, int, error)

func (*HttpClient) GenerateRequestBody added in v0.5.0

func (slc *HttpClient) GenerateRequestBody(templateData interface{}) (*bytes.Buffer, error)

func (*HttpClient) HasErrors added in v0.5.0

func (slc *HttpClient) HasErrors(body map[string]interface{}) error

type SoftLayerClient added in v0.3.0

type SoftLayerClient struct {
	HttpClient softlayer.HttpClient
	// contains filtered or unexported fields
}

func NewSoftLayerClient

func NewSoftLayerClient(username, apiKey string) *SoftLayerClient

func (*SoftLayerClient) GetHttpClient added in v0.5.0

func (slc *SoftLayerClient) GetHttpClient() softlayer.HttpClient

func (*SoftLayerClient) GetService added in v0.3.0

func (slc *SoftLayerClient) GetService(serviceName string) (softlayer.Service, error)

func (*SoftLayerClient) GetSoftLayer_Account_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Account_Service() (softlayer.SoftLayer_Account_Service, error)

func (*SoftLayerClient) GetSoftLayer_Billing_Item_Cancellation_Request_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Billing_Item_Cancellation_Request_Service() (softlayer.SoftLayer_Billing_Item_Cancellation_Request_Service, error)

func (*SoftLayerClient) GetSoftLayer_Billing_Item_Service added in v0.6.0

func (slc *SoftLayerClient) GetSoftLayer_Billing_Item_Service() (softlayer.SoftLayer_Billing_Item_Service, error)

func (*SoftLayerClient) GetSoftLayer_Dns_Domain_ResourceRecord_Service added in v0.4.0

func (slc *SoftLayerClient) GetSoftLayer_Dns_Domain_ResourceRecord_Service() (softlayer.SoftLayer_Dns_Domain_ResourceRecord_Service, error)

func (*SoftLayerClient) GetSoftLayer_Dns_Domain_Service added in v0.4.0

func (slc *SoftLayerClient) GetSoftLayer_Dns_Domain_Service() (softlayer.SoftLayer_Dns_Domain_Service, error)

func (*SoftLayerClient) GetSoftLayer_Hardware_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Hardware_Service() (softlayer.SoftLayer_Hardware_Service, error)

func (*SoftLayerClient) GetSoftLayer_Network_Storage_Allowed_Host_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Network_Storage_Allowed_Host_Service() (softlayer.SoftLayer_Network_Storage_Allowed_Host_Service, error)

func (*SoftLayerClient) GetSoftLayer_Network_Storage_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Network_Storage_Service() (softlayer.SoftLayer_Network_Storage_Service, error)

func (*SoftLayerClient) GetSoftLayer_Product_Order_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Product_Order_Service() (softlayer.SoftLayer_Product_Order_Service, error)

func (*SoftLayerClient) GetSoftLayer_Product_Package_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Product_Package_Service() (softlayer.SoftLayer_Product_Package_Service, error)

func (*SoftLayerClient) GetSoftLayer_Security_Ssh_Key_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Security_Ssh_Key_Service() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)

func (*SoftLayerClient) GetSoftLayer_Virtual_Disk_Image_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Virtual_Disk_Image_Service() (softlayer.SoftLayer_Virtual_Disk_Image_Service, error)

func (*SoftLayerClient) GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Virtual_Guest_Block_Device_Template_Group_Service() (softlayer.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)

func (*SoftLayerClient) GetSoftLayer_Virtual_Guest_Service added in v0.3.0

func (slc *SoftLayerClient) GetSoftLayer_Virtual_Guest_Service() (softlayer.SoftLayer_Virtual_Guest_Service, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL