update plugin options to include WithVersion

pull/3251/head
Danielle Miu 3 years ago committed by Timothy Messier
parent 5f20eb60ad
commit 385b804ed2
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

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

Loading…
Cancel
Save