Documentation ¶
Index ¶
- func DeleteImage(t testing.TestingT, ocid string)
- func DeleteImageE(t testing.TestingT, ocid string) error
- func GetAllAvailabilityDomains(t testing.TestingT, compartmentID string) []string
- func GetAllAvailabilityDomainsE(t testing.TestingT, compartmentID string) ([]string, error)
- func GetAllVcnIDs(t testing.TestingT, compartmentID string) []string
- func GetAllVcnIDsE(t testing.TestingT, compartmentID string) ([]string, error)
- func GetCompartmentIDFromEnvVar() string
- func GetMostRecentImageID(t testing.TestingT, compartmentID string, osName string, osVersion string) string
- func GetMostRecentImageIDE(t testing.TestingT, compartmentID string, osName string, osVersion string) (string, error)
- func GetPassPhraseFromEnvVar() string
- func GetRandomAvailabilityDomain(t testing.TestingT, compartmentID string) string
- func GetRandomAvailabilityDomainE(t testing.TestingT, compartmentID string) (string, error)
- func GetRandomSubnetID(t testing.TestingT, compartmentID string, availabilityDomain string) string
- func GetRandomSubnetIDE(t testing.TestingT, compartmentID string, availabilityDomain string) (string, error)
- func GetRootCompartmentID(t testing.TestingT) string
- func GetRootCompartmentIDE(t testing.TestingT) (string, error)
- func GetSubnetIDFromEnvVar() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteImage ¶
DeleteImage deletes a custom image with given OCID.
func DeleteImageE ¶
DeleteImageE deletes a custom image with given OCID.
func GetAllAvailabilityDomains ¶
GetAllAvailabilityDomains gets the list of availability domains available in the given compartment.
func GetAllAvailabilityDomainsE ¶
GetAllAvailabilityDomainsE gets the list of availability domains available in the given compartment.
func GetAllVcnIDs ¶
GetAllVcnIDs gets the list of VCNs available in the given compartment.
func GetAllVcnIDsE ¶
GetAllVcnIDsE gets the list of VCNs available in the given compartment.
func GetCompartmentIDFromEnvVar ¶
func GetCompartmentIDFromEnvVar() string
GetCompartmentIDFromEnvVar returns the compartment OCID for use with testing.
func GetMostRecentImageID ¶
func GetMostRecentImageID(t testing.TestingT, compartmentID string, osName string, osVersion string) string
GetMostRecentImageID gets the OCID of the most recent image in the given compartment that has the given OS name and version.
func GetMostRecentImageIDE ¶
func GetMostRecentImageIDE(t testing.TestingT, compartmentID string, osName string, osVersion string) (string, error)
GetMostRecentImageIDE gets the OCID of the most recent image in the given compartment that has the given OS name and version.
func GetPassPhraseFromEnvVar ¶
func GetPassPhraseFromEnvVar() string
GetPassPhraseFromEnvVar returns the pass phrase for use with testing.
func GetRandomAvailabilityDomain ¶
GetRandomAvailabilityDomain gets a randomly chosen availability domain for given compartment. The returned value can be overridden by of the environment variable TF_VAR_availability_domain.
func GetRandomAvailabilityDomainE ¶
GetRandomAvailabilityDomainE gets a randomly chosen availability domain for given compartment. The returned value can be overridden by of the environment variable TF_VAR_availability_domain.
func GetRandomSubnetID ¶
GetRandomSubnetID gets a randomly chosen subnet OCID in the given availability domain. The returned value can be overridden by of the environment variable TF_VAR_subnet_ocid.
func GetRandomSubnetIDE ¶
func GetRandomSubnetIDE(t testing.TestingT, compartmentID string, availabilityDomain string) (string, error)
GetRandomSubnetIDE gets a randomly chosen subnet OCID in the given availability domain. The returned value can be overridden by of the environment variable TF_VAR_subnet_ocid.
func GetRootCompartmentID ¶
GetRootComparmentID gets an OCID of the root compartment (a.k.a. tenancy OCID).
func GetRootCompartmentIDE ¶
GetRootComparmentIDE gets an OCID of the root compartment (a.k.a. tenancy OCID).
func GetSubnetIDFromEnvVar ¶
func GetSubnetIDFromEnvVar() string
GetSubnetIDFromEnvVar returns the subnet OCID for use with testing.
Types ¶
This section is empty.