consul

package
Version: v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MPL-2.0 Imports: 6 Imported by: 1

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) (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

Source Files

Jump to

Keyboard shortcuts

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