awscredentials

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package awscredentials adapts the framework credential boundary to the one existing AWS SDK. Native credential types stay behind feature adapters.

Index

Constants

View Source
const RefreshInterval = 5 * time.Minute

RefreshInterval bounds how long credentials without a known expiry are cached. The SDK credentials cache never refreshes non-expiring values, so a rotating provider that does not report expiry must still be consulted again.

Variables

This section is empty.

Functions

func KnownExpiry

func KnownExpiry(value aws.Credentials) (time.Time, bool)

KnownExpiry reports a real temporary-credential expiry, excluding the synthetic refresh deadline assigned to credentials of unknown lifetime.

Types

type Adapter

type Adapter struct{ Provider credentials.Provider }

func (Adapter) Retrieve

func (a Adapter) Retrieve(ctx context.Context) (aws.Credentials, error)

Jump to

Keyboard shortcuts

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