mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-13 12:06:29 +00:00
14 lines
359 B
Go
14 lines
359 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/woodpecker-ci/woodpecker/server/model"
|
||
|
"github.com/woodpecker-ci/woodpecker/server/remote"
|
||
|
)
|
||
|
|
||
|
type Extension interface {
|
||
|
IsConfigured() bool
|
||
|
FetchConfig(ctx context.Context, repo *model.Repo, build *model.Build, currentFileMeta []*remote.FileMeta) (configData []*remote.FileMeta, useOld bool, err error)
|
||
|
}
|