Added filters to snapshots API
Signed-off-by: bpopovschi <zyqsempai@mail.ru>
This commit is contained in:
committed by
Derek McGowan
parent
c59561a08e
commit
e8c14c07c6
@@ -312,7 +312,7 @@ func (s *Snapshotter) removeDevice(ctx context.Context, key string) error {
|
||||
}
|
||||
|
||||
// Walk iterates through all metadata Info for the stored snapshots and calls the provided function for each.
|
||||
func (s *Snapshotter) Walk(ctx context.Context, fn func(context.Context, snapshots.Info) error) error {
|
||||
func (s *Snapshotter) Walk(ctx context.Context, fn func(context.Context, snapshots.Info) error, filters ...string) error {
|
||||
log.G(ctx).Debug("walk")
|
||||
return s.withTransaction(ctx, false, func(ctx context.Context) error {
|
||||
return storage.WalkInfo(ctx, fn)
|
||||
|
||||
Reference in New Issue
Block a user