ptls

package
Version: v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SecureTLSConfigMinTLSVersion = tls.VersionTLS13

SecureTLSConfigMinTLSVersion is the minimum tls version in the format expected by tls.Config.

Variables

This section is empty.

Functions

func Default

func Default(rootCAs *x509.CertPool) *tls.Config

func DefaultLDAP

func DefaultLDAP(rootCAs *x509.CertPool) *tls.Config

func DefaultRecommendedOptions

func DefaultRecommendedOptions(opts *options.RecommendedOptions, f RestConfigFunc) error

func Legacy

func Legacy(rootCAs *x509.CertPool) *tls.Config

func Merge

func Merge(tlsConfigFunc ConfigFunc, tlsConfig *tls.Config)

func Secure

func Secure(rootCAs *x509.CertPool) *tls.Config

func SecureRecommendedOptions

func SecureRecommendedOptions(opts *options.RecommendedOptions, f RestConfigFunc) error

Types

type ConfigFunc

type ConfigFunc func(*x509.CertPool) *tls.Config

type RestConfigFunc

type RestConfigFunc func(*rest.Config) (kubernetes.Interface, *rest.Config, error)

RestConfigFunc allows this package to not depend on the kubeclient package.

Jump to

Keyboard shortcuts

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