tpm

package module
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 17 Imported by: 2

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

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
}

Directories

Path Synopsis
v4

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址