consul

package
v1.13.10 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.6.0

type Config struct {
	docker.ServiceHostPort
	Token string
}

func PrepareTestContainer

func PrepareTestContainer(t *testing.T, version string, isEnterprise bool, doBootstrapSetup bool) (func(), *Config)

PrepareTestContainer creates a Consul docker container. If version is empty, the Consul version used will be given by the environment variable CONSUL_DOCKER_VERSION, or if that's empty, whatever we've hardcoded as the the latest Consul version.

func (*Config) APIConfig added in v1.6.0

func (c *Config) APIConfig() *consulapi.Config

Jump to

Keyboard shortcuts

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