helper

package
v0.0.0-...-90fd0ac Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: LGPL-2.1 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommand

func CheckCommand(command string)

func CreateAccount

func CreateAccount(nodeName string) *types.Account

func CreateDelegateAccount

func CreateDelegateAccount(delegateName string) *types.Account

func CreateDelegateConfig

func CreateDelegateConfig(ipAddress string, httpPort, grpcPort int64, localPort int64, seedNodes []*types.Node) *types.Config

func CreateNewLocalConfigs

func CreateNewLocalConfigs(clusterStructure *configTypes.ClusterStructure, seedNodes []*configTypes.NodeInfo, delegateNodes []*configTypes.NodeInfo, restricted bool) map[string]*configTypes.NodeInfo

Restricted config specifies delegate list in the seed node so any nodes joining are a only type Node Non-Restricted config does not specify delegate list in the seed node so any nodes joining are a delegate

func CreateSeedAccount

func CreateSeedAccount() *types.Account

func CreateSeedConfig

func CreateSeedConfig(ipAddress string, httpPort, grpcPort int64, localPort int64, seedAccount *types.Account) *types.Config

func Exec

func Exec(command string) error

func ExecFromDir

func ExecFromDir(command, dir string) error

func ExecWithOut

func ExecWithOut(command string) (string, error)

func GetAccount

func GetAccount(dirName, nodeName string) *types.Account

func GetConfig

func GetConfig(dirName, nodeName string) (*types.Config, error)

func GetDefaultDirectory

func GetDefaultDirectory() string

func GetDisgoDirectory

func GetDisgoDirectory() string

func GetEncryptedPrivateKey

func GetEncryptedPrivateKey(account *types.Account) (*crypto.EncryptedKeyJSONV3, error)

func GetNewRemoteConfigs

func GetNewRemoteConfigs(seedNodes, delegateNodes []*configTypes.NodeInfo) map[string]*configTypes.NodeInfo

func MultiExecWithOut

func MultiExecWithOut(outCmd string, cmds ...string) (string, error)

func SetupDefaultConfig

func SetupDefaultConfig(host string, nbrSeeds, nbrDelegates, seedStartingPort, delegateStartingPort int)

func Update

func Update(dir, versionNbr, password string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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