Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindToolPath ¶
FindToolPath retrieve the path to the given tool, if available, otherwise returns an error
Types ¶
type Plugin ¶
type Plugin interface { // GetPluginInfo returns information about the plugin GetPluginInfo() *PluginInfo // UploadFirmware performs a firmware upload on the board UploadFirmware(portAddress, fqbn string, firmwarePath *paths.Path, feedback *PluginFeedback) error // UploadCertificate performs a certificate upload on the board UploadCertificate(portAddress, fqbn string, certificatePath *paths.Path, feedback *PluginFeedback) error // GetFirmwareVersion retrieve the firmware version installed on the board GetFirmwareVersion(portAddress, fqbn string, feedback *PluginFeedback) (*semver.RelaxedVersion, error) }
Plugin is the interface that the implementations of the Firmware Uploader plugins must follow
type PluginFeedback ¶
type PluginFeedback struct {
// contains filtered or unexported fields
}
PluginFeedback is a struct that provides ways for the plugin to give feedback to the user.
func (*PluginFeedback) Err ¶
func (f *PluginFeedback) Err() io.Writer
Err returns an error stream for console-like feedback
func (*PluginFeedback) Out ¶
func (f *PluginFeedback) Out() io.Writer
Out returns an output stream for console-like feedback
type PluginInfo ¶
type PluginInfo struct { // Name of the plugin Name string // Version of the plugin Version *semver.Version }
PluginInfo is a set of information describing the plugin
Click to show internal directories.
Click to hide internal directories.