package etcd
import "github.com/google/trillian/testonly/integration/etcd"
Package etcd contains a helper to start an embedded etcd server.
Index ¶
Constants ¶
const ( // MaxEtcdStartAttempts is the max number of start attempts made before it fails. MaxEtcdStartAttempts = 3 )
Functions ¶
func StartEtcd ¶
StartEtcd returns a started, ready to use embedded etcd, along with a client and a cleanup function (that must be defer-called). There's no need to defer-close etcd of client, cleanup closes both.
A temp directory and random ports are used to setup etcd.
Source Files ¶
- Version
- v1.7.1 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 5 days ago –
Tools for package owners.