Commit e57a7a0 1 parent bd5d598 commit e57a7a0 Copy full SHA for e57a7a0
File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ type QueryOptions struct {
87
87
// Currently only supported by specific endpoints.
88
88
Reverse bool
89
89
90
+ // Choose is used when selecting a subset of services from the normal
91
+ // complete list of services. Format is <count>|<hash>, where the hash is
92
+ // typically the allocation ID of the requesting task.
93
+ Choose string
94
+
90
95
// ctx is an optional context pass through to the underlying HTTP
91
96
// request layer. Use Context() and WithContext() to manage this.
92
97
ctx context.Context
@@ -611,6 +616,9 @@ func (r *request) setQueryOptions(q *QueryOptions) {
611
616
if q .Filter != "" {
612
617
r .params .Set ("filter" , q .Filter )
613
618
}
619
+ if q .Choose != "" {
620
+ r .params .Set ("choose" , q .Choose )
621
+ }
614
622
if q .PerPage != 0 {
615
623
r .params .Set ("per_page" , fmt .Sprint (q .PerPage ))
616
624
}
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ module github.com/hashicorp/nomad
2
2
3
3
go 1.17
4
4
5
+ // remove
6
+ replace github.com/hashicorp/consul-template => ../consul-template
7
+
5
8
// Pinned dependencies are noted in github.com/hashicorp/nomad/issues/11826
6
9
replace (
7
10
github.com/Microsoft/go-winio => github.com/endocrimes/go-winio v0.4.13-0.20190628114223-fb47a8b41948
You can’t perform that action at this time.
0 commit comments