MCPcopy
hub / github.com/opencontainers/runc / Hook

Interface Hook

libcontainer/configs/config.go:537–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537type Hook interface {
538 // Run executes the hook with the provided state.
539 Run(*specs.State) error
540}
541
542// NewFunctionHook will call the provided function when the hook is run.
543func NewFunctionHook(f func(*specs.State) error) FuncHook {

Callers 8

runMethod · 0.65
mainFunction · 0.65
testTransitionsFunction · 0.65
criuNotificationsMethod · 0.65
Example_containerFunction · 0.65
startMethod · 0.65
InitMethod · 0.65
prepareRootfsFunction · 0.65

Implementers 4

Containerlibcontainer/container_linux.go
unserializableHooklibcontainer/factory_linux_test.go
FuncHooklibcontainer/configs/config.go
Commandlibcontainer/configs/config.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…