tlsutil

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(options ...TLSConfigOption) (*tls.Config, error)

Types

type TLSConfigOption

type TLSConfigOption func(options *TLSConfigOptions) error

func WithCAFile

func WithCAFile(caFile string) TLSConfigOption

func WithCertKeyPairFiles

func WithCertKeyPairFiles(certFile, keyFile string) TLSConfigOption

func WithInsecureSkipVerify

func WithInsecureSkipVerify(insecureSkipTLSVerify bool) TLSConfigOption

type TLSConfigOptions

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

Jump to

Keyboard shortcuts

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