2015-06-20 18:25:21 +02:00
|
|
|
package softlayer
|
|
|
|
|
|
|
|
import (
|
|
|
|
datatypes "github.com/maximilien/softlayer-go/data_types"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SoftLayer_Network_Storage_Service interface {
|
|
|
|
Service
|
|
|
|
|
|
|
|
DeleteObject(volumeId int) (bool, error)
|
|
|
|
|
|
|
|
CreateIscsiVolume(size int, location string) (datatypes.SoftLayer_Network_Storage, error)
|
|
|
|
DeleteIscsiVolume(volumeId int, immediateCancellationFlag bool) error
|
|
|
|
GetIscsiVolume(volumeId int) (datatypes.SoftLayer_Network_Storage, error)
|
2016-05-04 17:48:12 +02:00
|
|
|
GetBillingItem(volumeId int) (datatypes.SoftLayer_Billing_Item, error)
|
2015-06-20 18:25:21 +02:00
|
|
|
HasAllowedVirtualGuest(volumeId int, vmId int) (bool, error)
|
|
|
|
AttachIscsiVolume(virtualGuest datatypes.SoftLayer_Virtual_Guest, volumeId int) (bool, error)
|
|
|
|
DetachIscsiVolume(virtualGuest datatypes.SoftLayer_Virtual_Guest, volumeId int) error
|
|
|
|
}
|