version

package
v0.73.7 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: AGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnectionError      = errors.New("verify you are connected to the internet")
	ErrCouldNotConnectNodes = errors.New("could not connect to any nodes: verify your network configuration is up to date")
)
View Source
var ErrCouldNotListNetworks = errors.New("couldn't list the networks")

Functions

func GetNetworkVersionThroughGRPC added in v0.59.0

func GetNetworkVersionThroughGRPC(hosts []string) (string, error)

func IsUnreleased

func IsUnreleased() bool

Types

type CheckSoftwareCompatibilityResponse added in v0.64.0

type CheckSoftwareCompatibilityResponse struct {
	NetworksCompatibility []NetworkCompatibility `json:"networksCompatibility"`
}

func CheckSoftwareCompatibility added in v0.64.0

func CheckSoftwareCompatibility(netStore NetworkStore, requestVersionFn RequestVersionFn) (*CheckSoftwareCompatibilityResponse, error)

type GetSoftwareVersionResponse added in v0.64.0

type GetSoftwareVersionResponse struct {
	Version string `json:"version"`
	GitHash string `json:"gitHash"`
}

func GetSoftwareVersionInfo added in v0.64.0

func GetSoftwareVersionInfo() *GetSoftwareVersionResponse

type NetworkCompatibility added in v0.59.0

type NetworkCompatibility struct {
	Network          string `json:"network"`
	IsCompatible     bool   `json:"isCompatible"`
	RetrievedVersion string `json:"retrievedVersion"`
	Error            error  `json:"error"`
}

type NetworkStore added in v0.55.0

type NetworkStore interface {
	ListNetworks() ([]string, error)
	GetNetwork(string) (*network.Network, error)
}

type RequestVersionFn added in v0.55.0

type RequestVersionFn func(hosts []string) (string, error)

RequestVersionFn is the function in charge of retrieving the network version ran by the host lists.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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