mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user