Documentation ¶
Overview ¶
Package etcdtest implements an easy startup script to start a local etcd instance for testing purpose.
Index ¶
- Variables
- func DeleteAll() error
- func DeleteAllFrom(prefix string) error
- func DeleteData(key string) error
- func DeleteDataFrom(prefix, key string) error
- func GetNode(key string) (string, error)
- func GetNodeFrom(prefix, key string) (string, error)
- func PutData(key, data string) error
- func PutDataTo(prefix, key, data string) error
- func PutDataToTTL(prefix, key, data string, ttl int) error
- func ResetData() error
- func ResetDataIn(prefix string) error
- func Start() error
- func StartProjectRoot(projectRoot string) error
- func Stop() error
Constants ¶
This section is empty.
Variables ¶
var Urls []string
Functions ¶
func DeleteAll ¶
func DeleteAll() error
Deletes the 'routes' directory from etcd with the prefix '/skippertest'.
func DeleteAllFrom ¶
Deletes the 'routes' directory with the specified prefix.
func DeleteData ¶
Deletes a route from etcd with the prefix '/skippertest'.
func DeleteDataFrom ¶
Deletes a route from etcd with the specified prefix.
func GetNodeFrom ¶
Loads an etcd route node from the specified prefix.
func PutDataToTTL ¶ added in v0.16.78
Saves a route with TTL in etcd with the specified prefix.
func ResetData ¶
func ResetData() error
Deletes all routes in etcd and creates a test route under the prefix '/skippertest'.
func ResetDataIn ¶
Deletes all routes in etcd and creates a test route under the specified prefix.
func StartProjectRoot ¶ added in v0.11.89
StartProjectRoot starts an etcd server. If projectRoot is not empty, then it checks if the .bin/etcd binary exists, and uses that instead of the one in the path.
Types ¶
This section is empty.