rootca

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context, log logr.Logger, filepath string) (<-chan RootCAs, error)

Watch watches the given filepath for changes, and writes to the returned channel the new state when it changes. The first event is the initial state of the root CAs file.

Types

type RootCAs

type RootCAs struct {
	// PEM is the raw PEM encoding of the CA certificates.
	PEM []byte

	// CertPool is the x509.CertPool encoding of the CA certificates.
	CertPool *x509.CertPool
}

RootCAs is a Root CAs bundle that contains raw PEM encoded CAs, as well as their x509.CertPool encoding.

Jump to

Keyboard shortcuts

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