Documentation ¶
Index ¶
- Constants
- Variables
- func CleanUpVirtualGuest(virtualGuestId int)
- func ConfigureMetadataDiskOnVirtualGuest(virtualGuestId int) datatypes.SoftLayer_Provisioning_Version1_Transaction
- func CreateAccountService() (softlayer.SoftLayer_Account_Service, error)
- func CreateDisk(size int, location string) datatypes.SoftLayer_Network_Storage
- func CreateDnsDomainResourceRecordService() (softlayer.SoftLayer_Dns_Domain_ResourceRecord_Service, error)
- func CreateDnsDomainService() (softlayer.SoftLayer_Dns_Domain_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 CreateTestDnsDomain(name string) datatypes.SoftLayer_Dns_Domain
- func CreateTestDnsDomainResourceRecord(domainId int) datatypes.SoftLayer_Dns_Domain_ResourceRecord
- func CreateTestSshKey() (datatypes.SoftLayer_Security_Ssh_Key, string)
- func CreateVirtualGuestAndMarkItTest(securitySshKeys []datatypes.SoftLayer_Security_Ssh_Key) datatypes.SoftLayer_Virtual_Guest
- func CreateVirtualGuestBlockDeviceTemplateGroupService() (softlayer.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)
- func CreateVirtualGuestService() (softlayer.SoftLayer_Virtual_Guest_Service, error)
- func DeleteDisk(diskId int)
- func DeleteSshKey(sshKeyId int)
- func DeleteVirtualGuest(virtualGuestId int)
- func FileExists(filePath string) bool
- func FindAndDeleteTestSshKeys() error
- func FindAndDeleteTestVirtualGuests() ([]int, error)
- func FindTestSshKeys() ([]datatypes.SoftLayer_Security_Ssh_Key, error)
- func FindTestVirtualGuests() ([]datatypes.SoftLayer_Virtual_Guest, error)
- func GenerateSshKey() (string, string, error)
- func GetDatacenter() string
- func GetUsernameAndApiKey() (string, string, error)
- func GetVirtualGuestPrimaryIpAddress(virtualGuestId int) string
- func MarkVirtualGuestAsTest(virtualGuest datatypes.SoftLayer_Virtual_Guest) error
- func ReadJsonTestFixtures(packageName, fileName string) ([]byte, error)
- func RunCommand(timeout time.Duration, cmd string, args ...string) *Session
- func ScpToVirtualGuest(virtualGuestId int, sshKeyFilePath string, localFilePath string, ...)
- func SetTestFixturesForFakeSoftLayerClient(fakeSoftLayerClient *fakesslclient.FakeSoftLayerClient, fileNames []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 SshKeyPresent(sshKeyId int) bool
- func TestUserMetadata(userMetadata, sshKeyValue string)
- func WaitForCreatedDnsDomainResourceRecordToBePresent(dnsDomainResourceRecordId int)
- func WaitForCreatedDnsDomainToBePresent(dnsDomainId int)
- func WaitForCreatedSshKeyToBePresent(sshKeyId int)
- func WaitForDeletedDnsDomainResourceRecordToNoLongerBePresent(dnsDomainResourceRecordId int)
- func WaitForDeletedDnsDomainToNoLongerBePresent(dnsDomainId int)
- func WaitForDeletedSshKeyToNoLongerBePresent(sshKeyId int)
- func WaitForVirtualGuest(virtualGuestId int, targetState string, timeout time.Duration)
- func WaitForVirtualGuestBlockTemplateGroupToHaveNoActiveTransactions(virtualGuestBlockTemplateGroupId int)
- func WaitForVirtualGuestToBeRunning(virtualGuestId int)
- func WaitForVirtualGuestToHaveNoActiveTransactions(virtualGuestId int)
- func WaitForVirtualGuestToHaveNoActiveTransactionsOrToErr(virtualGuestId int)
- func WaitForVirtualGuestTransactionWithStatus(virtualGuestId int, status string)
Constants ¶
View Source
const ( TEST_NOTES_PREFIX = "TEST:softlayer-go" TEST_LABEL_PREFIX = "TEST:softlayer-go" DEFAULT_DATACENTER = "dal09" TEST_EMAIL = "testemail@sl.com" TEST_HOST = "test.example.com" TEST_TTL = 900 )
Variables ¶
View Source
var ( TIMEOUT time.Duration POLLING_INTERVAL time.Duration )
Functions ¶
func CleanUpVirtualGuest ¶ added in v0.3.0
func CleanUpVirtualGuest(virtualGuestId int)
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 CreateDisk ¶ added in v0.3.0
func CreateDisk(size int, location string) datatypes.SoftLayer_Network_Storage
func CreateDnsDomainResourceRecordService ¶ added in v0.4.0
func CreateDnsDomainResourceRecordService() (softlayer.SoftLayer_Dns_Domain_ResourceRecord_Service, error)
func CreateDnsDomainService ¶ added in v0.4.0
func CreateDnsDomainService() (softlayer.SoftLayer_Dns_Domain_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)
func CreateSecuritySshKeyService ¶
func CreateSecuritySshKeyService() (softlayer.SoftLayer_Security_Ssh_Key_Service, error)
func CreateTestDnsDomain ¶ added in v0.4.0
func CreateTestDnsDomain(name string) datatypes.SoftLayer_Dns_Domain
func CreateTestDnsDomainResourceRecord ¶ added in v0.4.0
func CreateTestDnsDomainResourceRecord(domainId int) datatypes.SoftLayer_Dns_Domain_ResourceRecord
func CreateTestSshKey ¶ added in v0.0.2
func CreateTestSshKey() (datatypes.SoftLayer_Security_Ssh_Key, string)
func CreateVirtualGuestAndMarkItTest ¶ added in v0.0.2
func CreateVirtualGuestAndMarkItTest(securitySshKeys []datatypes.SoftLayer_Security_Ssh_Key) datatypes.SoftLayer_Virtual_Guest
func CreateVirtualGuestBlockDeviceTemplateGroupService ¶ added in v0.3.0
func CreateVirtualGuestBlockDeviceTemplateGroupService() (softlayer.SoftLayer_Virtual_Guest_Block_Device_Template_Group_Service, error)
func CreateVirtualGuestService ¶
func CreateVirtualGuestService() (softlayer.SoftLayer_Virtual_Guest_Service, error)
func DeleteDisk ¶ added in v0.3.0
func DeleteDisk(diskId int)
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 FindTestSshKeys ¶
func FindTestSshKeys() ([]datatypes.SoftLayer_Security_Ssh_Key, error)
func FindTestVirtualGuests ¶
func FindTestVirtualGuests() ([]datatypes.SoftLayer_Virtual_Guest, error)
func GenerateSshKey ¶ added in v0.3.0
func GetDatacenter ¶ added in v0.3.0
func GetDatacenter() string
func GetUsernameAndApiKey ¶
func GetVirtualGuestPrimaryIpAddress ¶ added in v0.1.0
func MarkVirtualGuestAsTest ¶
func MarkVirtualGuestAsTest(virtualGuest datatypes.SoftLayer_Virtual_Guest) error
func ReadJsonTestFixtures ¶ added in v0.3.0
func RunCommand ¶ added in v0.0.2
func ScpToVirtualGuest ¶ added in v0.0.2
func SetTestFixturesForFakeSoftLayerClient ¶ added in v0.7.0
func SetTestFixturesForFakeSoftLayerClient(fakeSoftLayerClient *fakesslclient.FakeSoftLayerClient, fileNames []string)
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 SshKeyPresent ¶ added in v0.3.0
func TestUserMetadata ¶ added in v0.1.0
func TestUserMetadata(userMetadata, sshKeyValue string)
func WaitForCreatedDnsDomainResourceRecordToBePresent ¶ added in v0.4.0
func WaitForCreatedDnsDomainResourceRecordToBePresent(dnsDomainResourceRecordId int)
func WaitForCreatedDnsDomainToBePresent ¶ added in v0.4.0
func WaitForCreatedDnsDomainToBePresent(dnsDomainId int)
func WaitForCreatedSshKeyToBePresent ¶ added in v0.0.2
func WaitForCreatedSshKeyToBePresent(sshKeyId int)
func WaitForDeletedDnsDomainResourceRecordToNoLongerBePresent ¶ added in v0.4.0
func WaitForDeletedDnsDomainResourceRecordToNoLongerBePresent(dnsDomainResourceRecordId int)
func WaitForDeletedDnsDomainToNoLongerBePresent ¶ added in v0.4.0
func WaitForDeletedDnsDomainToNoLongerBePresent(dnsDomainId int)
func WaitForDeletedSshKeyToNoLongerBePresent ¶ added in v0.0.2
func WaitForDeletedSshKeyToNoLongerBePresent(sshKeyId int)
func WaitForVirtualGuest ¶ added in v0.0.2
func WaitForVirtualGuestBlockTemplateGroupToHaveNoActiveTransactions ¶ added in v0.3.0
func WaitForVirtualGuestBlockTemplateGroupToHaveNoActiveTransactions(virtualGuestBlockTemplateGroupId int)
func WaitForVirtualGuestToBeRunning ¶ added in v0.0.2
func WaitForVirtualGuestToBeRunning(virtualGuestId int)
func WaitForVirtualGuestToHaveNoActiveTransactions ¶ added in v0.0.2
func WaitForVirtualGuestToHaveNoActiveTransactions(virtualGuestId int)
func WaitForVirtualGuestToHaveNoActiveTransactionsOrToErr ¶ added in v0.3.0
func WaitForVirtualGuestToHaveNoActiveTransactionsOrToErr(virtualGuestId int)
func WaitForVirtualGuestTransactionWithStatus ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.