softlayer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 2 Imported by: 122

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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
}

type Service

type Service interface {
	GetName() string
}

type SoftLayer_Account_Service

type SoftLayer_Account_Service interface {
	Service

	GetAccountStatus() (datatypes.SoftLayer_Account_Status, error)
	GetVirtualGuests() ([]datatypes.SoftLayer_Virtual_Guest, error)
	GetNetworkStorage() ([]datatypes.SoftLayer_Network_Storage, error)
	GetIscsiNetworkStorage() ([]datatypes.SoftLayer_Network_Storage, error)
	GetVirtualDiskImages() ([]datatypes.SoftLayer_Virtual_Disk_Image, error)
	GetSshKeys() ([]datatypes.SoftLayer_Security_Ssh_Key, error)
	GetBlockDeviceTemplateGroups() ([]datatypes.SoftLayer_Virtual_Guest_Block_Device_Template_Group, error)
}

type SoftLayer_Billing_Item_Cancellation_Request_Service added in v0.1.0

type SoftLayer_Billing_Item_Cancellation_Request_Service interface {
	Service

	CreateObject(request datatypes.SoftLayer_Billing_Item_Cancellation_Request) (datatypes.SoftLayer_Billing_Item_Cancellation_Request, error)
}

type SoftLayer_Network_Storage_Service added in v0.1.0

type SoftLayer_Network_Storage_Service interface {
	Service

	CreateIscsiVolume(size int, location string) (datatypes.SoftLayer_Network_Storage, error)
	DeleteIscsiVolume(volumeId int, immediateCancellationFlag bool) error
	GetIscsiVolume(volumeId int) (datatypes.SoftLayer_Network_Storage, error)
}

type SoftLayer_Product_Order_Service added in v0.1.0

type SoftLayer_Product_Order_Service interface {
	Service

	PlaceOrder(order datatypes.SoftLayer_Product_Order) (datatypes.SoftLayer_Product_Order_Receipt, error)
}

type SoftLayer_Product_Package_Service added in v0.1.0

type SoftLayer_Product_Package_Service interface {
	Service

	GetItemPrices(packageId int) ([]datatypes.SoftLayer_Item_Price, error)
}

type SoftLayer_Security_Ssh_Key_Service

type SoftLayer_Security_Ssh_Key_Service interface {
	Service

	CreateObject(template datatypes.SoftLayer_Security_Ssh_Key) (datatypes.SoftLayer_Security_Ssh_Key, error)
	DeleteObject(sshKeyId int) (bool, error)

	GetSoftwarePasswords(sshKeyId int) ([]datatypes.SoftLayer_Software_Component_Password, error)
}

type SoftLayer_Virtual_Disk_Image_Service added in v0.0.2

type SoftLayer_Virtual_Disk_Image_Service interface {
	Service

	GetObject(id int) (datatypes.SoftLayer_Virtual_Disk_Image, error)
}

type SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service added in v0.1.0

type SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service interface {
	Service

	GetObject(id int) (datatypes.SoftLayer_Virtual_Guest_Block_Device_Template_Group, error)
	DeleteObject(id int) (bool, error)
	GetDatacenters(id int) ([]datatypes.SoftLayer_Location, error)
	GetSshKeys(id int) ([]datatypes.SoftLayer_Security_Ssh_Key, error)
	GetStatus(id int) (datatypes.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Status, error)
}

type SoftLayer_Virtual_Guest_Service

type SoftLayer_Virtual_Guest_Service interface {
	Service

	GetObject(instanceId int) (datatypes.SoftLayer_Virtual_Guest, error)
	CreateObject(template datatypes.SoftLayer_Virtual_Guest_Template) (datatypes.SoftLayer_Virtual_Guest, error)
	EditObject(instanceId int, template datatypes.SoftLayer_Virtual_Guest) (bool, error)
	DeleteObject(instanceId int) (bool, error)

	IsPingable(instanceId int) (bool, error)

	GetPowerState(instanceId int) (datatypes.SoftLayer_Virtual_Guest_Power_State, error)

	GetUserData(instanceId int) ([]datatypes.SoftLayer_Virtual_Guest_Attribute, error)

	GetSshKeys(instanceId int) ([]datatypes.SoftLayer_Security_Ssh_Key, error)

	GetActiveTransaction(instanceId int) (datatypes.SoftLayer_Provisioning_Version1_Transaction, error)
	GetActiveTransactions(instanceId int) ([]datatypes.SoftLayer_Provisioning_Version1_Transaction, error)

	GetPrimaryIpAddress(instanceId int) (string, error)

	PowerCycle(instanceId int) (bool, error)
	PowerOff(instanceId int) (bool, error)
	PowerOffSoft(instanceId int) (bool, error)
	PowerOn(instanceId int) (bool, error)

	RebootDefault(instanceId int) (bool, error)
	RebootSoft(instanceId int) (bool, error)
	RebootHard(instanceId int) (bool, error)

	SetMetadata(instanceId int, metadata string) (bool, error)

	ConfigureMetadataDisk(instanceId int) (datatypes.SoftLayer_Provisioning_Version1_Transaction, error)

	AttachIscsiVolume(instanceId int, volumeId int) (string, error)
	DetachIscsiVolume(instanceId int, volumeId int) error
}

Jump to

Keyboard shortcuts

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