gitee.com/mirrors_u-root/u-root@v7.0.0+incompatible/pkg/recovery/recovery.go (about) 1 // Copyright 2017-2019 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package recovery 6 7 // Recoverer interface offers recovering 8 // from critical errors in different ways. 9 // Currently permissiverecoverer with log 10 // output and securerecovery with shutdown 11 // capabilities are supported. 12 type Recoverer interface { 13 Recover(message string) error 14 }