version

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnreleased

func IsUnreleased() bool

Types

type GetVersionResponse

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

func GetVersionInfo

func GetVersionInfo(netStore NetworkStore, requestVersionFn RequestVersionFn) (*GetVersionResponse, 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)

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