attestation

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewAttestationCache

func NewAttestationCache(cageDomain string, pollingInterval time.Duration) (*Cache, error)

func (*Cache) Get

func (c *Cache) Get() []byte

func (*Cache) LoadDoc

func (c *Cache) LoadDoc(ctx context.Context)

func (*Cache) Set

func (c *Cache) Set(doc []byte)

func (*Cache) StopPolling

func (c *Cache) StopPolling()

type CageDocResponse

type CageDocResponse struct {
	AttestationDoc string `json:"attestation_doc"`
}

type PCRManager added in v1.0.0

type PCRManager interface {
	Get() *[]attestation.PCRs
}

type PollingProvider added in v1.0.0

type PollingProvider struct {
	// contains filtered or unexported fields
}

func NewPollingPCRManager added in v1.0.0

func NewPollingPCRManager(pollingInterval time.Duration,
	getPcrs func() ([]attestation.PCRs, error),
) *PollingProvider

func (*PollingProvider) Get added in v1.0.0

func (c *PollingProvider) Get() *[]attestation.PCRs

func (*PollingProvider) Set added in v1.0.0

func (c *PollingProvider) Set(pcrs *[]attestation.PCRs)

func (*PollingProvider) StopPolling added in v1.0.0

func (c *PollingProvider) StopPolling()

type StaticProvider added in v1.0.0

type StaticProvider struct {
	// contains filtered or unexported fields
}

func NewStaticPCRManager added in v1.0.0

func NewStaticPCRManager(pcrs []attestation.PCRs) *StaticProvider

func (*StaticProvider) Get added in v1.0.0

func (c *StaticProvider) Get() *[]attestation.PCRs

Jump to

Keyboard shortcuts

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