api: update docs

This commit is contained in:
Mitchell Hashimoto
2015-04-13 17:40:05 -07:00
parent 4faf951f03
commit 96f7d05e4b

View File

@@ -7,11 +7,17 @@ import (
// Secret is the structure returned for every secret within Vault. // Secret is the structure returned for every secret within Vault.
type Secret struct { type Secret struct {
LeaseID string `json:"lease_id"` LeaseID string `json:"lease_id"`
Renewable bool `json:"renewable"` LeaseDuration int `json:"lease_duration"`
LeaseDuration int `json:"lease_duration"` Renewable bool `json:"renewable"`
Data map[string]interface{} `json:"data"`
Auth *SecretAuth `json:"auth,omitempty"` // Data is the actual contents of the secret. The format of the data
// is arbitrary and up to the secret backend.
Data map[string]interface{} `json:"data"`
// Auth, if non-nil, means that there was authentication information
// attached to this response.
Auth *SecretAuth `json:"auth,omitempty"`
} }
// Auth is the structure containing auth information if we have it. // Auth is the structure containing auth information if we have it.