cyphernodeInfo

package
v0.0.0-...-f45be23 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CyphernodeIsDockerSwarm

func CyphernodeIsDockerSwarm() (bool, error)

Types

type CyphernodeFeature

type CyphernodeFeature struct {
	Label    string                 `json:"label"`
	Name     string                 `json:"name"`
	Host     string                 `json:"host"`
	Networks []string               `json:"networks"`
	Active   bool                   `json:"active"`
	Docker   *DockerImage           `json:"docker"`
	Extra    map[string]interface{} `json:"extra"`
}

type CyphernodeInfo

type CyphernodeInfo struct {
	ApiVersions        []string             `json:"api_versions"`
	Features           []*CyphernodeFeature `json:"features"`
	OptionalFeatures   []*CyphernodeFeature `json:"optional_features"`
	BitcoinCoreVersion *version.Version     `json:"bitcoin_version"`
	DockerMode         string               `json:"docker_mode"`
}

func (*CyphernodeInfo) FindCyphernodeFeature

func (cyphernodeInfo *CyphernodeInfo) FindCyphernodeFeature(label string) *CyphernodeFeature

type DockerImage

type DockerImage struct {
	ImageName string
	Version   *version.Version
}

func (*DockerImage) UnmarshalJSON

func (dockerImage *DockerImage) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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