rebooter

package
v0.0.0-...-a1f36d2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 5 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 GetChannel

func GetChannel() chan RebootType

func RebootMachine

func RebootMachine(log log.T)

RebootMachine reboots the machine

func RequestPendingReboot

func RequestPendingReboot(log log.T) bool

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.

type RebootType

type RebootType string
const (
	RebootRequestTypeReboot RebootType = "reboot"
	RebootRequestTypeUpdate RebootType = "update"
)

Jump to

Keyboard shortcuts

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