loader

package
v2.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvLoader

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

func NewEnvLoader

func NewEnvLoader(certChannel chan *tls.Certificate, client bool, cert, key string, ca []string, useSystemCertPool bool, interval time.Duration, logger zLogger.ZLogger) (*EnvLoader, error)

func (*EnvLoader) Close

func (f *EnvLoader) Close() error

func (*EnvLoader) GetCA

func (f *EnvLoader) GetCA() *x509.CertPool

func (*EnvLoader) Run added in v2.0.18

func (f *EnvLoader) Run() error

type FileLoader

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

func NewFileLoader

func NewFileLoader(certChannel chan *tls.Certificate, client bool, cert, key string, ca []string, useSystemCertPool bool, interval time.Duration, logger zLogger.ZLogger) (*FileLoader, error)

func (*FileLoader) Close

func (f *FileLoader) Close() error

func (*FileLoader) GetCA

func (f *FileLoader) GetCA() *x509.CertPool

func (*FileLoader) Run added in v2.0.18

func (f *FileLoader) Run() error

type Loader

type Loader interface {
	io.Closer
	Run() error
	GetCA() *x509.CertPool
}

func CreateClientLoader

func CreateClientLoader(conf *config.TLSConfig, logger zLogger.ZLogger, hosts ...string) (tlsConfig *tls.Config, l Loader, err error)

func CreateServerLoader

func CreateServerLoader(mutual bool, conf *config.TLSConfig, uris []string, logger zLogger.ZLogger) (tlsConfig *tls.Config, l Loader, err error)

func NewDevLoader added in v2.0.3

func NewDevLoader(certChannel chan *tls.Certificate, client bool, useSystemCertPool bool, interval time.Duration) (Loader, error)

Jump to

Keyboard shortcuts

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