(ctx context.Context, w, h uint32)
| 528 | } |
| 529 | |
| 530 | func (t *task) Resize(ctx context.Context, w, h uint32) error { |
| 531 | ctx, span := tracing.StartSpan(ctx, tracing.Name("client.task", "Resize"), |
| 532 | tracing.WithAttribute("task.id", t.ID()), |
| 533 | tracing.WithNamespace(ctx), |
| 534 | ) |
| 535 | defer span.End() |
| 536 | span.SetAttributes( |
| 537 | tracing.Attribute("task.pty.width", int64(w)), |
| 538 | tracing.Attribute("task.pty.height", int64(h)), |
| 539 | ) |
| 540 | |
| 541 | _, err := t.client.TaskService().ResizePty(ctx, &tasks.ResizePtyRequest{ |
| 542 | ContainerID: t.id, |
| 543 | Width: w, |
| 544 | Height: h, |
| 545 | }) |
| 546 | return errgrpc.ToNative(err) |
| 547 | } |
| 548 | |
| 549 | // NOTE: Checkpoint supports to dump task information to a directory, in this way, an empty |
| 550 | // OCI Index will be returned. |
nothing calls this directly
no test coverage detected