testutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdTestClusterOpts

type EtcdTestClusterOpts struct {
	CaCertPath     string
	ServerCertPath string
	ServerKeyPath  string
	Ips            []string
	ClientPort     int64
	PeerPort       int64
}

func (*EtcdTestClusterOpts) SetDefaults

func (opts *EtcdTestClusterOpts) SetDefaults(testDir string)

type EtcdTestMember

type EtcdTestMember struct {
	Name       string
	Ip         string
	DataDir    string
	LogFile    string
	ClientPort int64
	PeerPort   int64
}

type TeardownTestCluster

type TeardownTestCluster func() []error

func LaunchTestEtcdCluster

func LaunchTestEtcdCluster(testDir string, opts EtcdTestClusterOpts) (TeardownTestCluster, error)

Launch of trio of etcd nodes, running on loopbackaddresses by default and configured for mTLS. A teardown method is returned to shut them down. It is assumed that a recent etcd binary is located in the binary path.

Jump to

Keyboard shortcuts

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