testnet

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 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 TestNet

type TestNet struct {
	TestNetID       string
	Servers         []db.Server
	Nodes           []db.Node
	NewlyBuiltNodes []db.Node
	Clients         map[int]*ssh.Client
	BuildState      *state.BuildState
	Details         []db.DeploymentDetails
	CombinedDetails db.DeploymentDetails
	LDD             *db.DeploymentDetails //ptr to latest deployment details
	// contains filtered or unexported fields
}

Represents a testnet and some state on that testnet. Should also contain the details needed to rebuild this testnet.

func NewTestNet

func NewTestNet(details db.DeploymentDetails, buildID string) (*TestNet, error)

func RestoreTestNet

func RestoreTestNet(buildID string) (*TestNet, error)

func (*TestNet) AddDetails

func (this *TestNet) AddDetails(dd db.DeploymentDetails) error

func (*TestNet) AddNode

func (this *TestNet) AddNode(node db.Node) int

func (*TestNet) Destroy

func (this *TestNet) Destroy() error

func (*TestNet) FinishedBuilding

func (this *TestNet) FinishedBuilding()

func (*TestNet) GetFlatClients

func (this *TestNet) GetFlatClients() []*ssh.Client

func (*TestNet) GetLastestDeploymentDetails

func (this *TestNet) GetLastestDeploymentDetails() *db.DeploymentDetails

func (*TestNet) GetServer

func (this *TestNet) GetServer(id int) *db.Server

func (*TestNet) PreOrderNewNodes

func (this *TestNet) PreOrderNewNodes() map[int][]db.Node

func (*TestNet) PreOrderNodes

func (this *TestNet) PreOrderNodes() map[int][]db.Node

func (*TestNet) Store

func (this *TestNet) Store()

func (*TestNet) StoreNodes

func (this *TestNet) StoreNodes(labels []string) error

Jump to

Keyboard shortcuts

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