Documentation ¶
Index ¶
- type CNIBuilder
- type Connection
- type ConnectionStatus
- type DNSServer
- type DNSStatus
- type IPAMStatus
- type Option
- func NoDNS() Option
- func NoDiscovery() Option
- func NoFastdp() Option
- func NoMulticastRoute() Option
- func NoRestart() Option
- func WithDNSAddress(address string) Option
- func WithDockerPort(port int) Option
- func WithHost(host string) Option
- func WithHostnameFromLabel(labelKey string) Option
- func WithHostnameMatch(match string) Option
- func WithHostnameReplacement(replacement string) Option
- func WithHttpPort(port int) Option
- func WithIPRange(ipRange string) Option
- func WithIpAllocDefaultSubnet(ipRange string) Option
- func WithLogLevel(level string) Option
- func WithName(name string) Option
- func WithNickname(nickname string) Option
- func WithPassword(password string) Option
- func WithPeers(peers ...string) Option
- func WithPlugin() Option
- func WithPort(port int) Option
- func WithProxy() Option
- func WithResume() Option
- func WithStatusPort(port int) Option
- func WithTLS(cacertPath, certPath, keyPath string) Option
- func WithToken(token string) Option
- func WithTrustedSubnets(cidrs string) Option
- func WithVersion(version string) Option
- func WithWeaveMtu(mtu int) Option
- func WithoutDNS() Option
- type Overview
- type PeerStatus
- type Status
- type TargetStatus
- type Weave
- func (w *Weave) AddContainerDNS(containerId, fqdn string) error
- func (w *Weave) AddExternalDNS(ip, fqdn string) error
- func (w *Weave) Attach(containerId string, withoutDNS, rewriteHost, noMulticastRoute bool, ...) error
- func (w *Weave) Close() error
- func (w *Weave) Connect(replace bool, peer ...string) error
- func (w *Weave) Detach(containerId string, addr ...string) error
- func (w *Weave) Expose(fqdn string, withoutMasquerade bool, addr ...string) ([]string, error)
- func (w *Weave) Forget(peer ...string) error
- func (w *Weave) Hide(addr ...string) ([]string, error)
- func (w *Weave) Launch() error
- func (w *Weave) LookupDNS(hostname string) ([]string, error)
- func (w *Weave) Prime() error
- func (w *Weave) RemoveContainerDNS(containerId string, fqdn ...string) error
- func (w *Weave) RemoveExternalDNS(ip, fqdn string) error
- func (w *Weave) RemovePeer(peers ...string) error
- func (w *Weave) Setup() error
- func (w *Weave) SetupCNI() error
- func (w *Weave) Status(subArgs ...string) (*Status, error)
- func (w *Weave) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIBuilder ¶
type CNIBuilder struct {
// contains filtered or unexported fields
}
func NewCNIBuilder ¶
func NewCNIBuilder(cli *docker.Client, version string) *CNIBuilder
type Connection ¶
type ConnectionStatus ¶
type DNSServer ¶
type DNSServer struct { Address string Search string Disabled bool // contains filtered or unexported fields }
func NewDNSServer ¶
type IPAMStatus ¶
type IPAMStatus struct {
IPAM string
}
type Option ¶
type Option func(*Weave)
func NoDiscovery ¶
func NoDiscovery() Option
func NoMulticastRoute ¶
func NoMulticastRoute() Option
func WithDNSAddress ¶
func WithDockerPort ¶
func WithHostnameFromLabel ¶
func WithHostnameMatch ¶
func WithHostnameReplacement ¶
func WithHttpPort ¶
func WithIPRange ¶
func WithLogLevel ¶
func WithNickname ¶
func WithPassword ¶
func WithPlugin ¶
func WithPlugin() Option
func WithResume ¶
func WithResume() Option
func WithStatusPort ¶
func WithTrustedSubnets ¶
func WithVersion ¶
func WithWeaveMtu ¶
func WithoutDNS ¶
func WithoutDNS() Option
type Overview ¶
type Overview struct { Version string Router struct { Protocol string Name string Encryption string PeerDiscovery string Targets string Connections string Peers string TrustedSubnets string } IPAM struct { Status string Range string DefaultSubnet string } DNS struct { Domain string Upstream string TTL string Entries string } Proxy struct { Address string } Plugin struct { DriverName string } }
type PeerStatus ¶
type PeerStatus struct { NodeId string Connections []Connection }
type Status ¶
type Status struct { Overview *Overview DNS []DNSStatus Peers []PeerStatus Connections []ConnectionStatus Targets TargetStatus IPAM IPAMStatus }
type TargetStatus ¶
type TargetStatus struct {
// contains filtered or unexported fields
}
type Weave ¶
type Weave struct {
// contains filtered or unexported fields
}
func (*Weave) AddContainerDNS ¶
func (*Weave) AddExternalDNS ¶
func (*Weave) RemoveContainerDNS ¶
func (*Weave) RemoveExternalDNS ¶
func (*Weave) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.