overlay

package
v25.0.18+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 43 Imported by: 88 modules, 186 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	NetworkType = "overlay"
)
View Source
const OverlayPeerTable = "overlay_peer_table"

OverlayPeerTable is the NetworkDB table for overlay network peer discovery.

Variables

View Source
var (
	ErrInvalidLengthOverlay        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOverlay          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOverlay = fmt.Errorf("proto: unexpected end of group")
)

Functions

func Register

func Register(r driverapi.Registerer, config map[string]interface{}) error

Register registers a new instance of the overlay driver.

Types

type Peer

type Peer struct {
	EndpointIP       netip.Prefix
	EndpointMAC      hashable.MACAddr
	TunnelEndpointIP netip.Addr
}

func UnmarshalPeerRecord

func UnmarshalPeerRecord(data []byte) (*Peer, error)

type PeerRecord

type PeerRecord struct {
	// Endpoint IP is the IP of the container attachment on the
	// given overlay network.
	EndpointIP string `protobuf:"bytes,1,opt,name=endpoint_ip,json=endpointIp,proto3" json:"endpoint_ip,omitempty"`
	// Endpoint MAC is the mac address of the container attachment
	// on the given overlay network.
	EndpointMAC string `protobuf:"bytes,2,opt,name=endpoint_mac,json=endpointMac,proto3" json:"endpoint_mac,omitempty"`
	// Tunnel Endpoint IP defines the host IP for the host in
	// which this container is running and can be reached by
	// building a tunnel to that host IP.
	TunnelEndpointIP string `protobuf:"bytes,3,opt,name=tunnel_endpoint_ip,json=tunnelEndpointIp,proto3" json:"tunnel_endpoint_ip,omitempty"`
}

PeerRecord defines the information corresponding to a peer container in the overlay network.

func (*PeerRecord) Descriptor

func (*PeerRecord) Descriptor() ([]byte, []int)

func (*PeerRecord) GetEndpointIP

func (m *PeerRecord) GetEndpointIP() string

func (*PeerRecord) GetEndpointMAC

func (m *PeerRecord) GetEndpointMAC() string

func (*PeerRecord) GetTunnelEndpointIP

func (m *PeerRecord) GetTunnelEndpointIP() string

func (*PeerRecord) GoString

func (this *PeerRecord) GoString() string

func (*PeerRecord) Marshal

func (m *PeerRecord) Marshal() (dAtA []byte, err error)

func (*PeerRecord) MarshalTo

func (m *PeerRecord) MarshalTo(dAtA []byte) (int, error)

func (*PeerRecord) MarshalToSizedBuffer

func (m *PeerRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PeerRecord) ProtoMessage

func (*PeerRecord) ProtoMessage()

func (*PeerRecord) Reset

func (m *PeerRecord) Reset()

func (*PeerRecord) Size

func (m *PeerRecord) Size() (n int)

func (*PeerRecord) String

func (this *PeerRecord) String() string

func (*PeerRecord) Unmarshal

func (m *PeerRecord) Unmarshal(dAtA []byte) error

func (*PeerRecord) XXX_DiscardUnknown

func (m *PeerRecord) XXX_DiscardUnknown()

func (*PeerRecord) XXX_Marshal

func (m *PeerRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerRecord) XXX_Merge

func (m *PeerRecord) XXX_Merge(src proto.Message)

func (*PeerRecord) XXX_Size

func (m *PeerRecord) XXX_Size() int

func (*PeerRecord) XXX_Unmarshal

func (m *PeerRecord) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package overlayutils provides utility functions for overlay networks
Package overlayutils provides utility functions for overlay networks

Jump to

Keyboard shortcuts

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