mock

package
v0.0.0-...-fa37cd3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock implements a mock driver for testing purposes.

Valid boot devices are "A" and "B".

Index

Constants

View Source
const (
	On          PowerAction = "on"
	Off                     = "off"
	ForceReboot             = "force-reboot"
	SoftReboot              = "soft-reboot"
	BootDevA                = "bootdev-a"
	BootDevB                = "bootdev-b"
)

Variables

View Source
var Driver driver.Driver = mockDriver{}
View Source
var (
	// A mapping from node addrs (the "addr" field in the obm info) to the last power action
	// that was preformed on the OBM.
	LastPowerActions = map[string]PowerAction{}
)

Functions

This section is empty.

Types

type PowerAction

type PowerAction string

Jump to

Keyboard shortcuts

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