get.porter.sh/porter@v1.3.0/pkg/signing/signer.go (about) 1 package signing 2 3 import "context" 4 5 // Signer is an interface for signing and verifying Porter 6 // bundles and bundle images. 7 type Signer interface { 8 Close() error 9 10 // Sign generates a signature for the specified reference, which 11 // can be a Porter bundle or an bundle image. 12 Sign(ctx context.Context, ref string) error 13 // Verify attempts to verify a signature for the specified 14 // reference, which can be a Porter bundle or an bundle image. 15 Verify(ctx context.Context, ref string) error 16 // TODO 17 Connect(ctx context.Context) error 18 }