@@ -30,13 +30,15 @@ import (
30
30
)
31
31
32
32
// Index represents Cores and Tools struct as seen from package_index.json file.
33
+ //
33
34
//easyjson:json
34
35
type Index struct {
35
36
Packages []* indexPackage `json:"packages"`
36
37
IsTrusted bool
37
38
}
38
39
39
40
// indexPackage represents a single entry from package_index.json file.
41
+ //
40
42
//easyjson:json
41
43
type indexPackage struct {
42
44
Name string `json:"name"`
@@ -50,6 +52,7 @@ type indexPackage struct {
50
52
}
51
53
52
54
// indexPlatformRelease represents a single Core Platform from package_index.json file.
55
+ //
53
56
//easyjson:json
54
57
type indexPlatformRelease struct {
55
58
Name string `json:"name"`
@@ -69,6 +72,7 @@ type indexPlatformRelease struct {
69
72
}
70
73
71
74
// indexToolDependency represents a single dependency of a core from a tool.
75
+ //
72
76
//easyjson:json
73
77
type indexToolDependency struct {
74
78
Packager string `json:"packager"`
@@ -77,20 +81,23 @@ type indexToolDependency struct {
77
81
}
78
82
79
83
// indexDiscoveryDependency represents a single dependency of a core from a pluggable discovery tool.
84
+ //
80
85
//easyjson:json
81
86
type indexDiscoveryDependency struct {
82
87
Packager string `json:"packager"`
83
88
Name string `json:"name"`
84
89
}
85
90
86
91
// indexMonitorDependency represents a single dependency of a core from a pluggable monitor tool.
92
+ //
87
93
//easyjson:json
88
94
type indexMonitorDependency struct {
89
95
Packager string `json:"packager"`
90
96
Name string `json:"name"`
91
97
}
92
98
93
99
// indexToolRelease represents a single Tool from package_index.json file.
100
+ //
94
101
//easyjson:json
95
102
type indexToolRelease struct {
96
103
Name string `json:"name"`
@@ -99,6 +106,7 @@ type indexToolRelease struct {
99
106
}
100
107
101
108
// indexToolReleaseFlavour represents a single tool flavor in the package_index.json file.
109
+ //
102
110
//easyjson:json
103
111
type indexToolReleaseFlavour struct {
104
112
OS string `json:"host"`
@@ -109,19 +117,22 @@ type indexToolReleaseFlavour struct {
109
117
}
110
118
111
119
// indexBoard represents a single Board as written in package_index.json file.
120
+ //
112
121
//easyjson:json
113
122
type indexBoard struct {
114
123
Name string `json:"name"`
115
124
ID []indexBoardID `json:"id,omitempty"`
116
125
}
117
126
118
127
// indexBoardID represents the ID of a single board. i.e. uno, yun, diecimila, micro and the likes
128
+ //
119
129
//easyjson:json
120
130
type indexBoardID struct {
121
131
USB string `json:"usb"`
122
132
}
123
133
124
134
// indexHelp represents the help URL
135
+ //
125
136
//easyjson:json
126
137
type indexHelp struct {
127
138
Online string `json:"online,omitempty"`
0 commit comments