weave

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 11 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Status() (Status, error)
	AddDNSEntry(fqdn, containerid string, ip net.IP) error
	PS() (map[string]PSEntry, error) // on the interface for mocking
	Expose() error                   // on the interface for mocking
}

Client for Weave Net API

func NewClient

func NewClient(url string) Client

NewClient makes a new Client

type DNS

type DNS struct {
	Entries []struct {
		Hostname    string
		ContainerID string
		Tombstone   int64
	}
}

DNS describes the status of Weave DNS

type IPAM added in v0.14.0

type IPAM struct {
	DefaultSubnet string
}

IPAM describes the status of Weave IPAM

type PSEntry

type PSEntry struct {
	ContainerIDPrefix string
	MACAddress        string
	IPs               []string
}

PSEntry is a row from the output of `weave ps`

type Router

type Router struct {
	Name  string
	Peers []struct {
		Name     string
		NickName string
	}
}

Router describes the status of the Weave Router

type Status

type Status struct {
	Router Router
	DNS    DNS
	IPAM   IPAM
}

Status describes whats happen in the Weave Net router.

Jump to

Keyboard shortcuts

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