Currently the ociregistry.Lister entry points each return an iterator that iterates through all items.
The HTTP API provides pagnination support which we should reflect in the Interface entry points,
making it possible for ociserver to pass through the "last item" information to the underlying interface.
This would require a backwardly incompatible change to Interface. One possibility might be to make
these methods arbitrarily extensible in the future by providing a struct argument. That could
potentially be enough to enable future search-related functionality without breaking the API
or adding new methods.
Currently the
ociregistry.Lister
entry points each return an iterator that iterates through all items. The HTTP API provides pagnination support which we should reflect in theInterface
entry points, making it possible forociserver
to pass through the "last item" information to the underlying interface.This would require a backwardly incompatible change to
Interface
. One possibility might be to make these methods arbitrarily extensible in the future by providing a struct argument. That could potentially be enough to enable future search-related functionality without breaking the API or adding new methods.