nodes

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestCmd     = requestCmd
	ShellCmd       = shellCmd
	StartNodeCmd   = startNodeCmd
	StopNodeCmd    = stopNodeCmd
	DeleteCmd      = deleteCmd
	CleanupCmd     = cleanupCmd
	LogsCmd        = logsCmd
	InfoCmd        = infoCmd
	ListCmd        = listCmd
	IpfsSupportCmd = ipfsSupportCmd
)

Functions

func Execute

func Execute() error

func RegisterBlockchain

func RegisterBlockchain(name string, blockchain Blockchain)

Types

type Blockchain

type Blockchain interface {
	StartNode(config.Config) error
	StopNode() error
}

func GetBlockchain

func GetBlockchain(name string) (Blockchain, bool)

type ContainerInfo

type ContainerInfo struct {
	ID         string `json:"ID"`
	Image      string `json:"Image"`
	Command    string `json:"Command"`
	CreatedAt  string `json:"CreatedAt"`
	RunningFor string `json:"RunningFor"`
	Status     string `json:"Status"`
	Ports      string `json:"Ports"`
	Names      string `json:"Names"`
}

type RPCError

type RPCError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type RPCResponse

type RPCResponse struct {
	Result interface{} `json:"result"`
	Error  *RPCError   `json:"error"`
	ID     string      `json:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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