88 "github.com/distribution/reference"
99 "github.com/docker/docker/api/types"
1010 "github.com/docker/docker/api/types/backend"
11+ "github.com/docker/docker/api/types/build"
1112 "github.com/docker/docker/api/types/events"
1213 "github.com/docker/docker/builder"
1314 buildkit "github.com/docker/docker/builder/builder-next"
@@ -97,7 +98,7 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
9798}
9899
99100// PruneCache removes all cached build sources
100- func (b * Backend ) PruneCache (ctx context.Context , opts types. BuildCachePruneOptions ) (* types. BuildCachePruneReport , error ) {
101+ func (b * Backend ) PruneCache (ctx context.Context , opts build. CachePruneOptions ) (* build. CachePruneReport , error ) {
101102 buildCacheSize , cacheIDs , err := b .buildkit .Prune (ctx , opts )
102103 if err != nil {
103104 return nil , errors .Wrap (err , "failed to prune build cache" )
@@ -107,7 +108,7 @@ func (b *Backend) PruneCache(ctx context.Context, opts types.BuildCachePruneOpti
107108 "reclaimed" : strconv .FormatInt (buildCacheSize , 10 ),
108109 },
109110 })
110- return & types. BuildCachePruneReport {SpaceReclaimed : uint64 (buildCacheSize ), CachesDeleted : cacheIDs }, nil
111+ return & build. CachePruneReport {SpaceReclaimed : uint64 (buildCacheSize ), CachesDeleted : cacheIDs }, nil
111112}
112113
113114// Cancel cancels the build by ID
0 commit comments