Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardFlashMethod ¶
type BoardFlashMethod func(firmwarePath string, s *FlashState) error
type BoardFlasher ¶
type BoardFlasher struct { *FlashState // contains filtered or unexported fields }
func New ¶
func New(boardType BoardType) (*BoardFlasher, error)
func (*BoardFlasher) Flash ¶
func (b *BoardFlasher) Flash(path string) error
func (*BoardFlasher) FlashAsync ¶
func (b *BoardFlasher) FlashAsync(path string) error
type FlashState ¶
type FlashState struct {
// contains filtered or unexported fields
}
func (*FlashState) CompletedSteps ¶
func (s *FlashState) CompletedSteps() int
func (*FlashState) Finished ¶
func (s *FlashState) Finished() bool
func (*FlashState) FlashError ¶
func (s *FlashState) FlashError() error
func (*FlashState) Running ¶
func (s *FlashState) Running() bool
func (*FlashState) TotalSteps ¶
func (s *FlashState) TotalSteps() int
Click to show internal directories.
Click to hide internal directories.