utils

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsConfigFromCredentials

func AwsConfigFromCredentials(accessKeyId string, secretAccessKey string, sessionToken string) aws.Config

func CoalesceErr

func CoalesceErr(args ...error) error

func FileExists

func FileExists(path string) bool

func GetCurrentAccountId

func GetCurrentAccountId(cfg aws.Config) (string, error)

func IsErrorDueToEBSEncryptionByDefault

func IsErrorDueToEBSEncryptionByDefault(err error) bool

func Min

func Min(a int, b int) int

The Min function returns the smallest of two integers Note: math.Min only works for float64

func RandomHexString

func RandomHexString(length int) string

func RandomString

func RandomString(length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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