Merge remote-tracking branch 'origin/main' into llb-byow
This commit is contained in:
commit
5d3facf561
56 files changed
+1455
-320
No files matched your search
@@ -31,6 +31,7 @@ type options struct {
|
||||
withSessionIds []string
|
||||
withDbOpts []db.Option
|
||||
withWorkerStateDelay time.Duration
|
||||
withTerminated bool
|
||||
}
|
||||
|
||||
func getDefaultOptions() options {
|
||||
@@ -112,3 +113,10 @@ func WithWorkerStateDelay(d time.Duration) Option {
|
||||
o.withWorkerStateDelay = d
|
||||
}
|
||||
}
|
||||
|
||||
// WithTerminated is used to include terminated sessions in a list request.
|
||||
func WithTerminated(withTerminated bool) Option {
|
||||
return func(o *options) {
|
||||
o.withTerminated = withTerminated
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user