github.com/hashicorp/vault/api
Official package for interacting with a Vault server.
Wrap HTTP client
Struct literal
api.Config
- Pointer or Value
Replace the expression using the template:
// Using the following synthetic imports:
import (
vaulttrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/hashicorp/vault"
)
{{- .AST.Type -}}{
{{- $hasField := false -}}
{{ range .AST.Elts }}
{{- if eq .Key.Name "HttpClient" }}
{{- $hasField = true -}}
HttpClient: vaulttrace.WrapHTTPClient({{ .Value }}),
{{- else -}}
{{ . }},
{{ end -}}
{{ end }}
{{- if not $hasField -}}
HttpClient: vaulttrace.NewHTTPClient(),
{{- end }}
}