Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDevMemPath = "/dev/mem"
Variables ¶
This section is empty.
Functions ¶
func ErrorNoPermission ¶
func ErrorNoResponse ¶
func MapFSErrors ¶
MapFSErrors maps fs, os and some syscall package error types to firmware errors
func ServeApiError ¶
func ServeApiError(err error) api.FirmwareError
Types ¶
type FirmwareError ¶
type FirmwareError struct { Code api.FirmwareError Cause error }
func (*FirmwareError) Error ¶
func (e *FirmwareError) Error() string
func (*FirmwareError) Unwrap ¶
func (e *FirmwareError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.