live

package
v0.0.0-...-19f29dd Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	DataDir string
	Agents  []*Consul
	Client  *api.Client
	WANJoin string
}

func NewCluster

func NewCluster(cfg *ClusterConfig) (*Cluster, error)

func (*Cluster) Shutdown

func (c *Cluster) Shutdown() error

func (*Cluster) Start

func (c *Cluster) Start() error

type ClusterConfig

type ClusterConfig struct {
	Executable string
	NicePorts  bool
	Servers    int
	ServerArgs []string
	Clients    int
	ClientArgs []string
}

type Consul

type Consul struct {
	Command *exec.Cmd
}

func NewConsul

func NewConsul(executable string, args []string) (*Consul, error)

func (*Consul) Shutdown

func (c *Consul) Shutdown() error

func (*Consul) Start

func (c *Consul) Start() error

func (*Consul) WaitForLeader

func (c *Consul) WaitForLeader() error

type Fuzz

type Fuzz struct {
	Client  *api.Client
	Checks  []verifier
	Counter int
}

func NewFuzz

func NewFuzz(client *api.Client) (*Fuzz, error)

func (*Fuzz) Populate

func (f *Fuzz) Populate() error

func (*Fuzz) Verify

func (f *Fuzz) Verify() error

Jump to

Keyboard shortcuts

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