1
// Copyright 2012-2014 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"github.com/juju/errors"
10
var ErrRequeueAndReboot = errors.New("reboot now")
11
var ErrReboot = errors.New("reboot after hook")
12
var ErrNoProcess = errors.New("no process to kill")
14
type missingHookError struct {
18
func (e *missingHookError) Error() string {
19
return e.hookName + " does not exist"
22
func IsMissingHookError(err error) bool {
23
_, ok := err.(*missingHookError)
27
func NewMissingHookError(hookName string) error {
28
return &missingHookError{hookName}