Преглед изворни кода

Merge pull request #42098 from thaJeztah/deprecate_quiet

API-client: remove unused ContainerListOptions.Quiet field
Tianon Gravi пре 4 година
родитељ
комит
e58ca15d48
2 измењених фајлова са 1 додато и 4 уклоњено
  1. 0 1
      api/types/client.go
  2. 1 3
      testutil/environment/clean.go

+ 0 - 1
api/types/client.go

@@ -59,7 +59,6 @@ type ContainerExecInspect struct {
 
 // ContainerListOptions holds parameters to list containers with.
 type ContainerListOptions struct {
-	Quiet   bool
 	Size    bool
 	All     bool
 	Latest  bool

+ 1 - 3
testutil/environment/clean.go

@@ -50,7 +50,6 @@ func getPausedContainers(ctx context.Context, t testing.TB, client client.Contai
 	filter.Add("status", "paused")
 	containers, err := client.ContainerList(ctx, types.ContainerListOptions{
 		Filters: filter,
-		Quiet:   true,
 		All:     true,
 	})
 	assert.Check(t, err, "failed to list containers")
@@ -85,8 +84,7 @@ func deleteAllContainers(t testing.TB, apiclient client.ContainerAPIClient, prot
 func getAllContainers(ctx context.Context, t testing.TB, client client.ContainerAPIClient) []types.Container {
 	t.Helper()
 	containers, err := client.ContainerList(ctx, types.ContainerListOptions{
-		Quiet: true,
-		All:   true,
+		All: true,
 	})
 	assert.Check(t, err, "failed to list containers")
 	return containers