Documentation
¶
Index ¶
- type FlashCertificatesResult
- type FlashFirmwareResult
- type FwUploader
- func (uploader *FwUploader) FlashCertificates(portAddress, fqbn, LogLevel string, verbose bool, certsPath *paths.Path, ...) (*FlashCertificatesResult, error)
- func (uploader *FwUploader) FlashFirmware(portAddress, fqbn, LogLevel string, verbose bool, firmwarePath *paths.Path, ...) (*FlashFirmwareResult, error)
- func (uploader *FwUploader) GetFirmwareVersion(portAddress, fqbn, LogLevel string, verbose bool, stdout, stderr io.Writer) (*GetFirmwareVersionResult, error)
- func (uploader *FwUploader) QueryAPIVersion() (int, error)
- type GetFirmwareVersionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlashCertificatesResult ¶
FlashCertificatesResult contains the result of GetFirmwareVersion command
type FlashFirmwareResult ¶
GetFirmwareVersionResult contains the result of GetFirmwareVersion command
type FwUploader ¶
type FwUploader struct {
// contains filtered or unexported fields
}
FwUploadr is an helper to run a fwuploader-plugin.
func NewFWUploaderPlugin ¶
func NewFWUploaderPlugin(pluginDir *paths.Path) (*FwUploader, error)
NewFWUploaderPlugin creates a new FWUploader, pluginDir must point to the plugin directory.
func (*FwUploader) FlashCertificates ¶
func (uploader *FwUploader) FlashCertificates(portAddress, fqbn, LogLevel string, verbose bool, certsPath *paths.Path, stdout, stderr io.Writer) (*FlashCertificatesResult, error)
FlashCertificates writes the given certificates bundle in PEM format.
func (*FwUploader) FlashFirmware ¶
func (uploader *FwUploader) FlashFirmware(portAddress, fqbn, LogLevel string, verbose bool, firmwarePath *paths.Path, stdout, stderr io.Writer) (*FlashFirmwareResult, error)
FlashFirmware runs the plugin to flash the selected firmware
func (*FwUploader) GetFirmwareVersion ¶
func (uploader *FwUploader) GetFirmwareVersion(portAddress, fqbn, LogLevel string, verbose bool, stdout, stderr io.Writer) (*GetFirmwareVersionResult, error)
GetFirmwareVersion runs the plugin to obtain the version of the installed firmware
func (*FwUploader) QueryAPIVersion ¶
func (uploader *FwUploader) QueryAPIVersion() (int, error)
QueryAPIVersion queries the plugin API version
type GetFirmwareVersionResult ¶
type GetFirmwareVersionResult struct { FirmwareVersion *semver.RelaxedVersion Error string Stdout []byte Stderr []byte }
GetFirmwareVersionResult contains the result of GetFirmwareVersion command