lib

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDENTITY, NODE_TYPE, STATIC, PERMISSIONED string
View Source
var PERMISSIONED_NODES = homeDir + "/alastria/data/permissioned-nodes.json"
View Source
var STATIC_NODES = homeDir + "/alastria/data/static-nodes.json"

Functions

func CleanStart

func CleanStart() (ok bool)

Clean Start an Alastria node

func CurrentMonitorVersion

func CurrentMonitorVersion() (ok bool, version string)

Get current Version of the monitor

func GetCoinbase

func GetCoinbase() (ok bool, data string)

Gets coinbase from node

func GetFile

func GetFile(fichero string) (contenido string)

func GetGithub

func GetGithub(url string) (filename, contenido string)

func GetLog

func GetLog() (ok bool, data string)

Log an Alastria node

func LastNodeRestart

func LastNodeRestart() (ok bool, salida string)

Last node/geth Restart

func LatestMonitorVersion

func LatestMonitorVersion() (ok bool, version string)

Get latest Version of the monitor

func NodeVersion

func NodeVersion() (ok bool, salida string)

Node/Geth/Quorum Version

func Propose

func Propose(candidate string, value string) (ok bool)

Propose new candidate

func Restart

func Restart() bool

Restart an Alastria node

func RestartNetwork

func RestartNetwork(nodeType string, nodeName string) (ok bool)

Restart the complete network

func RunCommand

func RunCommand(command string) (ok bool, salida string)

func RunCommandBackground

func RunCommandBackground(command string) (ok bool, salida string)

func Start

func Start() (ok bool)

Start an Alastria node

func Status

func Status() (salida string)

Compute Status for a node

func Stop

func Stop() (ok bool)

Stop an Alastria node

func Update

func Update() bool

Update config files and restart an Alastria node

func UpdateCron

func UpdateCron()

Non-returning Update function for its use in CRON

func UpdateMonitor

func UpdateMonitor() (ok bool)

Get latest Version of the monitor

Types

type QuorumServices

type QuorumServices struct {
	// contains filtered or unexported fields
}

func NewQuorumServices

func NewQuorumServices(prefijo string) QuorumServices

Jump to

Keyboard shortcuts

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