Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Operation = ResultType("application/vnd.arduino.operation", func() {
Description("Describes the result of an operation.")
TypeName("Operation")
Attribute("status", String, "The status of the operation", func() {
Example("ok")
})
Required("status")
})
View Source
var Tool = ResultType("application/vnd.arduino.tool", func() { Description("A tool is an executable program that can upload sketches.") TypeName("Tool") Reference(ToolPayload) Attribute("name") Attribute("version") Attribute("packager") Required("name", "version", "packager") })
View Source
var ToolPayload = Type("arduino.tool", func() {
Description(`A tool is an executable program that can upload sketches.
If url is absent the tool will be searched among the package index installed`)
TypeName("ToolPayload")
Attribute("name", String, "The name of the tool", func() {
Example("bossac")
})
Attribute("version", String, "The version of the tool", func() {
Example("1.7.0-arduino3")
})
Attribute("packager", String, "The packager of the tool", func() {
Example("arduino")
})
Attribute("url", String, `The url where the package can be found. Optional.
If present checksum must also be present.`, func() {
Example("http://downloads.arduino.cc/tools/bossac-1.7.0-arduino3-linux64.tar.gz")
})
Attribute("checksum", String, `A checksum of the archive. Mandatory when url is present.
This ensures that the package is downloaded correcly.`, func() {
Example("SHA-256:1ae54999c1f97234a5c603eb99ad39313b11746a4ca517269a9285afa05f9100")
})
Attribute("signature", String, `The signature used to sign the url. Mandatory when url is present.
This ensure the security of the file downloaded`, func() {
Example("382898a97b5a86edd74208f10107d2fecbf7059ffe9cc856e045266fb4db4e98802728a0859cfdcda1c0b9075ec01e42dbea1f430b813530d5a6ae1766dfbba64c3e689b59758062dc2ab2e32b2a3491dc2b9a80b9cda4ae514fbe0ec5af210111b6896976053ab76bac55bcecfcececa68adfa3299e3cde6b7f117b3552a7d80ca419374bb497e3c3f12b640cf5b20875416b45e662fc6150b99b178f8e41d6982b4c0a255925ea39773683f9aa9201dc5768b6fc857c87ff602b6a93452a541b8ec10ca07f166e61a9e9d91f0a6090bd2038ed4427af6251039fb9fe8eb62ec30d7b0f3df38bc9de7204dec478fb86f8eb3f71543710790ee169dce039d3e0")
})
Required("name", "version", "packager")
})
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.