session

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	Session     *session.Session
	ProfileName string
}

Pool is a type that holds an instance of an AWS session as well as the profile name used to initialize it

type PoolSafe

type PoolSafe struct {
	sync.Mutex
	Sessions map[string]*Pool
}

PoolSafe is a type that allows for goroutine-safe access to a slice of SessionPool objects via mutex locks

func NewPoolSafe

func NewPoolSafe(profiles []string, regions []string) (allSessions *PoolSafe)

NewPoolSafe is used to create a pool of AWS sessions with different profile/region permutations

Jump to

Keyboard shortcuts

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