Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reloader ¶
type Reloader struct {
// contains filtered or unexported fields
}
Reloader helps implementing TLS client/server that reloads certificates on a filesystem automatically.
func NewReloader ¶
NewReloader creates a Realoder that loads certificates from `dir`. The directory must contain these files.
- ca.crt: CA certificate bundle in PEM format - tls.crt: The TLS certificate to be used. - tls.key: The private key.
func (*Reloader) Run ¶
Run checks updates of the certificate files at every `interval` until `ctx` is canceled. This should be called as a goroutine.
func (*Reloader) TLSClientConfig ¶
func (*Reloader) TLSServerConfig ¶
Click to show internal directories.
Click to hide internal directories.