keyring: use nanos for CreateTime in key metadata (#13849)

Most of our objects use int64 timestamps derived from `UnixNano()` instead of
`time.Time` objects. Switch the keyring metadata to use `UnixNano()` for
consistency across the API.
This commit is contained in:
Tim Gross
2022-07-20 14:46:57 -04:00
committed by GitHub
parent a4b752cc49
commit 69c9dc140d
4 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ package api
import (
"fmt"
"net/url"
"time"
)
// Keyring is used to access the Secure Variables keyring
@@ -35,7 +34,7 @@ type RootKey struct {
type RootKeyMeta struct {
KeyID string // UUID
Algorithm EncryptionAlgorithm
CreateTime time.Time
CreateTime int64
CreateIndex uint64
ModifyIndex uint64
State RootKeyState