utils

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfTestnetOrTestnetNetworkFlag

func CheckIfTestnetOrTestnetNetworkFlag() bool

func GetAllSupportedNetworks

func GetAllSupportedNetworks() string

func GetCommandSupportedNetworks added in v0.0.5

func GetCommandSupportedNetworks() string

func GetDefaultLocalMappedContainerName

func GetDefaultLocalMappedContainerName(network string) (string, bool)

func GetFiftysixDockerhubContainerName

func GetFiftysixDockerhubContainerName(network string) (string, bool)

func GetNetworkRequiredDataSize

func GetNetworkRequiredDataSize(network string) (int, bool)

func GetNetworkRequiredSnapshotSize

func GetNetworkRequiredSnapshotSize(network string) (int, bool)

func GetNodevinDataDir

func GetNodevinDataDir() (string, error)

Returns path to the user's nodevin data directory (~/.nodevin/data)

func GetNodevinExecutable added in v0.0.5

func GetNodevinExecutable() string

func GetSizeDescription

func GetSizeDescription(size int64) string

func GetSnapshotCIDByNetwork added in v0.0.7

func GetSnapshotCIDByNetwork(network string) (string, bool)

func GetStartMessage

func GetStartMessage(network string) (string, bool)

func IsSupportedExtendedInfoSoftware added in v0.0.7

func IsSupportedExtendedInfoSoftware(software string) bool

func NetworkContainerMap

func NetworkContainerMap() map[string]string

func NetworkDefaultRPCPorts

func NetworkDefaultRPCPorts() map[string]int

Types

type NetworkInfo

type NetworkInfo struct {
	ContainerName    string
	DockerHubImage   string
	SnapshotCID      string
	RPCPort          int
	DataSize         int
	SnapshotSize     int
	StartMessage     string
	CommandSupported bool
}

Jump to

Keyboard shortcuts

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