Files
moby/daemon/libnetwork/portmapperapi/firewaller.go
Derek McGowan f74e5d48b3 Create github.com/moby/moby/v2 module
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-07-31 10:13:29 -07:00

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
}