testutil

package
v0.0.0-...-6bdf688 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdClient

func GetEtcdClient() (client.KeysAPI, func(), error)

GetEtcdClient - is a helper function that starts an embedded Etcd server on a free random port and returns a configured Etcd client, teardown function and error (if any). User's responsibility is to call a teardown function once test is completed

func GetFreePort

func GetFreePort() (int, error)

func GetTestPrefix

func GetTestPrefix() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL