kmsv2: implement expire cache with clock

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
This commit is contained in:
Anish Ramasekar
2022-09-14 20:01:45 +00:00
parent 674eb36f92
commit 4804baa011
19 changed files with 206 additions and 136 deletions

View File

@@ -125,7 +125,6 @@ resources:
- kms:
apiVersion: v2
name: kms-provider
cachesize: 1000
endpoint: unix:///@kms-provider.sock
`
@@ -229,7 +228,6 @@ resources:
- kms:
apiVersion: v2
name: kms-provider
cachesize: 1000
endpoint: unix:///@kms-provider.sock
`
pluginMock, err := kmsv2mock.NewBase64Plugin("@kms-provider.sock")
@@ -442,7 +440,6 @@ resources:
- kms:
apiVersion: v2
name: kms-provider
cachesize: 1000
endpoint: unix:///@kms-provider.sock
`