aws

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Region               string
	Profile              string
	AccessKeyID          string
	SecretAccessKey      string
	UseChainCredentials  bool
	Session              *session.Session
	SecretsManagerClient *secretsmanager.SecretsManager
	SecretCache          *cache.Cache
	CacheTTL             = 5 * time.Minute
)

Functions

func GetAwsSecret

func GetAwsSecret(secretName string, secretKey string) (string, error)

Types

type SessionProvider

type SessionProvider struct {
	Session *session.Session
}

SessionProvider custom provider to allow for fallback to session configured credentials.

func (*SessionProvider) IsExpired

func (m *SessionProvider) IsExpired() bool

IsExpired for SessionProvider.

func (*SessionProvider) Retrieve

func (m *SessionProvider) Retrieve() (credentials.Value, error)

Retrieve for SessionProvider.

Jump to

Keyboard shortcuts

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