Files
akvorado/conntrackfixer/interfaces.go
Vincent Bernat 79619f324e conntrackfixer: upgrade to github.com/moby/moby v29
There are several changes in this version.
2025-11-11 11:15:31 +01:00

29 lines
669 B
Go

// SPDX-FileCopyrightText: 2022 Free Mobile
// SPDX-License-Identifier: AGPL-3.0-only
//go:build linux
package conntrackfixer
import (
"context"
"github.com/moby/moby/client"
"github.com/ti-mo/conntrack"
)
// ConntrackConn is the part of conntrack.Conn we use
type ConntrackConn interface {
Close() error
Dump(opts *conntrack.DumpOptions) ([]conntrack.Flow, error)
Delete(f conntrack.Flow) error
}
// DockerClient is the part of docker.Client we use
type DockerClient interface {
client.ContainerAPIClient
client.SystemAPIClient
ServerVersion(ctx context.Context, options client.ServerVersionOptions) (client.ServerVersionResult, error)
Close() error
}