setup

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package setup implements a real env in which to run tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMD added in v0.5.0

func CMD(flags ...string) func()

CMD runs the command with given flags.

func ClosableStandalone added in v0.5.0

func ClosableStandalone(path string, ports []int, flags ...string) (string, string, func())

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 DataNode added in v0.5.0

func DataNode(etcdEndpoint string, flags ...string) func()

DataNode runs a data node.

func DataNodeFromDataDir added in v0.9.0

func DataNodeFromDataDir(etcdEndpoint, dataDir string, flags ...string) (string, string, func())

DataNodeFromDataDir runs a data node with a specific data directory.

func DataNodeWithAddrAndDir added in v0.8.0

func DataNodeWithAddrAndDir(etcdEndpoint string, flags ...string) (string, string, func())

DataNodeWithAddrAndDir runs a data node and returns the address and root path.

func EmptyClosableStandalone added in v0.5.0

func EmptyClosableStandalone(path string, ports []int, flags ...string) (string, string, func())

EmptyClosableStandalone wires standalone modules to build a testing ready runtime.

func EmptyStandalone added in v0.5.0

func EmptyStandalone(flags ...string) (string, string, func())

EmptyStandalone wires standalone modules to build a testing ready runtime.

func EmptyStandaloneWithAuth added in v0.9.0

func EmptyStandaloneWithAuth(username, password string, flags ...string) (string, string, func())

EmptyStandaloneWithAuth wires standalone modules to build a testing ready runtime with Auth.

func LiaisonNode added in v0.5.0

func LiaisonNode(etcdEndpoint string, flags ...string) (grpcAddr string, closeFn func())

LiaisonNode runs a liaison node.

func LiaisonNodeWithHTTP added in v0.9.0

func LiaisonNodeWithHTTP(etcdEndpoint string, flags ...string) (string, string, func())

LiaisonNodeWithHTTP runs a liaison node with HTTP enabled and returns the gRPC and HTTP addresses.

func Standalone added in v0.5.0

func Standalone(flags ...string) (string, string, func())

Standalone wires standalone modules to build a testing ready runtime.

func StandaloneWithAuth added in v0.9.0

func StandaloneWithAuth(username, password string, flags ...string) (string, string, func())

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.

func StandaloneWithTLS added in v0.5.0

func StandaloneWithTLS(certFile, keyFile string, flags ...string) (string, string, func())

StandaloneWithTLS wires standalone modules to build a testing ready runtime with TLS enabled.

Types

type SchemaLoader added in v0.4.0

type SchemaLoader interface {
	run.Unit
	SetRegistry(registry schema.Registry)
}

SchemaLoader is a service that can preload schema.

Jump to

Keyboard shortcuts

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