Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

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

    Source Files