nomad: Add SecretID to QueryOptions and WriteMeta

This commit is contained in:
Armon Dadgar
2017-08-20 20:12:11 -07:00
parent ab5ce9b1a7
commit 62a5580e53

View File

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