MCPcopy
hub / github.com/kubevela/kubevela / Runner

Interface Runner

pkg/builtin/registry/registry_runner.go:92–101  ·  view source on GitHub ↗

Runner defines a command type.

Source from the content-addressed store, hash-verified

90
91// Runner defines a command type.
92type Runner interface {
93 // Init is called with the original configuration before any task is run.
94 // As a result, the configuration may be incomplete, but allows some
95 // validation before tasks are kicked off.
96 // Init(v cue.Value)
97
98 // Runner runs given the current value and returns a new value which is to
99 // be unified with the original result.
100 Run(meta *Meta) (results interface{}, err error)
101}
102
103// RegisterRunner registers a task for cue commands.
104func RegisterRunner(key string, f RunnerFunc) {

Callers 8

GetChartSourceFunction · 0.65
TestOAMAuxiliaryFunction · 0.65
TestValidateSpecFunction · 0.65
TestGetFieldByPathFunction · 0.65
TestGetNodeByPathFunction · 0.65
TestUpdateNodeByPathFunction · 0.65
TestGetFieldLabelFunction · 0.65

Implementers 15

GenMetapkg/definition/gen_sdk/gen_sdk.go
MockRunnerpkg/builtin/registry/registry_runner_t
HTTPCmdpkg/builtin/http/http.go
SystemCRDValidationHookcmd/core/app/hooks/pre_start_hook.go
Argsreferences/cli/logs.go
UpCommandOptionsreferences/cli/up.go
KubeApplyOptionsreferences/cli/kube.go
KubeDeleteOptionsreferences/cli/kube.go
VelaPortForwardOptionsreferences/cli/portforward.go
DeleteOptionsreferences/cli/delete.go
GenKubeConfigOptionsreferences/cli/auth.go
ListPrivilegesOptionsreferences/cli/auth.go

Calls

no outgoing calls

Tested by

no test coverage detected