Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveAccountID ¶ added in v0.16.0
ResolveAccountID calls STS GetCallerIdentity to determine the AWS account ID. Returns the account ID string on success. If the call fails, it returns the provided fallback value (typically the profile name).
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader wraps AWS SDK configuration loading to allow injection in tests.
func NewLoader ¶
NewLoader returns a Loader that uses the default AWS SDK behavior. If endpoint is non-empty, it is applied as the base endpoint for all services.
func NewTestLoader ¶ added in v0.16.1
NewTestLoader creates a Loader with a custom load function for testing.
type Service ¶
type Service interface {
Name() string
Title() string
Init(ctx context.Context, cfg aws.Config, opts ServiceOptions) (tea.Model, error)
}
Service defines a pluggable AWS-backed UI module.
type ServiceLogger ¶
type ServiceLogger interface {
Debug(msg string, kv ...interface{})
Info(msg string, kv ...interface{})
Error(msg string, kv ...interface{})
}
ServiceLogger is a narrow logging interface used by services.
type ServiceOptions ¶
type ServiceOptions struct {
Logger ServiceLogger
Cache *cache.Cache
AccountID string
}
ServiceOptions contains dependencies shared with services.