rotor

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rotor implements functionality to rotate certificates provided by a certificate provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldRotate

func ShouldRotate(cert certificate.Certificater) bool

ShouldRotate determines whether a certificate should be rotated.

Types

type CertRotor added in v0.1.0

type CertRotor struct {
	// contains filtered or unexported fields
}

CertRotor is a simple facility, which rotates expired certificates.

func New added in v0.1.0

func New(certManager certificate.Manager) *CertRotor

New creates and starts a new facility for automatic certificate rotation.

func (CertRotor) Start added in v0.1.0

func (r CertRotor) Start(checkInterval time.Duration)

Start starts a new facility for automatic certificate rotation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL