common

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDevMemPath = "/dev/mem"

Variables

This section is empty.

Functions

func Error

func Error(code api.FirmwareError, cause error) error

func ErrorNoPermission

func ErrorNoPermission(cause error) error

func ErrorNoResponse

func ErrorNoResponse(cause error) error

func MapFSErrors

func MapFSErrors(err error) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL