api: update docs

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

View File

@@ -8,9 +8,15 @@ import (
// Secret is the structure returned for every secret within Vault.
type Secret struct {
LeaseID string `json:"lease_id"`
Renewable bool `json:"renewable"`
LeaseDuration int `json:"lease_duration"`
Renewable bool `json:"renewable"`
// 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"`
}