vault: Track the renew time

This commit is contained in:
Armon Dadgar
2015-03-13 11:36:24 -07:00
parent 2d7436b840
commit 647668d215
2 changed files with 2 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ type leaseEntry struct {
Data map[string]interface{}
Lease *Lease
IssueTime time.Time
RenewTime time.Time
}
// encode is used to JSON encode the lease entry

View File

@@ -77,6 +77,7 @@ func TestLeaseEntry(t *testing.T) {
MaxDuration: time.Hour,
},
IssueTime: time.Now(),
RenewTime: time.Now(),
}
enc, err := le.encode()