MCPcopy
hub / github.com/containerd/containerd / Resize

Method Resize

client/process.go:218–230  ·  view source on GitHub ↗
(ctx context.Context, w, h uint32)

Source from the content-addressed store, hash-verified

216}
217
218func (p *process) Resize(ctx context.Context, w, h uint32) error {
219 ctx, span := tracing.StartSpan(ctx, "process.Resize",
220 tracing.WithAttribute("process.id", p.ID()),
221 )
222 defer span.End()
223 _, err := p.task.client.TaskService().ResizePty(ctx, &tasks.ResizePtyRequest{
224 ContainerID: p.task.id,
225 Width: w,
226 Height: h,
227 ExecID: p.id,
228 })
229 return errgrpc.ToNative(err)
230}
231
232func (p *process) Delete(ctx context.Context, opts ...ProcessDeleteOpts) (*ExitStatus, error) {
233 ctx, span := tracing.StartSpan(ctx, "process.Delete",

Callers

nothing calls this directly

Calls 6

IDMethod · 0.95
StartSpanFunction · 0.92
WithAttributeFunction · 0.92
EndMethod · 0.80
TaskServiceMethod · 0.80
ResizePtyMethod · 0.65

Tested by

no test coverage detected