Categorygithub.com/matthewpi/certwatcher
modulepackage
1.1.2
Repository: https://github.com/matthewpi/certwatcher.git
Documentation: pkg.go.dev

# README

Certificate Watcher

Godoc Reference Pipeline Status

Go package that provides the ability to hot-reload TLS certificates without downtime.

Usage

TODO: add usage

Installation

go get github.com/matthewpi/certwatcher

Licensing

All code in this repository is licensed under the MIT license with two exceptions.

Code under internal/sets and internal/wait is licensed under the Apache 2.0 license as a majority of the code was sourced from libraries of Kubernetes and was put in-tree to guarantee API stability and reduce the number of external dependencies necessary for this library to function. Thank you to the developers who made those wonderful utilities.

# Functions

DefaultTLSConfig returns a new [*tls.Config] with sensible defaults.
New creates a new certwatcher [Watcher], capable of reloading certificates on the fly.

# Structs

Options controls options for a [Watcher].
TLSConfig is a wrapper for the stdlib *tls.Config.
Watcher watches for changes to TLS certificate files on disk and attempts to automatically reload the certificate.