Discover Packages
github.com/cockroachdb/cdc-sink
internal
util
secure
package
Version:
v0.0.0-...-4dcfcdd
Opens a new window with list of versions in this module.
Published: May 2, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package secure provides utilities to configure secure transport.
GetCA retrieves the pool of CA certificates
from the system and the specified file.
ParseTLSOptions returns a slice of TLS configuration to try, based on the
sslmode specified in the connection URL
The returned slice must contain at least one element.
A nil element indicates a no-SSL configuration.
It allows a uniform way to specify connections to various backends
following the Postgres connection specifications.
TLSConfig loads the certificate and key
from disk, to generate a self-signed localhost certificate, or to
return nil if TLS has been disabled.
Config stores the TLS parameters passed via command line options.
AsTLSConfig returns the tls.Config object built from
Bind adds flags to the set.
Preflight builds a tls.Config using the command line options provided at start up.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.