ticker

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package ticker implements the Certinel interface by polling the filesystem at a regular interval. This provides a reasonable alternative for environments not supported by the fsnotify package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sentinel

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

Sentinel polls the filesystem for changed certificates.

func New

func New(cert, key string, duration time.Duration) (*Sentinel, error)

func (*Sentinel) GetCertificate

func (w *Sentinel) GetCertificate(chi *tls.ClientHelloInfo) (*tls.Certificate, error)

func (*Sentinel) GetClientCertificate

func (w *Sentinel) GetClientCertificate(cri *tls.CertificateRequestInfo) (*tls.Certificate, error)

func (*Sentinel) Start

func (w *Sentinel) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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