Skip to content

Commit 5ab1c1a

Browse files
authored
advancedtls: Add notes about required vs. optional for FileWatcherOptions (#7165)
1 parent 1e8b9b7 commit 5ab1c1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/advancedtls/crl_provider.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ func (p *StaticCRLProvider) CRL(cert *x509.Certificate) (*CRL, error) {
9090
// FileWatcherOptions represents a data structure holding a configuration for
9191
// FileWatcherCRLProvider.
9292
type FileWatcherOptions struct {
93-
CRLDirectory string // Path of the directory containing CRL files
94-
RefreshDuration time.Duration // Time interval (default value is 1 hour) between CRLDirectory scans, can't be smaller than 1 minute
95-
CRLReloadingFailedCallback func(err error) // Custom callback executed when a CRL file can’t be processed
93+
CRLDirectory string // Required: Path of the directory containing CRL files
94+
RefreshDuration time.Duration // Optional: Time interval (default 1 hour) between CRLDirectory scans, can't be smaller than 1 minute
95+
CRLReloadingFailedCallback func(err error) // Optional: Custom callback executed when a CRL file can’t be processed
9696
}
9797

9898
// FileWatcherCRLProvider implements the CRLProvider interface by periodically

0 commit comments

Comments
 (0)