Skip to content

Commit

Permalink
adding constants defined by notary project spec
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Oct 8, 2024
1 parent 1d9dc86 commit dfb2a51
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions signature/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ import (
"github.com/notaryproject/tspclient-go"
)

// SignatureMediaType list the supported media-type for signatures.
type SignatureMediaType string

// SigningScheme formalizes the feature set (guarantees) provided by
// the signature.
// Reference: https://github.com/notaryproject/notaryproject/blob/main/specs/signing-scheme.md
type SigningScheme string

// Constants supported by notation signature.
const (
// MediaTypePayloadV1 is the supported content type for signature's payload.
Expand All @@ -43,6 +35,14 @@ const (
AnnotationX509ChainThumbprint = "io.cncf.notary.x509chain.thumbprint#S256"
)

// SignatureMediaType list the supported media-type for signatures.
type SignatureMediaType string

// SigningScheme formalizes the feature set (guarantees) provided by
// the signature.
// Reference: https://github.com/notaryproject/notaryproject/blob/main/specs/signing-scheme.md
type SigningScheme string

// SigningSchemes supported by notation.
const (
// notary.x509 signing scheme.
Expand Down

0 comments on commit dfb2a51

Please sign in to comment.