Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostPortManager ¶
type HostPortManager interface { // Add implements port mappings. // id should be a unique identifier for a pod, e.g. podSandboxID. // podPortMapping is the associated port mapping information for the pod. // natInterfaceName is the interface that localhost uses to talk to the given pod, if known. Add(id string, podPortMapping *PodPortMapping, natInterfaceName string) error // Remove cleans up matching port mappings // Remove must be able to clean up port mappings without pod IP Remove(id string, podPortMapping *PodPortMapping) error }
HostPortManager is an interface for adding and removing hostport for a given pod sandbox.
func NewHostportManager ¶
func NewHostportManager() HostPortManager
NewHostportManager creates a new HostPortManager.
func NewNoopHostportManager ¶ added in v1.28.0
func NewNoopHostportManager() HostPortManager
NewNoopHostportManager creates a new HostPortManager.
type PodPortMapping ¶
type PodPortMapping struct { Namespace string Name string PortMappings []*PortMapping HostNetwork bool IP net.IP }
PodPortMapping represents a pod's network state and associated container port mappings.
Click to show internal directories.
Click to hide internal directories.