data

package
v0.0.0-...-0f876b5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkDataClient

type NetworkDataClient interface {
	GetNetworkNamespacesByTaskID(taskID string) ([]*tasknetworkconfig.NetworkNamespace, error)
	SaveNetworkNamespace(netNS *tasknetworkconfig.NetworkNamespace) error
	GetNetworkNamespace(netNSName string) (*tasknetworkconfig.NetworkNamespace, error)

	// AssignGeneveDstPort returns an unused destination port number for GENEVE interfaces.
	// By default for a particular VNI, it will return the default GENEVE destination port - 6081.
	// In case port 6081 is taken by another interface using the same VNI, it will chose a
	// random port from within the pre-configured range.
	AssignGeneveDstPort(vni string) (uint16, error)

	// ReleaseGeneveDstPort tells the client that the port is no longer in use by the interface having
	// the mentioned VNI. The port could be reused later.
	ReleaseGeneveDstPort(port uint16, vni string) error
}

Directories

Path Synopsis
Package mock_data is a generated GoMock package.
Package mock_data is a generated GoMock package.

Jump to

Keyboard shortcuts

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