Skip to content

Commit

Permalink
bug(config): Embedded types do not work with package we use to pull f…
Browse files Browse the repository at this point in the history
…rom Consul (#38)

Replaced embeded type vault.SecretConfig with copy of the fields from the type.

closes #37

Signed-off-by: lenny <[email protected]>
  • Loading branch information
lenny-goodell authored Feb 4, 2020
1 parent 01ced2e commit 2d9fcd4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package config

import (
"fmt"
"time"

"github.com/edgexfoundry/go-mod-core-contracts/clients"

Expand Down Expand Up @@ -104,7 +105,17 @@ func (c ClientInfo) Url() string {

// SecretStoreInfo encapsulates configuration properties used to create a SecretClient.
type SecretStoreInfo struct {
vault.SecretConfig
Host string
Port int
Path string
Protocol string
Namespace string
RootCaCertPath string
ServerName string
Authentication vault.AuthenticationInfo
AdditionalRetryAttempts int
RetryWaitPeriod string
retryWaitPeriodTime time.Duration
// TokenFile provides a location to a token file.
TokenFile string
}
Expand Down

0 comments on commit 2d9fcd4

Please sign in to comment.