Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureMetadataDiskOnVirtualGuest(virtualGuestId int) datatypes.SoftLayer_Provisioning_Version1_Transaction
- func CreateAccountService() (softlayer.SoftLayer_Account_Service, error)
- func CreateNetworkStorageService() (softlayer.SoftLayer_Network_Storage_Service, error)
- func CreateProductPackageService() (softlayer.SoftLayer_Product_Package_Service, error)
- func CreateSecuritySshKeyService() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)
- func CreateTestSshKey(sshKeyPath string) datatypes.SoftLayer_Security_Ssh_Key
- func CreateVirtualGuestAndMarkItTest(securitySshKeys []datatypes.SoftLayer_Security_Ssh_Key) datatypes.SoftLayer_Virtual_Guest
- func CreateVirtualGuestService() (softlayer.SoftLayer_Virtual_Guest_Service, error)
- func DeleteSshKey(sshKeyId int)
- func DeleteVirtualGuest(virtualGuestId int)
- func FileExists(filePath string) bool
- func FindAndDeleteTestSshKeys() error
- func FindAndDeleteTestVirtualGuests() ([]int, error)
- func FindTestNetworkStorage() ([]datatypes.SoftLayer_Network_Storage, error)
- func FindTestSshKeys() ([]datatypes.SoftLayer_Security_Ssh_Key, error)
- func FindTestVirtualDiskImages() ([]datatypes.SoftLayer_Virtual_Disk_Image, error)
- func FindTestVirtualGuests() ([]datatypes.SoftLayer_Virtual_Guest, error)
- func GetUsernameAndApiKey() (string, string, error)
- func GetVirtualGuestPrimaryIpAddress(virtualGuestId int) string
- func MarkVirtualGuestAsTest(virtualGuest datatypes.SoftLayer_Virtual_Guest) error
- func RunCommand(timeout time.Duration, cmd string, args ...string) *Session
- func ScpToVirtualGuest(virtualGuestId int, sshKeyFilePath string, localFilePath string, ...)
- func SetUserDataToVirtualGuest(virtualGuestId int, metadata string)
- func SetUserMetadataAndConfigureDisk(virtualGuestId int, userMetadata string) datatypes.SoftLayer_Provisioning_Version1_Transaction
- func SshExecOnVirtualGuest(virtualGuestId int, sshKeyFilePath string, remoteFilePath string, ...) int
- func TestUserMetadata(userMetadata, sshKeyFilePath string)
- func WaitForCreatedSshKeyToBePresent(sshKeyId int)
- func WaitForDeletedSshKeyToNoLongerBePresent(sshKeyId int)
- func WaitForIscsiStorageToBeDeleted(storageId int)
- func WaitForVirtualGuest(virtualGuestId int, targetState string, timeout time.Duration)
- func WaitForVirtualGuestToBeRunning(virtualGuestId int)
- func WaitForVirtualGuestToHaveNoActiveTransactions(virtualGuestId int)
Constants ¶
View Source
const ( TEST_NOTES_PREFIX = "TEST:softlayer-go" TEST_LABEL_PREFIX = "TEST:softlayer-go" MAX_WAIT_RETRIES = 10 WAIT_TIME = 5 )
Variables ¶
View Source
var ( TIMEOUT time.Duration POLLING_INTERVAL time.Duration )
Functions ¶
func ConfigureMetadataDiskOnVirtualGuest ¶ added in v0.0.2
func ConfigureMetadataDiskOnVirtualGuest(virtualGuestId int) datatypes.SoftLayer_Provisioning_Version1_Transaction
func CreateAccountService ¶
func CreateAccountService() (softlayer.SoftLayer_Account_Service, error)
func CreateNetworkStorageService ¶ added in v0.1.0
func CreateNetworkStorageService() (softlayer.SoftLayer_Network_Storage_Service, error)
func CreateProductPackageService ¶ added in v0.1.0
func CreateProductPackageService() (softlayer.SoftLayer_Product_Package_Service, error)
TODO: need to refine and merge the CreateXXXService in test_helpers
func CreateSecuritySshKeyService ¶
func CreateSecuritySshKeyService() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)
func CreateTestSshKey ¶ added in v0.0.2
func CreateTestSshKey(sshKeyPath string) datatypes.SoftLayer_Security_Ssh_Key
func CreateVirtualGuestAndMarkItTest ¶ added in v0.0.2
func CreateVirtualGuestAndMarkItTest(securitySshKeys []datatypes.SoftLayer_Security_Ssh_Key) datatypes.SoftLayer_Virtual_Guest
func CreateVirtualGuestService ¶
func CreateVirtualGuestService() (softlayer.SoftLayer_Virtual_Guest_Service, error)
func DeleteSshKey ¶ added in v0.0.2
func DeleteSshKey(sshKeyId int)
func DeleteVirtualGuest ¶ added in v0.0.2
func DeleteVirtualGuest(virtualGuestId int)
func FileExists ¶ added in v0.0.2
func FindAndDeleteTestSshKeys ¶
func FindAndDeleteTestSshKeys() error
func FindTestNetworkStorage ¶
func FindTestNetworkStorage() ([]datatypes.SoftLayer_Network_Storage, error)
func FindTestSshKeys ¶
func FindTestSshKeys() ([]datatypes.SoftLayer_Security_Ssh_Key, error)
func FindTestVirtualDiskImages ¶
func FindTestVirtualDiskImages() ([]datatypes.SoftLayer_Virtual_Disk_Image, error)
func FindTestVirtualGuests ¶
func FindTestVirtualGuests() ([]datatypes.SoftLayer_Virtual_Guest, error)
func GetUsernameAndApiKey ¶
func GetVirtualGuestPrimaryIpAddress ¶ added in v0.1.0
func MarkVirtualGuestAsTest ¶
func MarkVirtualGuestAsTest(virtualGuest datatypes.SoftLayer_Virtual_Guest) error
func RunCommand ¶ added in v0.0.2
func ScpToVirtualGuest ¶ added in v0.0.2
func SetUserDataToVirtualGuest ¶ added in v0.0.2
func SetUserMetadataAndConfigureDisk ¶ added in v0.0.2
func SetUserMetadataAndConfigureDisk(virtualGuestId int, userMetadata string) datatypes.SoftLayer_Provisioning_Version1_Transaction
func SshExecOnVirtualGuest ¶ added in v0.0.2
func TestUserMetadata ¶ added in v0.1.0
func TestUserMetadata(userMetadata, sshKeyFilePath string)
func WaitForCreatedSshKeyToBePresent ¶ added in v0.0.2
func WaitForCreatedSshKeyToBePresent(sshKeyId int)
func WaitForDeletedSshKeyToNoLongerBePresent ¶ added in v0.0.2
func WaitForDeletedSshKeyToNoLongerBePresent(sshKeyId int)
func WaitForIscsiStorageToBeDeleted ¶ added in v0.1.0
func WaitForIscsiStorageToBeDeleted(storageId int)
func WaitForVirtualGuest ¶ added in v0.0.2
func WaitForVirtualGuestToBeRunning ¶ added in v0.0.2
func WaitForVirtualGuestToBeRunning(virtualGuestId int)
func WaitForVirtualGuestToHaveNoActiveTransactions ¶ added in v0.0.2
func WaitForVirtualGuestToHaveNoActiveTransactions(virtualGuestId int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.