{"modulePath":"github.com/dankohn/libpod","version":"v1.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package exec\n\nPackage exec provides utilities for executing Open Container Initative runtime hooks.\n\n## Constants\n\n```go\nconst DefaultPostKillTimeout = time.Duration(10) * time.Second\n```\nDefaultPostKillTimeout is the recommended default post-kill timeout.\n\n## Functions\n\n```go\nfunc Run(ctx context.Context, hook *rspec.Hook, state []byte, stdout io.Writer, stderr io.Writer, postKillTimeout time.Duration) (hookErr, err error)\n```\nRun executes the hook and waits for it to complete or for the context or hook-specified timeout to expire.\n\n```go\nfunc RuntimeConfigFilter(ctx context.Context, hooks []spec.Hook, config *spec.Spec, postKillTimeout time.Duration) (hookErr, err error)\n```\nRuntimeConfigFilter calls a series of hooks.  But instead of passing container state on their standard input, RuntimeConfigFilter passes the proposed runtime configuration (and reads back a possibly-altered form from their standard output).\n\n","path":"github.com/dankohn/libpod/pkg/hooks/exec","name":"exec","synopsis":"Package exec provides utilities for executing Open Container Initative runtime hooks.","isRedistributable":true}
