providers

package
Version: v0.0.0-...-5027423 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL