Skip to content

Commit

Permalink
Add support fort consul token
Browse files Browse the repository at this point in the history
signed-off-by: Damien Goldenberg <[email protected]>

Signed-off-by: Damien <[email protected]>
  • Loading branch information
dgoldenberg committed Aug 13, 2018
1 parent 791d3fc commit acc0f38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions store/consul/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func New(endpoints []string, options *store.Config) (store.Store, error) {
if options.ConnectionTimeout != 0 {
s.setTimeout(options.ConnectionTimeout)
}
if options.Token != nil {
s.config.Token = options.Token
}
}

// Creates a new client
Expand Down
1 change: 1 addition & 0 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type Config struct {
PersistConnection bool
Username string
Password string
Token *string
}

// ClientTLSConfig contains data for a Client TLS configuration in the form
Expand Down

0 comments on commit acc0f38

Please sign in to comment.