package
1.21.0-rc1
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Functions

CipherString performs the inverse operation of types.ParseCiphers.
GenerateCA generates a new CA for agent TLS (not to be confused with Connect TLS).
GenerateCert generates a new certificate for agent TLS (not to be confused with Connect TLS).
GeneratePrivateKey generates a new ecdsa private key.
GenerateSerialNumber returns random bigint generated with crypto/rand.
No description provided by the author
NewConfigurator creates a new Configurator and sets the provided configuration.
ParseSigner parses a crypto.Signer from a PEM-encoded key.
SpecificDC is used to invoke a static datacenter and turns a DCWrapper into a Wrapper type.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Config configures the Configurator.
Configurator provides tls.Config and net.Dial wrappers to enable TLS for clients and servers, for internal RPC, and external gRPC and HTTPS connections.
MockConfigurator is used for mocking the ConfiguratorIface in testing.
ProtocolConfig contains configuration for a given protocol.

# Interfaces

ConfiguratorIface is the interface for the Configurator.
No description provided by the author

# Type aliases

ALPNWrapper is a function that is used to wrap a non-TLS connection and returns an appropriate TLS connection or error.
DCWrapper is a function that is used to wrap a non-TLS connection and returns an appropriate TLS connection or error.
Wrapper is a variant of DCWrapper, where the DC is provided as a constant value.