@@ -74,10 +74,10 @@ func WithTrustStore(trustStore *trustpolicy.Document) Options {
74
74
}
75
75
}
76
76
77
- // WithRootCertificate is a function that creates a NotationOptions function option
78
- // to set the root CA certificate for notary.
79
- // It takes in the certificate data as a byte slice and the name of the certificate .
80
- // The function returns a NotationOptions function option that sets the public certificate
77
+ // WithRootCertificate is a functional option for overriding the default
78
+ // rootCertificate options used by the verifier to set the root CA certificate for notary.
79
+ // It takes in the certificate data as a byte slice.
80
+ // The function returns a options function option that sets the public certificate
81
81
// in the notation options.
82
82
func WithRootCertificate (data []byte ) Options {
83
83
return func (opts * options ) {
@@ -94,15 +94,15 @@ func WithRemoteOptions(opts ...remote.Option) Options {
94
94
}
95
95
96
96
// WithAuth is a functional option for overriding the default
97
- // remote options used by the verifier
97
+ // authenticator options used by the verifier
98
98
func WithAuth (auth authn.Authenticator ) Options {
99
99
return func (o * options ) {
100
100
o .auth = auth
101
101
}
102
102
}
103
103
104
104
// WithKeychain is a functional option for overriding the default
105
- // remote options used by the verifier
105
+ // keychain options used by the verifier
106
106
func WithKeychain (key authn.Keychain ) Options {
107
107
return func (o * options ) {
108
108
o .keychain = key
0 commit comments