Versions in this module Expand all Collapse all v1 v1.0.1 Sep 22, 2023 Changes in this version + const AtsCertChainMaxLen + const DefaultRetryWaitMaxSeconds + const DefaultRetryWaitMinSeconds + const HeaderRequestId + const HeaderTraceId + const MaxRetries + const ServiceUnavailableError + type AttestArgs struct + Adapter EvidenceAdapter + PolicyIds []uuid.UUID + RequestId string + type AttestResponse struct + Headers http.Header + Token string + type AttestationTokenResponse struct + Token string + type Config struct + ApiKey string + ApiUrl string + BaseUrl string + TlsCfg *tls.Config + type Connector interface + Attest func(AttestArgs) (AttestResponse, error) + GetNonce func(GetNonceArgs) (GetNonceResponse, error) + GetToken func(GetTokenArgs) (GetTokenResponse, error) + GetTokenSigningCertificates func() ([]byte, error) + VerifyToken func(string) (*jwt.Token, error) + func New(cfg *Config) (Connector, error) + type Evidence struct + EventLog []byte + Evidence []byte + Type uint32 + UserData []byte + type EvidenceAdapter interface + CollectEvidence func(nonce []byte) (*Evidence, error) + type GetNonceArgs struct + RequestId string + type GetNonceResponse struct + Headers http.Header + Nonce *VerifierNonce + type GetTokenArgs struct + Evidence *Evidence + Nonce *VerifierNonce + PolicyIds []uuid.UUID + RequestId string + type GetTokenResponse struct + Headers http.Header + Token string + type RetryConfig struct + BackOff retryablehttp.Backoff + CheckRetry retryablehttp.CheckRetry + RetryMax *int + RetryWaitMax *time.Duration + RetryWaitMin *time.Duration + type VerifierNonce struct + Iat []byte + Signature []byte + Val []byte