diff options
| author | Nicolas De Loof <nicolas.deloof@gmail.com> | 2022-08-05 09:57:08 +0200 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2023-03-10 17:54:55 +0100 |
| commit | 06619763a25b3f651c198baaebbd5f01a2315976 (patch) | |
| tree | 45cebe982853fc5666ccdacfc8d2a67766e0f26f /api/server | |
| parent | a1f6a705225eedcb55fe6dac7dec0b9870330d78 (diff) | |
| download | docker-06619763a25b3f651c198baaebbd5f01a2315976.tar.gz | |
remove GetLayerByID from ImageService interface
Co-authored-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Co-authored-by: Paweł Gronowski <pawel.gronowski@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'api/server')
| -rw-r--r-- | api/server/router/container/backend.go | 2 | ||||
| -rw-r--r-- | api/server/router/container/container_routes.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/server/router/container/backend.go b/api/server/router/container/backend.go index eea44d8b7a..0c53282b38 100644 --- a/api/server/router/container/backend.go +++ b/api/server/router/container/backend.go @@ -25,7 +25,7 @@ type execBackend interface { type copyBackend interface { ContainerArchivePath(name string, path string) (content io.ReadCloser, stat *types.ContainerPathStat, err error) ContainerCopy(name string, res string) (io.ReadCloser, error) - ContainerExport(name string, out io.Writer) error + ContainerExport(ctx context.Context, name string, out io.Writer) error ContainerExtractToDir(name, path string, copyUIDGID, noOverwriteDirNonDir bool, content io.Reader) error ContainerStatPath(name string, path string) (stat *types.ContainerPathStat, err error) } diff --git a/api/server/router/container/container_routes.go b/api/server/router/container/container_routes.go index 9436ab46d8..5f4b63a1d2 100644 --- a/api/server/router/container/container_routes.go +++ b/api/server/router/container/container_routes.go @@ -174,7 +174,7 @@ func (s *containerRouter) getContainersLogs(ctx context.Context, w http.Response } func (s *containerRouter) getContainersExport(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { - return s.backend.ContainerExport(vars["name"], w) + return s.backend.ContainerExport(ctx, vars["name"], w) } type bodyOnStartError struct{} |
