overlay

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WeavePeerName is the key for the peer name, typically a MAC address.
	WeavePeerName = "weave_peer_name"

	// WeavePeerNickName is the key for the peer nickname, typically a
	// hostname.
	WeavePeerNickName = "weave_peer_nick_name"

	// WeaveDNSHostname is the ket for the WeaveDNS hostname
	WeaveDNSHostname = "weave_dns_hostname"

	// WeaveMACAddress is the key for the mac address of the container on the
	// weave network, to be found in container node metadata
	WeaveMACAddress = "weave_mac_address"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Weave

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

Weave represents a single Weave router, presumably on the same host as the probe. It is both a Reporter and a Tagger: it produces an Overlay topology, and (in theory) can tag existing topologies with foreign keys to overlay -- though I'm not sure what that would look like in practice right now.

func NewWeave

func NewWeave(hostID string, client weave.Client) *Weave

NewWeave returns a new Weave tagger based on the Weave router at address. The address should be an IP or FQDN, no port.

func (*Weave) Name added in v0.10.0

func (*Weave) Name() string

Name of this reporter/tagger/ticker, for metrics gathering

func (*Weave) Report

func (w *Weave) Report() (report.Report, error)

Report implements Reporter.

func (*Weave) Stop added in v0.10.0

func (w *Weave) Stop()

Stop gathering weave ps output.

func (*Weave) Tag

func (w *Weave) Tag(r report.Report) (report.Report, error)

Tag implements Tagger.

Jump to

Keyboard shortcuts

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