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 + } +}