source

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCerts

type ClientCerts struct {
	InsecureSkipVerify bool
	Certificate        *tls.Certificate
	RootCAs            *x509.CertPool
	Checksum           []byte
}

func (ClientCerts) GetChecksum

func (s ClientCerts) GetChecksum() []byte

type ClientCertsSource

type ClientCertsSource interface {
	ClientCerts() chan ClientCerts
}

type ClientCertsStore

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

func NewClientCertsStore

func NewClientCertsStore(logger *slog.Logger) *ClientCertsStore

func (*ClientCertsStore) LoadClientCerts

func (s *ClientCertsStore) LoadClientCerts() ClientCerts

func (*ClientCertsStore) SetClientCerts

func (s *ClientCertsStore) SetClientCerts(certs ClientCerts)

type ClientPEMs

type ClientPEMs struct {
	CertPEMBlock    []byte
	KeyPEMBlock     []byte
	RootCAsPEMBlock []byte
	UseSystemPool   bool
}

func (ClientPEMs) Certificate

func (s ClientPEMs) Certificate() (*tls.Certificate, error)

func (ClientPEMs) Checksum

func (s ClientPEMs) Checksum() []byte

func (ClientPEMs) RootCAs

func (s ClientPEMs) RootCAs() (*x509.CertPool, error)

type ClientPEMsLoader

type ClientPEMsLoader interface {
	Load() (*ClientPEMs, error)
}

Jump to

Keyboard shortcuts

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