88 cerrdefs "github.com/containerd/errdefs"
99 "github.com/containerd/log"
1010 "github.com/distribution/reference"
11- "github.com/docker/docker/api/types"
1211 "github.com/docker/docker/api/types/filters"
1312 "github.com/docker/docker/api/types/image"
1413 "github.com/docker/docker/errdefs"
@@ -31,7 +30,7 @@ var imagesAcceptedFilters = map[string]bool{
3130var errPruneRunning = errdefs .Conflict (errors .New ("a prune operation is already running" ))
3231
3332// ImagesPrune removes unused images
34- func (i * ImageService ) ImagesPrune (ctx context.Context , fltrs filters.Args ) (* types. ImagesPruneReport , error ) {
33+ func (i * ImageService ) ImagesPrune (ctx context.Context , fltrs filters.Args ) (* image. PruneReport , error ) {
3534 if ! i .pruneRunning .CompareAndSwap (false , true ) {
3635 return nil , errPruneRunning
3736 }
@@ -62,8 +61,8 @@ func (i *ImageService) ImagesPrune(ctx context.Context, fltrs filters.Args) (*ty
6261 return i .pruneUnused (ctx , filterFunc , danglingOnly )
6362}
6463
65- func (i * ImageService ) pruneUnused (ctx context.Context , filterFunc imageFilterFunc , danglingOnly bool ) (* types. ImagesPruneReport , error ) {
66- report := types. ImagesPruneReport {}
64+ func (i * ImageService ) pruneUnused (ctx context.Context , filterFunc imageFilterFunc , danglingOnly bool ) (* image. PruneReport , error ) {
65+ report := image. PruneReport {}
6766
6867 allImages , err := i .images .List (ctx )
6968 if err != nil {
0 commit comments