Documentation
¶
Overview ¶
Package sts is doze-aws's local Security Token Service. STS is the identity hinge of the AWS SDK ecosystem: countless tools call GetCallerIdentity on startup and AssumeRole to build sessions, and fail hard when no endpoint answers. Locally there is exactly one identity and nothing to authenticate, so every operation answers instantly with the fixed doze-aws account and freshly minted throwaway credentials.
The service is stateless: Options.DataDir is accepted for constructor uniformity with the other services and never used.
See docs/api-support/sts.md for the operation-by-operation support table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// DataDir is accepted for uniformity with the stateful services; STS
// stores nothing.
DataDir string
// Logf receives one line per handled request; nil discards.
Logf func(format string, args ...any)
// Clock overrides time.Now in tests.
Clock func() time.Time
}
Options configures the service. All fields are optional.