packer-cn/common/bootcommand/driver.go

12 lines
343 B
Go
Raw Normal View History

package bootcommand
const shiftedChars = "~!@#$%^&*()_+{}|:\"<>?"
// BCDriver is our access to the VM we want to type boot commands to
type BCDriver interface {
SendKey(key rune, action KeyAction) error
SendSpecial(special string, action KeyAction) error
2018-04-19 19:44:50 -04:00
// Flush will be called when we want to send scancodes to the VM.
Flush() error
}