nodes

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 24 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
	ViewCmd        = viewCmd
	IpfsSupportCmd = ipfsSupportCmd
)

Functions

This section is empty.

Types

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 NodeData added in v0.1.0

type NodeData struct {
	Network     string `json:"network"`
	Name        string `json:"name"`
	Uptime      int    `json:"uptime"`
	Peers       int    `json:"peers"`
	LatestBlock int    `json:"latest_block"`
}

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