MCPcopy
hub / github.com/vmware-tanzu/sonobuoy / Cmd

Interface Cmd

pkg/image/exec/exec.go:36–43  ·  view source on GitHub ↗

Cmd abstracts over running a command somewhere, this is useful for testing

Source from the content-addressed store, hash-verified

34
35// Cmd abstracts over running a command somewhere, this is useful for testing
36type Cmd interface {
37 Run() error
38 // Each entry should be of the form "key=value"
39 SetEnv(...string) Cmd
40 SetStdin(io.Reader) Cmd
41 SetStdout(io.Writer) Cmd
42 SetStderr(io.Writer) Cmd
43}
44
45// Cmder abstracts over creating commands
46type Cmder interface {

Callers 16

TestConfigValidationFunction · 0.65
TestStatusInvalidConfigFunction · 0.65
TestDeleteInvalidConfigFunction · 0.65
TestIsE2ENamespaceFunction · 0.65
TestVersionCheckFunction · 0.65
TestDNSCheckFunction · 0.65
TestNamespaceCheckFunction · 0.65
CombinedOutputLinesFunction · 0.65
InheritOutputFunction · 0.65
RunLoggingOutputOnFailFunction · 0.65
InspectMethod · 0.65

Implementers 1

LocalCmdpkg/image/exec/local.go

Calls

no outgoing calls

Tested by

no test coverage detected