skipper: github.com/zalando/skipper/etcd/etcdtest Index | Files

package etcdtest

import "github.com/zalando/skipper/etcd/etcdtest"

Package etcdtest implements an easy startup script to start a local etcd instance for testing purpose.

Index

Package Files

mocketcd.go

Variables

var Urls []string

func DeleteAll Uses

func DeleteAll() error

Deletes the 'routes' directory from etcd with the prefix '/skippertest'.

func DeleteAllFrom Uses

func DeleteAllFrom(prefix string) error

Deletes the 'routes' directory with the specified prefix.

func DeleteData Uses

func DeleteData(key string) error

Deletes a route from etcd with the prefix '/skippertest'.

func DeleteDataFrom Uses

func DeleteDataFrom(prefix, key string) error

Deletes a route from etcd with the specified prefix.

func GetNode Uses

func GetNode(key string) (string, error)

Loads an etcd route node from the prefix '/skippertest'.

func GetNodeFrom Uses

func GetNodeFrom(prefix, key string) (string, error)

Loads an etcd route node from the specified prefix.

func PutData Uses

func PutData(key, data string) error

Saves a route in etcd with the prefix '/skippertest'.

func PutDataTo Uses

func PutDataTo(prefix, key, data string) error

Saves a route in etcd with the specified prefix.

func ResetData Uses

func ResetData() error

Deletes all routes in etcd and creates a test route under the prefix '/skippertest'.

func ResetDataIn Uses

func ResetDataIn(prefix string) error

Deletes all routes in etcd and creates a test route under the specified prefix.

func Start Uses

func Start() error

Starts an etcd server.

func StartProjectRoot Uses

func StartProjectRoot(projectRoot string) error

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.

func Stop Uses

func Stop() error

Package etcdtest imports 13 packages (graph). Updated 2020-04-08. Refresh now. Tools for package owners.