MCPcopy
hub / github.com/containerd/containerd / WithProcessArgs

Function WithProcessArgs

pkg/oci/spec_opts.go:237–244  ·  view source on GitHub ↗

WithProcessArgs replaces the args on the generated spec

(args ...string)

Source from the content-addressed store, hash-verified

235
236// WithProcessArgs replaces the args on the generated spec
237func WithProcessArgs(args ...string) SpecOpts {
238 return func(_ context.Context, _ Client, _ *containers.Container, s *Spec) error {
239 setProcess(s)
240 s.Process.Args = args
241 s.Process.CommandLine = ""
242 return nil
243 }
244}
245
246// WithProcessCwd replaces the current working directory on the generated spec
247func WithProcessCwd(cwd string) SpecOpts {

Callers 15

withProcessArgsFunction · 0.92
withCatFunction · 0.92
withTrueFunction · 0.92
TestCheckpointRestorePTYFunction · 0.92
TestCheckpointRestoreFunction · 0.92
withProcessArgsFunction · 0.92
withCatFunction · 0.92

Calls 1

setProcessFunction · 0.85

Tested by 15

withProcessArgsFunction · 0.74
withCatFunction · 0.74
withTrueFunction · 0.74
TestCheckpointRestorePTYFunction · 0.74
TestCheckpointRestoreFunction · 0.74
withProcessArgsFunction · 0.74
withCatFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…