version

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHealthyNodeAvailableForVersionCheck = errors.New("no healthy node available for version check")

Functions

func GetNetworkVersionThroughGRPC added in v0.59.0

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

func IsUnreleased

func IsUnreleased() bool

Types

type GetVersionResponse

type GetVersionResponse struct {
	Version               string                 `json:"version"`
	GitHash               string                 `json:"gitHash"`
	NetworksCompatibility []NetworkCompatibility `json:"networksCompatibility"`
}

func GetVersionInfo

func GetVersionInfo(netStore NetworkStore, requestVersionFn RequestVersionFn) *GetVersionResponse

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