manager

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Package manager contains functions for managing the testnets. Handles creating test nets, adding/removing nodes from testnets

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

DeleteTestNet destroys all of the nodes of a testnet

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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