{"modulePath":"github.com/threefoldtech/zos_base","version":"v1.1.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package execwrapper\n\nCode generated by MockGen. DO NOT EDIT. Source: pkg/perf/iperf/exec\\_wrapper.go\n\nGenerated by this command:\n\n\tmockgen -source=pkg/perf/iperf/exec_wrapper.go -destination=pkg/perf/iperf/mock_exec_wrapper.go -package=iperf\n\nPackage execwrapper is a generated GoMock package.\n\n## Types\n\n```go\ntype ExecCmd interface {\n\tCombinedOutput() ([]byte, error)\n}\n```\nExecCmd represents a command that can be executed\n\n```go\ntype ExecWrapper interface {\n\tLookPath(file string) (string, error)\n\tCommandContext(ctx context.Context, name string, arg ...string) ExecCmd\n}\n```\nExecWrapper wraps the exec package functions to allow for mocking\n\n```go\ntype MockExecCmd struct {\n\t// contains filtered or unexported fields\n}\n```\nMockExecCmd is a mock of ExecCmd interface.\n\n```go\nfunc NewMockExecCmd(ctrl *gomock.Controller) *MockExecCmd\n```\nNewMockExecCmd creates a new mock instance.\n\n```go\nfunc (m *MockExecCmd) CombinedOutput() ([]byte, error)\n```\nCombinedOutput mocks base method.\n\n```go\nfunc (m *MockExecCmd) EXPECT() *MockExecCmdMockRecorder\n```\nEXPECT returns an object that allows the caller to indicate expected use.\n\n```go\ntype MockExecCmdMockRecorder struct {\n\t// contains filtered or unexported fields\n}\n```\nMockExecCmdMockRecorder is the mock recorder for MockExecCmd.\n\n```go\nfunc (mr *MockExecCmdMockRecorder) CombinedOutput() *gomock.Call\n```\nCombinedOutput indicates an expected call of CombinedOutput.\n\n```go\ntype MockExecWrapper struct {\n\t// contains filtered or unexported fields\n}\n```\nMockExecWrapper is a mock of ExecWrapper interface.\n\n```go\nfunc NewMockExecWrapper(ctrl *gomock.Controller) *MockExecWrapper\n```\nNewMockExecWrapper creates a new mock instance.\n\n```go\nfunc (m *MockExecWrapper) CommandContext(ctx context.Context, name string, arg ...string) ExecCmd\n```\nCommandContext mocks base method.\n\n```go\nfunc (m *MockExecWrapper) EXPECT() *MockExecWrapperMockRecorder\n```\nEXPECT returns an object that allows the caller to indicate expected use.\n\n```go\nfunc (m *MockExecWrapper) LookPath(file string) (string, error)\n```\nLookPath mocks base method.\n\n```go\ntype MockExecWrapperMockRecorder struct {\n\t// contains filtered or unexported fields\n}\n```\nMockExecWrapperMockRecorder is the mock recorder for MockExecWrapper.\n\n```go\nfunc (mr *MockExecWrapperMockRecorder) CommandContext(ctx, name any, arg ...any) *gomock.Call\n```\nCommandContext indicates an expected call of CommandContext.\n\n```go\nfunc (mr *MockExecWrapperMockRecorder) LookPath(file any) *gomock.Call\n```\nLookPath indicates an expected call of LookPath.\n\n```go\ntype RealExecCmd struct {\n\t// contains filtered or unexported fields\n}\n```\nRealExecCmd wraps exec.Cmd to implement ExecCmd interface\n\n```go\nfunc (r *RealExecCmd) CombinedOutput() ([]byte, error)\n```\nCombinedOutput runs the command and returns its combined standard output and standard error\n\n```go\ntype RealExecWrapper struct{}\n```\nRealExecWrapper implements ExecWrapper using the real exec package\n\n```go\nfunc (r *RealExecWrapper) CommandContext(ctx context.Context, name string, arg ...string) ExecCmd\n```\nCommandContext returns the Cmd struct to execute the named program with the given arguments\n\n```go\nfunc (r *RealExecWrapper) LookPath(file string) (string, error)\n```\nLookPath searches for an executable named file in the directories named by the PATH environment variable\n\n","path":"github.com/threefoldtech/zos_base/pkg/perf/exec_wrapper","name":"execwrapper","synopsis":"Code generated by MockGen.","isRedistributable":true}
