rebooter

package
v0.0.0-...-3f59448 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rebooter provides utilities used to reboot a machine.

Package rebooter provides utilities used to reboot a machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RebootInitiated

func RebootInitiated() bool

RebootInitiated returns whether the Reboot request has initiated.

func RebootMachine

func RebootMachine(log log.T)

RebootMachine reboots the machine

func RebootRequestCount

func RebootRequestCount() uint

RebootRequestCount returns the reboot request count.

func RebootRequested

func RebootRequested() bool

RebootRequested returns the reboot request count.

func RequestPendingReboot

func RequestPendingReboot()

RequestPendingReboot requests a pending reboot. A reboot will be initiated by the agent at an appropriate time.

Types

type MockedRebooter

type MockedRebooter struct {
	mock.Mock
}

MockedRebooter stands for a mock Rebooter.

func (*MockedRebooter) RebootMachine

func (rebooterMock *MockedRebooter) RebootMachine()

RebootMachine mocks the RebootMachine method.

Jump to

Keyboard shortcuts

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