Skip to content

Commit

Permalink
reorder NpmjsKeysTarget sub-structs
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
  • Loading branch information
ramonpetgrave64 committed Jan 10, 2024
1 parent 0b91361 commit 17e2f5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions verifiers/internal/gha/npm_sigstore_tuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ const (
type NpmjsKeysTarget struct {
Keys []Key `json:"keys"`
}
type ValidFor struct {
Start time.Time `json:"start"`
type Key struct {
KeyID string `json:"keyId"`
KeyUsage string `json:"keyUsage"`
PublicKey PublicKey `json:"publicKey"`
}
type PublicKey struct {
RawBytes string `json:"rawBytes"`
KeyDetails string `json:"keyDetails"`
ValidFor ValidFor `json:"validFor"`
}
type Key struct {
KeyID string `json:"keyId"`
KeyUsage string `json:"keyUsage"`
PublicKey PublicKey `json:"publicKey"`
type ValidFor struct {
Start time.Time `json:"start"`
}

type SigstoreTufClient interface {
Expand Down

0 comments on commit 17e2f5c

Please sign in to comment.