We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158184e commit 340d4ceCopy full SHA for 340d4ce
internal/oci/notation/notation.go
@@ -127,6 +127,12 @@ type NotationVerifier struct {
127
logger logr.Logger
128
}
129
130
+var _ truststore.X509TrustStore = &trustStore{}
131
+
132
+// trustStore is used by notation-go/verifier to retrieve the root certificate for notary.
133
+// The default behaviour is to read the certificate from disk and return it as a byte slice.
134
+// The reason for implementing the interface here is to avoid reading the certificate from disk
135
+// as the certificate is already available in memory.
136
type trustStore struct {
137
cert []byte
138
0 commit comments