pkg/stringid: move to daemon, and provide copy in client

The stringid package is used in many places; while it's trivial
to implement a similar utility, let's just provide it as a utility
package in the client, removing the daemon-specific logic.

For integration tests, I opted to use the implementation in the
client, as those should not ideally not make assumptions about
the daemon implementation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-07-24 12:55:07 +02:00
parent 57e1cb2a28
commit ca1c5ee08f
65 changed files with 226 additions and 61 deletions

View File

@@ -8,7 +8,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/daemon/internal/stringid"
"github.com/google/uuid"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"