package
19.4.0+incompatible
Repository: https://github.com/oracle/oci-go-sdk.git
Documentation: pkg.go.dev
# Functions
AvailabilityDomain return the aviailability domain defined in .env.sample file.
CheckLifecycleState returns a function that checks for that a struct has the given lifecycle.
CompartmentID return the compartment ID defined in .env.sample file.
FatalIfError is equivalent to Println() followed by a call to os.Exit(1) if error is not nil.
FindLifecycleFieldValue finds lifecycle value inside the struct based on reflection.
GetRandomString returns a random string with length equals to n.
GetRequestMetadataWithCustomizedRetryPolicy returns a requestMetadata which will do the retry based on input function (retry until the function return false).
GetRequestMetadataWithDefaultRetryPolicy returns a requestMetadata with default retry policy which will do retry for non-200 status code return back from service Notes: not all non-200 status code should do retry, this should be based on specific operation such as delete operation followed with get operation will retrun 404 if resource already been deleted.
ParseEnvironmentVariables parse shared variables from environment variables, other samples should define their own viariables and call this function to initialize shared variables.
RetryUntilTrueOrError retries a function until the predicate is true or it reaches a timeout.
RootCompartmentID return the root compartment ID defined in .env.sample file.
WriteTempFileOfSize output random content to a file.