consulrunner

package
v0.0.0-...-b7b75ba Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PortOffsetHTTP
	PortOffsetHTTPS

	PortOffsetLength
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRunner

type ClusterRunner struct {
	// contains filtered or unexported fields
}

func NewClusterRunner

func NewClusterRunner(c ClusterRunnerConfig) *ClusterRunner

func (*ClusterRunner) Address

func (cr *ClusterRunner) Address() string

func (*ClusterRunner) ConsulCluster

func (cr *ClusterRunner) ConsulCluster() string

func (*ClusterRunner) ConsulVersion

func (cr *ClusterRunner) ConsulVersion() string

func (*ClusterRunner) HasPerformanceFlag

func (cr *ClusterRunner) HasPerformanceFlag() bool

func (*ClusterRunner) NewClient

func (cr *ClusterRunner) NewClient() consuladapter.Client

func (*ClusterRunner) Reset

func (cr *ClusterRunner) Reset() error

func (*ClusterRunner) SessionTTL

func (cr *ClusterRunner) SessionTTL() time.Duration

func (*ClusterRunner) Start

func (cr *ClusterRunner) Start()

func (*ClusterRunner) Stop

func (cr *ClusterRunner) Stop()

func (*ClusterRunner) URL

func (cr *ClusterRunner) URL() string

func (*ClusterRunner) WaitUntilReady

func (cr *ClusterRunner) WaitUntilReady()

type ClusterRunnerConfig

type ClusterRunnerConfig struct {
	StartingPort int
	NumNodes     int
	Scheme       string
	CACert       string
	ClientCert   string
	ClientKey    string
}

Jump to

Keyboard shortcuts

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