get.porter.sh/porter@v1.3.0/pkg/signing/plugins/signing_protocol.go (about) 1 package plugins 2 3 import "context" 4 5 // SigningProtocol is the interface that signing plugins must implement. 6 // This defines the protocol used to communicate with signing plugins. 7 type SigningProtocol interface { 8 Connect(ctx context.Context) error 9 10 // Resolve a secret value from a secret store 11 // - ref is OCI reference to verify 12 Sign(ctx context.Context, ref string) error 13 14 // Verify attempts to verify the signature of a given reference 15 // - ref is OCI reference to verify 16 Verify(ctx context.Context, ref string) error 17 }