Checkpoint
This commit is contained in:
125 files changed
+59376
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package hardware
|
||||
|
||||
import "errors"
|
||||
|
||||
// Resource is a basic resource (like an input) or a device.
|
||||
type Resource interface {
|
||||
// String returns the human readable name of the resource.
|
||||
String() string
|
||||
|
||||
// Halt stops the resource.
|
||||
Halt() error
|
||||
}
|
||||
|
||||
// IsNotFound for resources that return a NotFound error.
|
||||
func IsNotFound(err error) bool {
|
||||
return errors.Is(err, PinNotFound{})
|
||||
}
|
||||
Reference in new issue
Block a user