Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeIPTables ¶ added in v1.4.0
func NewFakeIPTables() *fakeIPTables
Types ¶
type HostPortManager ¶ added in v1.6.0
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 used to talk to the given pod. 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.