From 8edd473bbfcf664112b90186ec07aaf93228937f Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Tue, 10 Sep 2024 10:47:32 +0200 Subject: [PATCH] remove attestationVariant type --- api/attestationconfigapi/fetcher.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/api/attestationconfigapi/fetcher.go b/api/attestationconfigapi/fetcher.go index c1e25ed022..d4f0dab026 100644 --- a/api/attestationconfigapi/fetcher.go +++ b/api/attestationconfigapi/fetcher.go @@ -20,21 +20,13 @@ const cosignPublicKey = constants.CosignPublicKeyReleases var ( // AzureSEVSNP is the Azure SEV-SNP variant. - AzureSEVSNP Variant = attestationVariant{variant: variant.AzureSEVSNP{}} + AzureSEVSNP Variant = variant.AzureSEVSNP{} // AWSSEVSNP is the AWS SEV-SNP variant. - AWSSEVSNP Variant = attestationVariant{variant: variant.AWSSEVSNP{}} + AWSSEVSNP Variant = variant.AWSSEVSNP{} // GCPSEVSNP is the GCP SEV-SNP variant. - GCPSEVSNP Variant = attestationVariant{variant: variant.GCPSEVSNP{}} + GCPSEVSNP Variant = variant.GCPSEVSNP{} ) -type attestationVariant struct { - variant Variant -} - -func (v attestationVariant) String() string { - return v.variant.String() -} - // Variant is a cloud provider specific attestation variant. type Variant interface { String() string