deploy

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package deploy provides functions for building out nodes and test networks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNodes

func AddNodes(tn *testnet.TestNet) error

AddNodes adds nodes to the network instead of building independently. Functions similarly to build, except that it does not destroy the previous network when building.

func Build

func Build(tn *testnet.TestNet, services []helpers.Service) error

Build builds out the given docker network infrastructure according to the given parameters, and return the given array of servers, with ips updated for the nodes added to that server

func BuildNode

func BuildNode(tn *testnet.TestNet, server *db.Server, node *db.Node)

BuildNode builds out a single node in a testnet

func Destroy

func Destroy(tn *testnet.TestNet) error

Destroy is an alias of PurgeTestNetwork

func PurgeTestNetwork

func PurgeTestNetwork(tn *testnet.TestNet) error

PurgeTestNetwork goes into each given ssh client and removes all the nodes and the networks. Increments the build state len(clients) * 2 times and sets it stag to tearing down network, if buildState is non nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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