gexpect – github.com/coreos/gexpect Index | Files | Directories

package gexpect

import "github.com/coreos/gexpect"

Index

Variables

var (
	ErrEmptySearch = errors.New("empty search string")
)

Types

type ExpectSubprocess

type ExpectSubprocess struct {
	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func Command

func Command(command string) (*ExpectSubprocess, error)

func Spawn

func Spawn(command string) (*ExpectSubprocess, error)

func SpawnAtDirectory

func SpawnAtDirectory(command string, directory string) (*ExpectSubprocess, error)

func (*ExpectSubprocess) AsyncInteractChannels

func (expect *ExpectSubprocess) AsyncInteractChannels() (send chan string, receive chan string)

func (*ExpectSubprocess) Capture

func (expect *ExpectSubprocess) Capture()

func (*ExpectSubprocess) Close

func (expect *ExpectSubprocess) Close() error

func (*ExpectSubprocess) Collect

func (expect *ExpectSubprocess) Collect() []byte

func (*ExpectSubprocess) Expect

func (expect *ExpectSubprocess) Expect(searchString string) (e error)

func (*ExpectSubprocess) ExpectRegex

func (expect *ExpectSubprocess) ExpectRegex(regex string) (bool, error)

func (*ExpectSubprocess) ExpectRegexFind

func (expect *ExpectSubprocess) ExpectRegexFind(regex string) ([]string, error)

func (*ExpectSubprocess) ExpectRegexFindWithOutput

func (expect *ExpectSubprocess) ExpectRegexFindWithOutput(regex string) ([]string, string, error)

func (*ExpectSubprocess) ExpectTimeout

func (expect *ExpectSubprocess) ExpectTimeout(searchString string, timeout time.Duration) (e error)

func (*ExpectSubprocess) ExpectTimeoutRegexFind

func (expect *ExpectSubprocess) ExpectTimeoutRegexFind(regex string, timeout time.Duration) ([]string, error)

func (*ExpectSubprocess) ExpectTimeoutRegexFindWithOutput

func (expect *ExpectSubprocess) ExpectTimeoutRegexFindWithOutput(regex string, timeout time.Duration) ([]string, string, error)

func (*ExpectSubprocess) Interact

func (expect *ExpectSubprocess) Interact()

func (*ExpectSubprocess) ReadLine

func (expect *ExpectSubprocess) ReadLine() (string, error)

func (*ExpectSubprocess) ReadUntil

func (expect *ExpectSubprocess) ReadUntil(delim byte) ([]byte, error)

func (*ExpectSubprocess) Send

func (expect *ExpectSubprocess) Send(command string) error

func (*ExpectSubprocess) SendLine

func (expect *ExpectSubprocess) SendLine(command string) error

func (*ExpectSubprocess) Start

func (expect *ExpectSubprocess) Start() error

func (*ExpectSubprocess) Wait

func (expect *ExpectSubprocess) Wait() error

Source Files

gexpect.go

Directories

PathSynopsis
examples
Version
v0.1.1 (latest)
Published
Dec 8, 2016
Platform
linux/amd64
Imports
11 packages
Last checked
now

Tools for package owners.