oci

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImage

func DeleteImage(t *testing.T, ocid string)

DeleteImage deletes a custom image with given OCID.

func DeleteImageE

func DeleteImageE(t *testing.T, ocid string) error

DeleteImageE deletes a custom image with given OCID.

func GetAllAvailabilityDomains

func GetAllAvailabilityDomains(t *testing.T, compartmentID string) []string

GetAllAvailabilityDomains gets the list of availability domains available in the given compartment.

func GetAllAvailabilityDomainsE

func GetAllAvailabilityDomainsE(t *testing.T, compartmentID string) ([]string, error)

GetAllAvailabilityDomainsE gets the list of availability domains available in the given compartment.

func GetAllVcnIDs

func GetAllVcnIDs(t *testing.T, compartmentID string) []string

GetAllVcnIDs gets the list of VCNs available in the given compartment.

func GetAllVcnIDsE

func GetAllVcnIDsE(t *testing.T, compartmentID string) ([]string, error)

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.T, 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.T, 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

func GetRandomAvailabilityDomain(t *testing.T, compartmentID string) string

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

func GetRandomAvailabilityDomainE(t *testing.T, compartmentID string) (string, error)

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

func GetRandomSubnetID(t *testing.T, compartmentID string, availabilityDomain string) string

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.T, 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

func GetRootCompartmentID(t *testing.T) string

GetRootComparmentID gets an OCID of the root compartment (a.k.a. tenancy OCID).

func GetRootCompartmentIDE

func GetRootCompartmentIDE(t *testing.T) (string, error)

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.

Jump to

Keyboard shortcuts

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