Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Path of the key to read. If Recurse is true, this is treated
// as a prefix.
Key string
// https://www.consul.io/api-docs/kv#read-key
// If recurse is true, Consul returns an array of keys.
// It specifies if the lookup should be recursive and treat
// Key as a prefix instead of a literal match.
// This is analogous to: consul kv get -recurse key
Recurse bool
// Gets additional metadata about the key in addition to the value such
// as the ModifyIndex and any flags that may have been set on the key.
// This is analogous to: consul kv get -detailed key
Detailed bool
// Consul client config
Cfg *api.Config
}
Config represents the Consul client configuration.
type Consul ¶
type Consul struct {
// contains filtered or unexported fields
}
Consul implements the Consul provider.
Click to show internal directories.
Click to hide internal directories.