Documentation
¶
Overview ¶
Package stscache caches `aws sts get-caller-identity` JSON for callers that re-resolve the active AWS identity on every coily invocation. STS
Index ¶
Constants ¶
View Source
const TTL = 1 * time.Hour
TTL is the freshness window for cached identity responses. Chosen at the high end of "stable for hours" - role assumption sessions typically
Variables ¶
This section is empty.
Functions ¶
func CallerIdentity ¶
CallerIdentity returns the JSON body of `aws sts get-caller-identity --output json`, served from cache if a fresh entry exists for the
func Invalidate ¶
func Invalidate() error
Invalidate drops the cached entry for the active profile. Callers that know they just rotated credentials or assumed a different role can use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.