config

package
v0.0.0-...-0ad2128 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 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