Encryption: Start move to data keys

This commit is contained in:
Emil Tullstedt
2020-10-08 17:06:38 +02:00
parent 11e6cc10d4
commit 2f4a097e53
8 changed files with 326 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
package models
import (
"errors"
"time"
)
var (
ErrDataKeyNotFound = errors.New("data key not found")
)
type DataKey struct {
Active bool `json:"active"`
Name string `json:"name"`
Provider string `json:"provider"`
EncryptedData []byte `json:"-"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}