execshim

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Start() error
	SetStdout(*bytes.Buffer)
	SetStderr(*bytes.Buffer)
	StdoutPipe() (io.ReadCloser, error)
	StderrPipe() (io.ReadCloser, error)
	Wait() error
	SetEnv([]string)
	Run() error
	CombinedOutput() ([]byte, error)
	Pid() int
	SysProcAttr() *syscall.SysProcAttr
}

type Exec

type Exec interface {
	Command(name string, arg ...string) Cmd
	CommandContext(ctx context.Context, name string, arg ...string) Cmd
	LookPath(file string) (string, error)
}

type ExecShim

type ExecShim struct{}

func (*ExecShim) Command

func (sh *ExecShim) Command(name string, arg ...string) Cmd

func (*ExecShim) CommandContext

func (sh *ExecShim) CommandContext(ctx context.Context, name string, arg ...string) Cmd

func (*ExecShim) LookPath

func (sh *ExecShim) LookPath(file string) (string, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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