Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoHostsConfigured = errors.New("no hosts configured")
)
View Source
var (
PluginFuncs = map[string]func(ExecPluginOptions, *plugin.Plugin) (any, error){
"apply": applyPlugin,
"filter": filterPlugin,
"onPrClosed": onPrClosedPlugin,
"onPrCreated": onPrCreatedPlugin,
"onPrMerged": onPrMergedPlugin,
}
)
Functions ¶
func ExecPlugin ¶ added in v0.12.0
func ExecPlugin(funcName string, opts ExecPluginOptions) error
ExecPlugin executes the function of a plugin specified by `funcName`. It creates a temporary directory if `opts` doesn't specify one. It decodes the context content to send to the plugin from JSON.
Types ¶
type CiRunner ¶ added in v0.14.0
func NewCiRunnerFromConfig ¶ added in v0.14.0
NewCiRunnerFromConfig creates a new CiRunner by reading from configFile. It ignores some errors that are not relevant in a CI run.
type ExecPluginOptions ¶ added in v0.12.0
type ExecPluginOptions struct { Addr string Config map[string]string Context *protoV1.Context LogFormat string LogLevel string Out io.Writer Path string WorkDir string }
ExecPluginOptions defines all options expected by function ExecPlugin.
type Run ¶ added in v0.9.0
type RunResult ¶
type TryRunner ¶
type TryRunner struct { ApplyActionsFunc func(actions []action.Action, ctx context.Context, dir string) error GitClient git.GitClient Hosts []host.Host Inputs map[string]string Out io.Writer Registry *task.Registry RepositoryName string TaskFile string TaskName string }
func NewTryRunner ¶
Click to show internal directories.
Click to hide internal directories.