filecerts

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FxProvider

func FxProvider() fx.Annotated

func NewFileProvider

func NewFileProvider(p SourceProperties) certs.Source

Types

type FileProvider

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

func (*FileProvider) Files

func (*FileProvider) RootCAs

func (f *FileProvider) RootCAs(_ context.Context) (*x509.CertPool, error)

func (*FileProvider) TLSConfig

func (f *FileProvider) TLSConfig(ctx context.Context, _ ...certs.TLSOptions) (*tls.Config, error)

type SourceProperties

type SourceProperties struct {
	MinTLSVersion string `json:"min-version"`
	CACertFile    string `json:"ca-cert-file"`
	CertFile      string `json:"cert-file"`
	KeyFile       string `json:"key-file"`
	KeyPass       string `json:"key-pass"`
}

Jump to

Keyboard shortcuts

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