From 385b804ed24765e7b520d53aa7c49fc7fce681b8 Mon Sep 17 00:00:00 2001 From: Danielle Miu <29378233+DanielleMiu@users.noreply.github.com> Date: Thu, 18 May 2023 15:25:15 -0400 Subject: [PATCH] update plugin options to include WithVersion --- internal/storage/plugin/options.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/storage/plugin/options.go b/internal/storage/plugin/options.go index 475572f261..80a791de20 100644 --- a/internal/storage/plugin/options.go +++ b/internal/storage/plugin/options.go @@ -32,6 +32,7 @@ type options struct { withWorkerFilter string withBucketPrefix string withLimit int + withVersion uint32 } func getDefaultOptions() options { @@ -103,3 +104,10 @@ func WithLimit(l int) Option { o.withLimit = l } } + +// WithVersion provides an optional version number +func WithVersion(v uint32) Option { + return func(o *options) { + o.withVersion = v + } +}