Documentation
¶
Overview ¶
Package etcdtest implements test utilities to start a local etcd instance using testcontainers for testing purposes.
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(_ string) error
- func Stop() error
Constants ¶
This section is empty.
Variables ¶
var (
Urls []string
)
Functions ¶
func DeleteAll ¶
func DeleteAll() error
DeleteAll deletes the 'routes' directory from etcd with the prefix '/skippertest'.
func DeleteAllFrom ¶
DeleteAllFrom deletes the 'routes' directory with the specified prefix.
func DeleteData ¶
DeleteData deletes a route from etcd with the prefix '/skippertest'.
func DeleteDataFrom ¶
DeleteDataFrom deletes a route from etcd with the specified prefix.
func GetNodeFrom ¶
GetNodeFrom loads an etcd route node from the specified prefix.
func PutDataToTTL ¶ added in v0.16.78
PutDataToTTL saves a route with TTL in etcd with the specified prefix.
func ResetData ¶
func ResetData() error
ResetData deletes all routes and creates a test route under '/skippertest'.
func ResetDataIn ¶
ResetDataIn deletes all routes and creates a test route under the specified prefix.
func StartProjectRoot ¶ added in v0.11.89
StartProjectRoot starts an etcd server. Deprecated: delegates to Start.
Types ¶
This section is empty.