mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
vault: Track the renew time
This commit is contained in:
@@ -195,6 +195,7 @@ type leaseEntry struct {
|
|||||||
Data map[string]interface{}
|
Data map[string]interface{}
|
||||||
Lease *Lease
|
Lease *Lease
|
||||||
IssueTime time.Time
|
IssueTime time.Time
|
||||||
|
RenewTime time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
// encode is used to JSON encode the lease entry
|
// encode is used to JSON encode the lease entry
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ func TestLeaseEntry(t *testing.T) {
|
|||||||
MaxDuration: time.Hour,
|
MaxDuration: time.Hour,
|
||||||
},
|
},
|
||||||
IssueTime: time.Now(),
|
IssueTime: time.Now(),
|
||||||
|
RenewTime: time.Now(),
|
||||||
}
|
}
|
||||||
|
|
||||||
enc, err := le.encode()
|
enc, err := le.encode()
|
||||||
|
|||||||
Reference in New Issue
Block a user