Skip to content

Commit

Permalink
remove attestationVariant type
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Sep 10, 2024
1 parent e4576a2 commit 8edd473
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions api/attestationconfigapi/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8edd473

Please sign in to comment.