Added fields in Machine to store authkey + validation tests

This commit is contained in:
Juan Font Alonso 2021-05-06 00:08:36 +02:00
parent 486faa9656
commit 3110dd1575
3 changed files with 105 additions and 3 deletions

View file

@ -25,9 +25,13 @@ type Machine struct {
NamespaceID uint
Namespace Namespace
Registered bool // temp
LastSeen *time.Time
Expiry *time.Time
Registered bool // temp
RegisterMethod string
AuthKeyID uint
AuthKey *PreAuthKey
LastSeen *time.Time
Expiry *time.Time
HostInfo postgres.Jsonb
Endpoints postgres.Jsonb