update plugin options to include WithVersion

This commit is contained in:
Danielle Miu authored and Timothy Messier committed 2023-05-31 12:18:19 +00:00
1 parent 5f20eb60ad
commit 385b804ed2
1 file changed
+8
+8
View File
@@ -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
}
}