Commit Graph

4 Commits

Author SHA1 Message Date
Giuseppe Scrivano baed285a8a store: remove deprecated ApplyDiffWithDiffer
The ApplyDiffWithDiffer function was marked as deprecated,
with PrepareStagedLayer being the recommended replacement.
Its implementation was just a wrapper around PrepareStagedLayer.

Remove the deprecated function from the Store and LayerStore
interfaces and its implementation.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-05-07 08:52:18 +02:00
Kir Kolyshkin b15d254157 Use any instead of interface{}
It's available since Go 1.18 (see https://pkg.go.dev/builtin#any).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-03-31 15:37:25 -07:00
Giuseppe Scrivano 96f734acce store: drop deprecated functions
the callers in c/image were already replaced, so simplify the store
API and drop the functions.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-10 15:21:00 +02:00
Miloslav Trmač 81a07ef5cb Make all the various *Store interfaces, apart from storage.Store, private
There is no public way to obtain implementations of these interfaces; so
replace the public interfaces with private ones, to make it clear that we
_can_ modify them.

For formal API compatibility, preserve the old interface definitions
as copies.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-10-11 19:25:19 +02:00