Documentation ¶
Index ¶
- func AvailabilityDomain() *string
- func CheckLifecycleState(lifecycleState string) func(interface{}) (bool, error)
- func CompartmentID() *string
- func FindLifecycleFieldValue(request interface{}) (string, error)
- func GetRandomString(n int) string
- func LogIfError(err error)
- func ParseEnvironmentVariables()
- func RetryUntilTrueOrError(operation func() (interface{}, error), ...) error
- func RootCompartmentID() *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailabilityDomain ¶
func AvailabilityDomain() *string
AvailabilityDomain return the aviailability domain defined in .env.sample file
func CheckLifecycleState ¶
CheckLifecycleState returns a function that checks for that a struct has the given lifecycle
func CompartmentID ¶
func CompartmentID() *string
CompartmentID return the compartment ID defined in .env.sample file
func FindLifecycleFieldValue ¶
FindLifecycleFieldValue finds lifecycle value inside the struct based on reflection
func GetRandomString ¶
GetRandomString returns a random string with length equals to n
func LogIfError ¶
func LogIfError(err error)
LogIfError is equivalent to Println() followed by a call to os.Exit(1) if error is not nil
func ParseEnvironmentVariables ¶ added in v1.1.0
func ParseEnvironmentVariables()
ParseEnvironmentVariables parse shared variables from environment variables, other samples should define their own viariables and call this function to initialize shared variables
func RetryUntilTrueOrError ¶
func RetryUntilTrueOrError(operation func() (interface{}, error), predicate func(interface{}) (bool, error), frequency, timeout <-chan time.Time) error
RetryUntilTrueOrError retries a function until the predicate is true or it reaches a timeout. The operation is retried at the give frequency
func RootCompartmentID ¶
func RootCompartmentID() *string
RootCompartmentID return the root compartment ID defined in .env.sample file
Types ¶
This section is empty.