Documentation
¶
Overview ¶
Package setup implements a real env in which to run tests.
Index ¶
- func CMD(flags ...string) func()
- func ClosableStandalone(path string, ports []int, flags ...string) (string, string, func())
- func ClosableStandaloneWithSchemaLoaders(path string, ports []int, schemaLoaders []SchemaLoader, flags ...string) (string, string, func())
- func DataNode(etcdEndpoint string, flags ...string) func()
- func DataNodeFromDataDir(etcdEndpoint, dataDir string, flags ...string) (string, string, func())
- func DataNodeWithAddrAndDir(etcdEndpoint string, flags ...string) (string, string, func())
- func EmptyClosableStandalone(path string, ports []int, flags ...string) (string, string, func())
- func EmptyStandalone(flags ...string) (string, string, func())
- func EmptyStandaloneWithAuth(username, password string, flags ...string) (string, string, func())
- func LiaisonNode(etcdEndpoint string, flags ...string) (grpcAddr string, closeFn func())
- func LiaisonNodeWithHTTP(etcdEndpoint string, flags ...string) (string, string, func())
- func Standalone(flags ...string) (string, string, func())
- func StandaloneWithAuth(username, password string, flags ...string) (string, string, func())
- func StandaloneWithSchemaLoaders(schemaLoaders []SchemaLoader, certFile, keyFile string, ...) (string, string, func())
- func StandaloneWithTLS(certFile, keyFile string, flags ...string) (string, string, func())
- type SchemaLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClosableStandalone ¶ added in v0.5.0
ClosableStandalone wires standalone modules to build a testing ready runtime.
func ClosableStandaloneWithSchemaLoaders ¶ added in v0.5.0
func ClosableStandaloneWithSchemaLoaders(path string, ports []int, schemaLoaders []SchemaLoader, flags ...string) (string, string, func())
ClosableStandaloneWithSchemaLoaders wires standalone modules to build a testing ready runtime.
func DataNodeFromDataDir ¶ added in v0.9.0
DataNodeFromDataDir runs a data node with a specific data directory.
func DataNodeWithAddrAndDir ¶ added in v0.8.0
DataNodeWithAddrAndDir runs a data node and returns the address and root path.
func EmptyClosableStandalone ¶ added in v0.5.0
EmptyClosableStandalone wires standalone modules to build a testing ready runtime.
func EmptyStandalone ¶ added in v0.5.0
EmptyStandalone wires standalone modules to build a testing ready runtime.
func EmptyStandaloneWithAuth ¶ added in v0.9.0
EmptyStandaloneWithAuth wires standalone modules to build a testing ready runtime with Auth.
func LiaisonNode ¶ added in v0.5.0
LiaisonNode runs a liaison node.
func LiaisonNodeWithHTTP ¶ added in v0.9.0
LiaisonNodeWithHTTP runs a liaison node with HTTP enabled and returns the gRPC and HTTP addresses.
func Standalone ¶ added in v0.5.0
Standalone wires standalone modules to build a testing ready runtime.
func StandaloneWithAuth ¶ added in v0.9.0
StandaloneWithAuth wires standalone modules to build a testing ready runtime with Auth.
func StandaloneWithSchemaLoaders ¶ added in v0.5.0
func StandaloneWithSchemaLoaders(schemaLoaders []SchemaLoader, certFile, keyFile string, username, password string, flags ...string) (string, string, func())
StandaloneWithSchemaLoaders wires standalone modules to build a testing ready runtime. It also allows to preload schema.