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
}
Click to show internal directories.
Click to hide internal directories.