Documentation ¶
Index ¶
- type TestNet
- func (this *TestNet) AddDetails(dd db.DeploymentDetails) error
- func (this *TestNet) AddNode(node db.Node) int
- func (this *TestNet) Destroy() error
- func (this *TestNet) FinishedBuilding()
- func (this *TestNet) GetFlatClients() []*ssh.Client
- func (this *TestNet) GetLastestDeploymentDetails() *db.DeploymentDetails
- func (this *TestNet) GetServer(id int) *db.Server
- func (this *TestNet) PreOrderNewNodes() map[int][]db.Node
- func (this *TestNet) PreOrderNodes() map[int][]db.Node
- func (this *TestNet) Store()
- func (this *TestNet) StoreNodes(labels []string) error
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 (*TestNet) AddDetails ¶
func (this *TestNet) AddDetails(dd db.DeploymentDetails) error
func (*TestNet) FinishedBuilding ¶
func (this *TestNet) FinishedBuilding()
func (*TestNet) GetFlatClients ¶
func (*TestNet) GetLastestDeploymentDetails ¶
func (this *TestNet) GetLastestDeploymentDetails() *db.DeploymentDetails
func (*TestNet) StoreNodes ¶
Click to show internal directories.
Click to hide internal directories.