Documentation
¶
Index ¶
Constants ¶
View Source
const (
TPMProviderName = "TPMProvider"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TPMCredentialsProvider ¶
type TPMCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewAWSTPMCredentials ¶
func NewAWSTPMCredentials(cfg TPMProvider) (*TPMCredentialsProvider, error)
NewAWSTPMCredentials create AWS TPM based HMAC authentictaion credentials.
the root HMAC key is sealed inside a Trusted Platform Module (TPM)
func (*TPMCredentialsProvider) ExpiresAt ¶
func (s *TPMCredentialsProvider) ExpiresAt() time.Time
func (*TPMCredentialsProvider) IsExpired ¶
func (s *TPMCredentialsProvider) IsExpired() bool
func (*TPMCredentialsProvider) Retrieve ¶
func (s *TPMCredentialsProvider) Retrieve(ctx context.Context) (aws.Credentials, error)
type TPMProvider ¶
type TPMProvider struct {
AssumeRoleInput *sts.AssumeRoleInput // sts.AssumeRoleInput structure
TPMSigner *hmacsigner.TPMSigner // TPMSigner from github.com/salrashid123/aws_hmac/tpm/signer
GetSessionTokenInput *sts.GetSessionTokenInput // sts.SessionTokenInput structure
Version string // default: "2011-06-15",
Region string
}
Click to show internal directories.
Click to hide internal directories.