mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 02:02:43 +00:00 
			
		
		
		
	vault: Track the renew time
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -77,6 +77,7 @@ func TestLeaseEntry(t *testing.T) { | ||||
| 			MaxDuration: time.Hour, | ||||
| 		}, | ||||
| 		IssueTime: time.Now(), | ||||
| 		RenewTime: time.Now(), | ||||
| 	} | ||||
|  | ||||
| 	enc, err := le.encode() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Armon Dadgar
					Armon Dadgar