# Functions
AllowInvalidUTF8 creates an Option to allow invalid UTF-8 bytes.
Debug creates an Option to set the debug flag to b.
Entrypoint creates an Option to set the rule name to use as entrypoint.
GenerateExpressionSequence generates a sequence of expressions from the given command.
GlobalStore creates an Option to set a key to a certain value in the globalStore.
InitState creates an Option to set a key to a certain value in the global "state" store.
MaxExpressions creates an Option to stop parsing after the provided number of expressions have been parsed, if the value is 0 then the parser will parse for as many steps as needed (possibly an infinite number).
Memoize creates an Option to set the memoize flag to b.
NewPCXTDriver creates a new boot command driver for VMs that expect PC-XT keyboard codes.
No description provided by the author
No description provided by the author
Parse parses the data from b using filename as information in the error messages.
ParseFile parses the file identified by filename.
ParseReader parses the data from r using filename as information in the error messages.
Recover creates an Option to set the recover flag to b.
Statistics adds a user provided Stats struct to the parser to allow the user to process the results after the parsing has finished.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PackerKeyDefault 100ms is appropriate for shared build infrastructure while a shorter delay (e.g.
PackerKeyEnv is used to specify the key interval (delay) between keystrokes sent to the VM, typically in boot commands.
# Structs
The boot configuration is very important: `boot_command` specifies the keys to type when the virtual machine is first booted in order to start the OS installer.
Stats stores some statistics, gathered during parsing.
The boot command "typed" character for character over a VNC connection to the machine, simulating a human actually typing the keyboard.
# Interfaces
BCDriver is our access to the VM we want to type boot commands to.
Cloner is implemented by any value that has a Clone method, which returns a copy of the value.
No description provided by the author
# Type aliases
KeysAction represents what we want to do with a key press.
Option is a function that can set an option on the parser.
SendCodeFunc will be called to send codes to the VM.
SendUsbScanCodes will be called to send codes to the VM.