| 1 |
package ita |
| 2 |
|
| 3 |
type tdxEvidence struct { |
| 4 |
EventLog []byte `json:"event_log"` |
| 5 |
CanonicalEventLog []byte `json:"canonical_event_log"` |
| 6 |
Quote []byte `json:"quote"` |
| 7 |
VerifierNonce nonce `json:"verifier_nonce"` |
| 8 |
} |
| 9 |
|
| 10 |
type nonce struct { |
| 11 |
Val []byte `json:"val"` |
| 12 |
Iat []byte `json:"iat"` |
| 13 |
Signature []byte `json:"signature"` |
| 14 |
} |
| 15 |
|
| 16 |
type containerSignature struct { |
| 17 |
Payload []byte `json:"payload"` |
| 18 |
Signature []byte `json:"signature"` |
| 19 |
} |
| 20 |
|
| 21 |
type keyIDs struct { |
| 22 |
IDs map[string][]string `json:"key_ids"` |
| 23 |
} |
| 24 |
|
| 25 |
type principalTags struct { |
| 26 |
ContainerSignatureKIDs keyIDs `json:"container_image_signatures"` |
| 27 |
} |
| 28 |
|
| 29 |
type tokenTypeOptions struct { |
| 30 |
AllowedPrincipalTags principalTags `json:"allowed_principal_tags"` |
| 31 |
} |
| 32 |
|
| 33 |
type tokenOptions struct { |
| 34 |
Audience string `json:"audience"` |
| 35 |
Nonces []string `json:"nonce"` |
| 36 |
TokenType string `json:"token_type"` |
| 37 |
TokenTypeOpts tokenTypeOptions `json:"token_type_options"` |
| 38 |
} |
| 39 |
|
| 40 |
type confidentialSpaceInfo struct { |
| 41 |
SignedEntities []containerSignature `json:"signed_entities"` |
| 42 |
TokenOpts tokenOptions `json:"token_options"` |
| 43 |
} |
| 44 |
|
| 45 |
type gcpData struct { |
| 46 |
GcpCredentials []string `json:"gcp_credentials"` |
| 47 |
AKCert []byte `json:"ak_cert"` |
| 48 |
IntermediateCerts [][]byte `json:"intermediate_certs"` |
| 49 |
CSInfo confidentialSpaceInfo `json:"confidential_space_info"` |
| 50 |
} |
| 51 |
|
| 52 |
type tokenRequest struct { |
| 53 |
PolicyMatch bool `json:"policy_must_match"` |
| 54 |
TDX tdxEvidence `json:"tdx"` |
| 55 |
SigAlg string `json:"token_signing_alg"` |
| 56 |
GCP gcpData `json:"gcpcs"` |
| 57 |
} |
| 58 |
|
| 59 |
type tokenResponse struct { |
| 60 |
Token string `json:"token"` |
| 61 |
} |