-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
78 lines (74 loc) · 2.9 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package golangzerotierserviceapi
type Join struct {
AllowDNS bool `json:"allowDNS"`
AllowDefault bool `json:"allowDefault"`
AllowManaged bool `json:"allowManaged"`
AllowGlobal bool `json:"allowGlobal"`
}
type LeaveNetwork struct {
Result bool `json:"result"`
}
type Network struct {
AllowDNS bool `json:"allowDNS"`
AllowDefault bool `json:"allowDefault"`
AllowManaged bool `json:"allowManaged"`
AllowGlobal bool `json:"allowGlobal"`
AssignedAddresses []string `json:"assignedAddresses"`
Bridge bool `json:"bridge"`
BroadcastEnabled bool `json:"broadcastEnabled"`
DNS struct {
Domain string `json:"domain"`
Servers []string `json:"servers"`
} `json:"dns"`
ID string `json:"id"`
Mac string `json:"mac"`
Mtu int `json:"mtu"`
MulticastSubscriptions []struct {
Adi int `json:"adi"`
Mac string `json:"mac"`
} `json:"multicastSubscriptions"`
AuthenticationURL string `json:"authenticationURL"`
AuthenticationExpiryTime int `json:"authenticationExpiryTime"`
Name string `json:"name"`
NetconfRevision int `json:"netconfRevision"`
PortDeviceName string `json:"portDeviceName"`
PortError int `json:"portError"`
Routes []struct {
Flags int `json:"flags"`
Metric int `json:"metric"`
Target string `json:"target"`
Via string `json:"via"`
} `json:"routes"`
Status string `json:"status"`
Type string `json:"type"`
Property1 interface{} `json:"property1"`
Property2 interface{} `json:"property2"`
}
type Status struct {
Address string `json:"address"`
Clock int64 `json:"clock"`
Config struct {
Settings struct {
AllowTCPFallbackRelay bool `json:"allowTcpFallbackRelay"`
ForceTCPRelay bool `json:"forceTcpRelay"`
ListeningOn []string `json:"listeningOn"`
PortMappingEnabled bool `json:"portMappingEnabled"`
PrimaryPort int `json:"primaryPort"`
SecondaryPort int `json:"secondaryPort"`
SoftwareUpdate string `json:"softwareUpdate"`
SoftwareUpdateChannel string `json:"softwareUpdateChannel"`
SurfaceAddresses []string `json:"surfaceAddresses"`
TertiaryPort int `json:"tertiaryPort"`
} `json:"settings"`
} `json:"config"`
Online bool `json:"online"`
PlanetWorldID int `json:"planetWorldId"`
PlanetWorldTimestamp int64 `json:"planetWorldTimestamp"`
PublicIdentity string `json:"publicIdentity"`
TCPFallbackActive bool `json:"tcpFallbackActive"`
Version string `json:"version"`
VersionBuild int `json:"versionBuild"`
VersionMajor int `json:"versionMajor"`
VersionMinor int `json:"versionMinor"`
VersionRev int `json:"versionRev"`
}