MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Hook

Interface Hook

pkg/devspace/hook/hook.go:48–50  ·  view source on GitHub ↗

Hook is an interface to execute a specific hook type

Source from the content-addressed store, hash-verified

46
47// Hook is an interface to execute a specific hook type
48type Hook interface {
49 Execute(ctx devspacecontext.Context, hook *latest.HookConfig, extraEnv map[string]string) error
50}
51
52// LogExecuteHooks executes plugin hooks and config hooks and prints errors to the log
53func LogExecuteHooks(ctx devspacecontext.Context, extraEnv map[string]interface{}, events ...string) {

Callers 5

executeHookFunction · 0.65
startContainerMethod · 0.65
execCommandMethod · 0.65
ExecuteBatchCommandMethod · 0.65
ExecuteFunction · 0.65

Implementers 6

remoteHookpkg/devspace/hook/remote_hook.go
localCommandHookpkg/devspace/hook/local_command.go
waitHookpkg/devspace/hook/wait.go
upstreamClienthelper/remote/remote_grpc.pb.go
UnimplementedUpstreamServerhelper/remote/remote_grpc.pb.go
Upstreamhelper/server/upstream.go

Calls

no outgoing calls

Tested by

no test coverage detected