oci

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 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.TestingT, ocid string)

DeleteImage deletes a custom image with given OCID.

func DeleteImageE

func DeleteImageE(t testing.TestingT, ocid string) error

DeleteImageE deletes a custom image with given OCID.

func GetAllAvailabilityDomains

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

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

func GetAllAvailabilityDomainsE

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

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

func GetAllVcnIDs

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

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

func GetAllVcnIDsE

func GetAllVcnIDsE(t testing.TestingT, 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.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

func GetRandomAvailabilityDomain(t testing.TestingT, 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.TestingT, 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.TestingT, 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.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

func GetRootCompartmentID(t testing.TestingT) string

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

func GetRootCompartmentIDE

func GetRootCompartmentIDE(t testing.TestingT) (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