Added fields in Machine to store authkey + validation tests
This commit is contained in:
parent
486faa9656
commit
3110dd1575
3 changed files with 105 additions and 3 deletions
10
machine.go
10
machine.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue