manager

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: 21 Imported by: 0

Documentation

Overview

Contains functions for managing the testnets. Handles creating test nets, adding/removing nodes from testnets, and keeps track of the ssh clients for each server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNodes

func AddNodes(details *db.DeploymentDetails, testnetID string) error

AddNodes allows for nodes to be added to the network. The nodes don't need to be of the same type of the original build. It is worth noting that any missing information from the given deployment details will be filled in from the origin build.

func AddTestNet

func AddTestNet(details *db.DeploymentDetails, testNetId string) error

AddTestNet implements the build command. All blockchains Build command must be implemented here, other it will not be called during the build process.

func DelNodes

func DelNodes(num int, testnetId string) error

DelNodes simply attempts to remove the given number of nodes from the network.

func DeleteTestNet

func DeleteTestNet(testnetID string) error

func GetDefaults

func GetDefaults(blockchain string) ([]byte, error)

GetDefaults gets the default parameters for a blockchain. Ensure that the blockchain you have implemented is included in the switch statement.

func GetParams

func GetParams(blockchain string) ([]byte, error)

GetParams fetches the name and type of each availible blockchain specific parameter for the given blockchain. Ensure that the blockchain you have implemented is included in the switch statement.

func GetServices

func GetServices(blockchain string) []util.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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