# Functions
closeResponseBody reads resp.Body until EOF, and then closes it.
DecodeBody is used to JSON decode a body.
DefaultConfig returns a default configuration for the client.
DefaultConfigWithLogger returns a default configuration for the client.
DefaultNonPooledConfig returns a default configuration for the client which does not pool connections.
No description provided by the author
No description provided by the author
No description provided by the author
NewClient returns a new client.
No description provided by the author
NewHttpClient returns an http client configured with the given Transport and TLS config.
requireHttpCodes checks for the "allowable" http codes for a response.
requireOK is used to wrap doRequest and check for a 200.
tls.Config is used to establish communication in TLS mode.
No description provided by the author
# Constants
GRPCAddrEnvName defines an environment variable name which sets the gRPC server address for the consul CLI.
GRPCCAFileEnvName defines an environment variable name which sets the CA file to use for talking to Consul gRPC over TLS.
GRPCCAPathEnvName defines an environment variable name which sets the path to a directory of CA certs to use for talking to Consul gRPC over TLS.
GRPCClientCertEnvName defines an environment variable name which sets the client cert file to use for talking to Consul over TLS.
GRPCClientKeyEnvName defines an environment variable name which sets the client key file to use for talking to Consul over TLS.
GRPCTLSEnvName defines an environment variable name which sets the gRPC communication mode.
GRPCTLSVerifyEnvName defines an environment variable name which sets whether to disable certificate checking.
GRPCTokenEnvName defines an environment variable name which sets the GRPC token.
GRPCTokenFileEnvName defines an environment variable name which sets the GRPC token file.
HTTPAddrEnvName defines an environment variable name which sets the HTTP address if there is no -http-addr specified.
HTTPAuthEnvName defines an environment variable name which sets the HTTP authentication header.
HTTPCAFile defines an environment variable name which sets the CA file to use for talking to Consul over TLS.
HTTPCAPath defines an environment variable name which sets the path to a directory of CA certs to use for talking to Consul over TLS.
HTTPClientCert defines an environment variable name which sets the client cert file to use for talking to Consul over TLS.
HTTPClientKey defines an environment variable name which sets the client key file to use for talking to Consul over TLS.
HTTPNamespaceEnvVar defines an environment variable name which sets the HTTP Namespace to be used by default.
HTTPPartitionEnvName defines an environment variable name which sets the HTTP Partition to be used by default.
HTTPSSLEnvName defines an environment variable name which sets whether or not to use HTTPS.
HTTPSSLVerifyEnvName defines an environment variable name which sets whether or not to disable certificate checking.
HTTPTLSServerName defines an environment variable name which sets the server name to use as the SNI host when connecting via TLS.
HTTPTokenEnvName defines an environment variable name which sets the HTTP token.
HTTPTokenFileEnvName defines an environment variable name which sets the HTTP token file.
QueryBackendBlockingQuery Query backend of type blocking query.
QueryBackendStreaming Query backend of type streaming.
# Structs
Client provides a client to the Consul API.
Config is used to configure the creation of a client.
No description provided by the author
No description provided by the author
No description provided by the author
HttpBasicAuth is used to authenticate http client with HTTP Basic Authentication.
QueryMeta is used to return meta data about a query.
QueryOptions are used to parameterize a query.
No description provided by the author
No description provided by the author
TLSConfig is used to generate a TLSClientConfig that's useful for talking to Consul using TLS.
No description provided by the author
No description provided by the author
WriteMeta is used to return meta data about a write.
WriteOptions are used to parameterize a write.