discovery

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHostNotFound = errors.New("host not found")

Functions

func IsHostNotFound

func IsHostNotFound(err error) bool

Types

type HostDiscovery

type HostDiscovery interface {
	IsLocal(name string) bool
	GetHost(name string) (HostInfo, error)
	GetHosts() (map[string]HostInfo, error)
	Close()
}

func NewDebugHostDiscovery

func NewDebugHostDiscovery(local string, hosts map[string]HostInfo) (HostDiscovery, error)

func NewK8sHostDiscovery

func NewK8sHostDiscovery(node string, namespace string, selector map[string]string) (HostDiscovery, error)

type HostInfo

type HostInfo struct {
	NodeName string
	HpfsHost string
	HpfsPort uint32
	SshPort  uint32
}

Jump to

Keyboard shortcuts

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