providers

package
v1.52.2 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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// RotatingSharedCredentialsProviderName is the name of this provider
	RotatingSharedCredentialsProviderName = "RotatingSharedCredentialsProvider"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RotatingSharedCredentialsProvider

type RotatingSharedCredentialsProvider struct {
	credentials.Expiry

	RotationInterval time.Duration
	// contains filtered or unexported fields
}

RotatingSharedCredentialsProvider is a provider that retrieves credentials via the shared credentials provider, and adds the functionality of expiring and re-retrieving those credentials from the file.

func NewRotatingSharedCredentialsProvider

func NewRotatingSharedCredentialsProvider() *RotatingSharedCredentialsProvider

NewRotatingSharedCredentials returns a rotating shared credentials provider with default values set.

func (*RotatingSharedCredentialsProvider) Retrieve

Retrieve will use the given filename and profile and retrieve AWS credentials.

Jump to

Keyboard shortcuts

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