Documentation ¶
Overview ¶
processcreds takes a standard AWS credentials provider and provides a method to serialize credentials per the AWS processcreds specification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SerializeCredentials ¶
func SerializeCredentials(ep ExpiringProvider) ([]byte, error)
SerializeCredentials takes an ExpiringProvider and returns a serialized JSON document. It is suitable for printing to standard out in an aws credentials_process.
Types ¶
type CredentialOutput ¶
type CredentialOutput struct { Version int AccessKeyId string SecretAccessKey string SessionToken string Expiration *time.Time }
CredentialOutput is the JSON format expected by the AWS processcreds provider
type ExpiringProvider ¶
type ExpiringProvider interface { credentials.Provider credentials.Expirer }
ExpiringProvider is required so we know when the credentials expire
Click to show internal directories.
Click to hide internal directories.