Skip to content

Commit 04b7d00

Browse files
authored
Add tailnet lock fields to device structs (#125)
Signed-off-by: hosom <[email protected]>
1 parent c1c7356 commit 04b7d00

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

v2/devices.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ type Device struct {
6262
MachineKey string `json:"machineKey"`
6363
NodeKey string `json:"nodeKey"`
6464
OS string `json:"os"`
65+
TailnetLockError string `json:"tailnetLockError"`
66+
TailnetLockKey string `json:"tailnetLockKey"`
6567
UpdateAvailable bool `json:"updateAvailable"`
6668
}
6769

v2/devices_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ func TestClient_Devices_Get(t *testing.T) {
6161
MachineKey: "mkey:test",
6262
NodeKey: "nodekey:test",
6363
OS: "windows",
64+
TailnetLockError: "test error",
65+
TailnetLockKey: "tlpub:test",
6466
UpdateAvailable: true,
6567
}
6668

0 commit comments

Comments
 (0)