Versions in this module Expand all Collapse all v0 v0.0.12 Feb 8, 2021 Changes in this version + const KeyLeftShift + const PackerKeyDefault + const PackerKeyEnv + func GenerateExpressionSequence(command string) (expressionSequence, error) + func NewPCXTDriver(send SendCodeFunc, chunkSize int, interval time.Duration) *pcXTDriver + func NewUSBDriver(send SendUsbScanCodes, interval time.Duration) *usbDriver + func NewVNCDriver(c VNCKeyEvent, interval time.Duration) *vncDriver + func Parse(filename string, b []byte, opts ...Option) (interface{}, error) + func ParseFile(filename string, opts ...Option) (i interface{}, err error) + func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, error) + type BCDriver interface + Flush func() error + SendKey func(key rune, action KeyAction) error + SendSpecial func(special string, action KeyAction) error + type BootConfig struct + BootCommand []string + BootGroupInterval time.Duration + BootWait time.Duration + func (c *BootConfig) FlatBootCommand() string + func (c *BootConfig) Prepare(ctx *interpolate.Context) (errs []error) + type Cloner interface + Clone func() interface{} + type KeyAction int + const KeyOff + const KeyOn + const KeyPress + func (k KeyAction) String() string + type Option func(*parser) Option + func AllowInvalidUTF8(b bool) Option + func Debug(b bool) Option + func Entrypoint(ruleName string) Option + func GlobalStore(key string, value interface{}) Option + func InitState(key string, value interface{}) Option + func MaxExpressions(maxExprCnt uint64) Option + func Memoize(b bool) Option + func Recover(b bool) Option + func Statistics(stats *Stats, choiceNoMatch string) Option + type SendCodeFunc func([]string) error + type SendUsbScanCodes func(k key.Code, down bool) error + type Stats struct + ChoiceAltCnt map[string]map[string]int + ExprCnt uint64 + type VNCConfig struct + BootKeyInterval time.Duration + DisableVNC bool + func (c *VNCConfig) Prepare(ctx *interpolate.Context) (errs []error) + type VNCKeyEvent interface + KeyEvent func(uint32, bool) error