mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
14 lines
450 B
Go
14 lines
450 B
Go
|
package libyaml
|
||
|
|
||
|
import "github.com/drone/drone/engine/compiler/parse"
|
||
|
|
||
|
// Transform is used to transform nodes from the parsed Yaml file during the
|
||
|
// compilation process. A Transform may be used to add, disable or alter nodes.
|
||
|
type Transform interface {
|
||
|
VisitRoot(*parse.RootNode) error
|
||
|
VisitVolume(*parse.VolumeNode) error
|
||
|
VisitNetwork(*parse.NetworkNode) error
|
||
|
VisitBuild(*parse.BuildNode) error
|
||
|
VisitContainer(*parse.ContainerNode) error
|
||
|
}
|