Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAMUserAuth ¶
type IAMUserAuth struct {
RootEmail string
Username string
Password string
TOTP TOTPProvider // optional, for accounts with 2FA
// contains filtered or unexported fields
}
IAMUserAuth holds credentials for IAM user authentication. Token is cached so multiple SDK clients sharing the same instance do not trigger redundant logins.
func (*IAMUserAuth) Authenticate ¶
func (a *IAMUserAuth) Authenticate(ctx context.Context) (accessToken string, expiresAt int64, err error)
Authenticate returns a valid access token. If a cached token exists and has not expired, it is returned immediately without a network call.
type SecretTOTP ¶
type SecretTOTP struct {
Secret string // base32-encoded TOTP secret
}
SecretTOTP computes TOTP codes from a base32-encoded shared secret (RFC 6238).
Click to show internal directories.
Click to hide internal directories.