Documentation ¶
Index ¶
- func AwsConfigFromCredentials(accessKeyId string, secretAccessKey string, sessionToken string) aws.Config
- func CoalesceErr(args ...error) error
- func FileExists(path string) bool
- func GetCurrentAccountId(cfg aws.Config) (string, error)
- func IndexOf[T comparable](slice []T, searchValue T) int
- func IsErrorDueToEBSEncryptionByDefault(err error) bool
- func Min(a int, b int) int
- func RandomHexString(length int) string
- func RandomString(length int) string
- func Remove(slice []string, index int) []string
- func WaitForAndAssumeAWSRole(awsConnection *aws.Config, roleArn string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoalesceErr ¶
func FileExists ¶
func IndexOf ¶ added in v2.7.0
func IndexOf[T comparable](slice []T, searchValue T) int
IndexOf returns the index of a given value in a slice, or -1 if not found
func Min ¶
The Min function returns the smallest of two integers Note: math.Min only works for float64
func RandomHexString ¶
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.