You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	* Refactor: move cncd/pipeline/ to pipeline/ * Refactor: move pipeline/pipeline/ to pipeline/
		
			
				
	
	
		
			21 lines
		
	
	
		
			522 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			522 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package pipeline
 | |
| 
 | |
| import (
 | |
| 	"github.com/woodpecker-ci/woodpecker/pipeline/backend"
 | |
| 	"github.com/woodpecker-ci/woodpecker/pipeline/multipart"
 | |
| )
 | |
| 
 | |
| // Logger handles the process logging.
 | |
| type Logger interface {
 | |
| 	Log(*backend.Step, multipart.Reader) error
 | |
| }
 | |
| 
 | |
| // LogFunc type is an adapter to allow the use of an ordinary
 | |
| // function for process logging.
 | |
| type LogFunc func(*backend.Step, multipart.Reader) error
 | |
| 
 | |
| // Log calls f(proc, r).
 | |
| func (f LogFunc) Log(step *backend.Step, r multipart.Reader) error {
 | |
| 	return f(step, r)
 | |
| }
 |