rename to resource URI

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
Ramon Petgrave
2024-06-20 16:58:13 +00:00
parent f5362e5a4a
commit 5636d0a832
3 changed files with 5 additions and 5 deletions

View File

@@ -197,7 +197,7 @@ func verifyVSACmd() *cobra.Command {
SubjectDigests: &o.SubjectDigests,
AttestationsPath: &o.AttestationsPath,
VerifierID: &o.VerifierID,
ResourceUri: &o.ResourceUri,
ResourceURI: &o.ResourceURI,
VerifiedLevels: &o.VerifiedLevels,
PrintAttestation: &o.PrintAttestation,
PublicKeyPath: &o.PublicKeyPath,

View File

@@ -132,7 +132,7 @@ type VerifyVSAOptions struct {
SubjectDigests []string
AttestationsPath string
VerifierID string
ResourceUri string
ResourceURI string
VerifiedLevels []string
PublicKeyPath string
PublicKeyID string
@@ -153,7 +153,7 @@ func (o *VerifyVSAOptions) AddFlags(cmd *cobra.Command) {
cmd.Flags().StringVar(&o.VerifierID, "verifier-id", "",
"the unique verifier ID who created the attestations")
cmd.Flags().StringVar(&o.ResourceUri, "resource-uri", "",
cmd.Flags().StringVar(&o.ResourceURI, "resource-uri", "",
"the resource URI to be verified")
cmd.Flags().StringSliceVar(&o.VerifiedLevels, "verified-levels", []string{},

View File

@@ -33,7 +33,7 @@ type VerifyVSACommand struct {
SubjectDigests *[]string
AttestationsPath *string
VerifierID *string
ResourceUri *string
ResourceURI *string
VerifiedLevels *[]string
PrintAttestation *bool
PublicKeyPath *string
@@ -58,7 +58,7 @@ func (c *VerifyVSACommand) Exec(ctx context.Context) (*utils.TrustedAttesterID,
vsaOpts := &options.VSAOpts{
ExpectedDigests: *c.SubjectDigests,
ExpectedVerifierID: *c.VerifierID,
ExpectedResourceURI: *c.ResourceUri,
ExpectedResourceURI: *c.ResourceURI,
ExpectedVerifiedLevels: *c.VerifiedLevels,
}
pubKeyBytes, err := os.ReadFile(*c.PublicKeyPath)