Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAttestationFailed indicates that attestation failed. ErrAttestationFailed = errors.New("attestation failed") // ErrAttestationVTpmFailed indicates that vTPM attestation failed. ErrAttestationVTpmFailed = errors.New("vTPM attestation failed") // ErrAttestationType indicates that the attestation type is invalid. ErrAttestationType = errors.New("invalid attestation type") ErrUnauthorized = errors.New("unauthorized") // ErrAttestationUnmarshal indicates that the attestation report could not be unmarshaled. ErrAttestationUnmarshal = errors.New("failed to unmarshal the attestation report") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Proxy() http.Handler
Attestation(
reportData [quoteprovider.Nonce]byte, nonce [vtpm.Nonce]byte, toJSON bool,
) ([]byte, error)
}
func New ¶
func New(config *Config, provider attestation.Provider, ccPlatform attestation.PlatformType) (Service, error)
Click to show internal directories.
Click to hide internal directories.