From 62a5580e5346a03a712b5ea0f5eddfe04be2952c Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Sun, 20 Aug 2017 20:12:11 -0700 Subject: [PATCH] nomad: Add SecretID to QueryOptions and WriteMeta --- nomad/structs/structs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 8442c6745..eba0e04b3 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -146,6 +146,9 @@ type QueryOptions struct { // If set, used as prefix for resource list searches Prefix string + + // SecretID is secret portion of the ACL token used for the request + SecretID string } func (q QueryOptions) RequestRegion() string { @@ -164,6 +167,9 @@ func (q QueryOptions) AllowStaleRead() bool { type WriteRequest struct { // The target region for this write Region string + + // SecretID is secret portion of the ACL token used for the request + SecretID string } func (w WriteRequest) RequestRegion() string {