mirror of
				https://github.com/redhat-developer/odo.git
				synced 2025-10-19 03:06:19 +03:00 
			
		
		
		
	 4bab9285fb
			
		
	
	4bab9285fb
	
	
	
		
			
			* Add test cases simulating build or run commands that take very long * Pass a context around to relevant functions and methods This will allow to handle cancellations and timeouts and deadlines as needed * Pass the context to Podman exec command too * fixup! Add test cases simulating build or run commands that take very long
		
			
				
	
	
		
			13 lines
		
	
	
		
			411 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			411 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package exec
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"io"
 | |
| )
 | |
| 
 | |
| type Client interface {
 | |
| 	// ExecuteCommand executes the given command in the pod's container,
 | |
| 	// writing the output to the specified respective pipe writers
 | |
| 	ExecuteCommand(ctx context.Context, command []string, podName string, containerName string, show bool, stdoutWriter *io.PipeWriter, stderrWriter *io.PipeWriter) (stdout []string, stderr []string, err error)
 | |
| }
 |