discovery

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceDiscovery

type DeviceDiscovery struct {
	// contains filtered or unexported fields
}

func NewDeviceDiscovery

func NewDeviceDiscovery(deviceName string, port int, advertiseIfaces []string, store storage.Interface, logger *logrus.Entry) *DeviceDiscovery

func (*DeviceDiscovery) Advertise

func (d *DeviceDiscovery) Advertise(device *deviceapi.DeviceDiscovery, ip net.IP) error

func (*DeviceDiscovery) Close

func (d *DeviceDiscovery) Close() error

func (*DeviceDiscovery) Discover

func (d *DeviceDiscovery) Discover() error

func (*DeviceDiscovery) ExternalIPs

func (d *DeviceDiscovery) ExternalIPs() ([]net.IP, error)

TODO: remove this in favour of the NetworkInterface resource, each exposing an IP within its status.

func (*DeviceDiscovery) Store

func (d *DeviceDiscovery) Store() storage.Interface

Jump to

Keyboard shortcuts

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