api/types: move SecretCreateResponse, SecretListOptions to types/swarm

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-05-19 09:36:48 +02:00
parent 94e84169ec
commit 23117afca8
13 changed files with 54 additions and 45 deletions

View File

@@ -10,7 +10,6 @@ import (
"strings"
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/errdefs"
"gotest.tools/v3/assert"
@@ -46,7 +45,7 @@ func TestSecretCreate(t *testing.T) {
if req.Method != http.MethodPost {
return nil, fmt.Errorf("expected POST method, got %s", req.Method)
}
b, err := json.Marshal(types.SecretCreateResponse{
b, err := json.Marshal(swarm.SecretCreateResponse{
ID: "test_secret",
})
if err != nil {