util

package
v0.0.0-...-fa1d1bb Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSSession

func GetAWSSession(options session.Options) *session.Session

GetAWSSession instantiates a AWS session

func GetS3Client

func GetS3Client(sesh *session.Session, region string) *s3.S3

GetS3Client instantiates a AWS S3 client given a session and region

func GetSTSClient

func GetSTSClient(sesh *session.Session, region string) *sts.STS

GetSTSClient instantiates a AWS STS client given a session and region

func GetSessionName

func GetSessionName(roleArn string) (string, error)

GetSessionName generates the session name based off of the username and role

func HandleAWSError

func HandleAWSError(err error, handler func(arr awserr.Error) string) string

HandleAWSError handles any AWS error

func PrettyPrint

func PrettyPrint(unformattedJSON interface{}) string

PrettyPrint prints out something that looks like JSON prettily

Types

This section is empty.

Jump to

Keyboard shortcuts

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