mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
15 lines
377 B
Go
15 lines
377 B
Go
package portmapperapi
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/moby/moby/v2/daemon/libnetwork/types"
|
|
)
|
|
|
|
type Firewaller interface {
|
|
// AddPorts adds the configuration needed for NATing ports.
|
|
AddPorts(ctx context.Context, pbs []types.PortBinding) error
|
|
// DelPorts deletes the configuration needed for NATing ports.
|
|
DelPorts(ctx context.Context, pbs []types.PortBinding) error
|
|
}
|