tls

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tls handles options for TLS (https) requests

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCertificates = errors.New("tls: no certificates configured")

ErrNoCertificates is returned by GetCert() when no certs are configured

Functions

func OptionsChanged

func OptionsChanged(conf, oldConf *config.Config) bool

OptionsChanged will return true if the TLS options for any backend is different between configs

Types

type CertSwapper

type CertSwapper interface {
	GetCert(*tls.ClientHelloInfo) (*tls.Certificate, error)
	SetCerts([]tls.Certificate)
}

CertSwapper is used by a TLSConfig to dynamically update the running Listener's Certificate list. This allows Trickster to load and unload TLS certificate configs without restarting the process

func NewSwapper

func NewSwapper(certList []tls.Certificate) CertSwapper

NewSwapper returns a new CertSwapper based on the provided certList

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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