rootca

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 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 Interface

type Interface interface {
	// CertificatesPEM returns the current PEM encoded X.509 Certificate
	// Authority certificates for the trust domain.
	CertificatesPEM() []byte

	// Subscribe returns a channel which will receive messages when the trust
	// domain root certificates change.
	Subscribe() <-chan struct{}
}

Interface provide the root PEM encoded X.509 Certificate Authority certificates of the trust domain. Consumers can subscribe to events to when the root certificates change.

func NewFile

func NewFile(ctx context.Context, log logr.Logger, filepath string) (Interface, error)

NewFile constructs a new file implementation of RootCAs. NewFile reads and sets up a watcher for the root CAs on file.

func NewMemory

func NewMemory(ctx context.Context, rootCAs <-chan []byte) Interface

NewMemory constructs a new memory implementation of RootCAs. NewMemory listens to the passed channel to set the root CAs.

Jump to

Keyboard shortcuts

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