commandtest

package
v1.6.3-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 7 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	sync.Mutex
	Spec command.Spec

	Started   bool
	Waited    bool
	Killed    bool
	StdinData []byte

	StdinPipeCalled  bool
	StdoutPipeCalled bool
	StderrPipeCalled bool
	// contains filtered or unexported fields
}

func (*Command) Compare

func (c *Command) Compare(o *Command) error

func (*Command) Kill

func (c *Command) Kill()

func (*Command) Start

func (c *Command) Start() error

func (*Command) Stderr

func (c *Command) Stderr(err io.Writer)

func (*Command) StderrPipe

func (c *Command) StderrPipe() (io.Reader, error)

func (*Command) Stdin

func (c *Command) Stdin(in io.Reader)

func (*Command) StdinPipe

func (c *Command) StdinPipe() (io.WriteCloser, error)

func (*Command) Stdout

func (c *Command) Stdout(out io.Writer)

func (*Command) StdoutPipe

func (c *Command) StdoutPipe() (io.Reader, error)

func (*Command) Wait

func (c *Command) Wait() error

type Commander

type Commander struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Commander) Commands

func (c *Commander) Commands() []*Command

func (*Commander) NewCommand

func (c *Commander) NewCommand(s command.Spec) command.Command

Jump to

Keyboard shortcuts

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