Skip to content

Commit 1d48724

Browse files
authored
Merge pull request #8 from nicholasSUSE/importable-functions
making verify a public function in order to import at regsync ghactions
2 parents 91878a2 + a2b1ffb commit 1d48724

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

cmd/verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/rancherlabs/slsactl/internal/verify"
8+
"github.com/rancherlabs/slsactl/pkg/verify"
99
)
1010

1111
const verifyf = `usage:
File renamed without changes.

internal/verify/verify.go renamed to pkg/verify/verify.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ var archSuffixes = []string{
2020
"-arm64",
2121
}
2222

23+
// Verify checks whether a given Rancher Prime image is signed based on the Cosign Signature spec.
24+
// The same extents to CNCF images within the Rancher ecosystem.
25+
//
26+
// Upstream documentation:
27+
// https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md
2328
func Verify(imageName string) error {
2429
ctx, cancel := context.WithTimeout(context.Background(), timeout)
2530
defer cancel()
File renamed without changes.

0 commit comments

Comments
 (0)