config

package
v0.0.0-...-fb3d230 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPSClient

func NewHTTPSClient(tlsConfig *tls.Config, timeout time.Duration) *http.Client

func NewMutualTLSConfig

func NewMutualTLSConfig(certFile, keyFile, caCertFile, serverName string) (*tls.Config, error)

NewMutualTLSConfig returns a tls.Config with certs loaded from files and the ServerName set.

func NewTLSConfig

func NewTLSConfig() *tls.Config

NewTLSConfig

Types

type CASignatureError

type CASignatureError string

func (CASignatureError) Error

func (e CASignatureError) Error() string

Jump to

Keyboard shortcuts

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