tlssecret

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher is a file watcher that monitors changes to TLS certificate files.

func NewWatcher

func NewWatcher(gatekeeperCACertPath, ratifyServerTLSCertPath, ratifyServerTLSKeyPath string) (*Watcher, error)

NewWatcher creates a new TLS secret watcher.

func (*Watcher) GetConfigForClient

func (w *Watcher) GetConfigForClient(*tls.ClientHelloInfo) (*tls.Config, error)

GetConfigForClient returns the TLS configuration for the tls client.

func (*Watcher) Start

func (w *Watcher) Start() error

Start begins watching the specified files for changes. It adds the ratify server TLS cert and key files to the watcher. If a gatekeeper CA cert path is provided, it adds that file as well.

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop stops the watcher and closes the file watcher.

Jump to

Keyboard shortcuts

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