Skip to content

Commit

Permalink
advancedtls: Add notes about required vs. optional for FileWatcherOpt…
Browse files Browse the repository at this point in the history
…ions (#7165)
  • Loading branch information
gtcooke94 committed Apr 30, 2024
1 parent 1e8b9b7 commit 5ab1c1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions security/advancedtls/crl_provider.go
Expand Up @@ -90,9 +90,9 @@ func (p *StaticCRLProvider) CRL(cert *x509.Certificate) (*CRL, error) {
// FileWatcherOptions represents a data structure holding a configuration for
// FileWatcherCRLProvider.
type FileWatcherOptions struct {
CRLDirectory string // Path of the directory containing CRL files
RefreshDuration time.Duration // Time interval (default value is 1 hour) between CRLDirectory scans, can't be smaller than 1 minute
CRLReloadingFailedCallback func(err error) // Custom callback executed when a CRL file can’t be processed
CRLDirectory string // Required: Path of the directory containing CRL files
RefreshDuration time.Duration // Optional: Time interval (default 1 hour) between CRLDirectory scans, can't be smaller than 1 minute
CRLReloadingFailedCallback func(err error) // Optional: Custom callback executed when a CRL file can’t be processed
}

// FileWatcherCRLProvider implements the CRLProvider interface by periodically
Expand Down

0 comments on commit 5ab1c1a

Please sign in to comment.