etcd

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tag string
}

type Opt

type Opt func(*Config)

func WithTag

func WithTag(tag string) Opt

type Option added in v0.32.0

type Option func(*config)

func WithNetwork added in v0.32.0

func WithNetwork(network *docker.Network) Option

type Resource

type Resource struct {
	Client *etcd.Client
	Hosts  []string
	// HostsInNetwork is the list of ETCD hosts accessible from the provided Docker network (if any).
	HostsInNetwork []string
	Port           int
}

func Setup

func Setup(pool *dockertest.Pool, cln resource.Cleaner, opts ...Option) (*Resource, error)

Jump to

Keyboard shortcuts

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