2015-03-02 18:48:53 +00:00
|
|
|
package physical
|
|
|
|
|
|
|
|
// ConsulBackend is a physical backend that stores data at specific
|
|
|
|
// prefix within Consul. It is used for most production situations as
|
|
|
|
// it allows Vault to run on multiple machines in a highly-available manner.
|
|
|
|
type ConsulBackend struct {
|
|
|
|
}
|
|
|
|
|
2015-03-05 21:47:10 +00:00
|
|
|
// newConsulBackend constructs a Consul backend using the given API client
|
2015-03-02 18:48:53 +00:00
|
|
|
// and the prefix in the KV store.
|
2015-03-05 21:47:10 +00:00
|
|
|
func newConsulBackend(conf map[string]string) (Backend, error) {
|
2015-03-02 18:48:53 +00:00
|
|
|
// TODO
|
2015-03-05 21:47:10 +00:00
|
|
|
return nil, nil
|
2015-03-02 18:48:53 +00:00
|
|
|
}
|