Skip to content

Commit

Permalink
docs(notation): remove mention of NotationOptions and cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jason <[email protected]>
  • Loading branch information
JasonTheDeveloper committed Mar 14, 2024
1 parent 53c737b commit 158184e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/oci/notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ func WithTrustStore(trustStore *trustpolicy.Document) Options {
}
}

// WithRootCertificate is a function that creates a NotationOptions function option
// to set the root CA certificate for notary.
// It takes in the certificate data as a byte slice and the name of the certificate.
// The function returns a NotationOptions function option that sets the public certificate
// WithRootCertificate is a functional option for overriding the default
// rootCertificate options used by the verifier to set the root CA certificate for notary.
// It takes in the certificate data as a byte slice.
// The function returns a options function option that sets the public certificate
// in the notation options.
func WithRootCertificate(data []byte) Options {
return func(opts *options) {
Expand All @@ -94,15 +94,15 @@ func WithRemoteOptions(opts ...remote.Option) Options {
}

// WithAuth is a functional option for overriding the default
// remote options used by the verifier
// authenticator options used by the verifier
func WithAuth(auth authn.Authenticator) Options {
return func(o *options) {
o.auth = auth
}
}

// WithKeychain is a functional option for overriding the default
// remote options used by the verifier
// keychain options used by the verifier
func WithKeychain(key authn.Keychain) Options {
return func(o *options) {
o.keychain = key
Expand Down

0 comments on commit 158184e

Please sign in to comment.