mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
36e42914fa
Renamed `procs` to `steps` in code for the issue #1288 Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com> Co-authored-by: qwerty287 <ndev@web.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
20 lines
536 B
Go
20 lines
536 B
Go
package pipeline
|
|
|
|
import (
|
|
backend "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
|
|
"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(step, r).
|
|
func (f LogFunc) Log(step *backend.Step, r multipart.Reader) error {
|
|
return f(step, r)
|
|
}
|