package
Version:
v1.40.1
Opens a new window with list of versions in this module.
Published: Sep 3, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
func TLSConfig(certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*tls.Config, error)
-
func Transport(URL, certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*http.Transport, error)
-
type ErrGroup
TLSConfig creates tls.Config object from provided arguments
Transport creates http.Transport object based on provided URL.
Returns Transport with TLS configuration if URL contains `https` prefix
ErrGroup accumulates multiple errors
and produces single error message.
Add adds a new error to group.
Isn't thread-safe.
Err checks if group contains at least
one error.
Error satisfies Error interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.