mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +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)
|
||
|
}
|