INNER CODE UNIT · Go

func

cri-o/cri-o · server/container_attach.go:58

func (s *StreamService) Attach(
	ctx context.Context,
	containerID string,
	inputStream io.Reader,
	outputStream, errorStream io.WriteCloser,
	tty bool,
	resizeChan <-chan remotecommand.TerminalSize,
) error {
	ctx, span := log.StartSpan(ctx)
	defer span.End()

	c, err := s.runtimeServer.GetContainerFromShortID(ctx, containerID)
	if err != nil {
		return status.Errorf(codes.NotFound, "could not find container %q: %v", containerID, err)
	}

	if err := s.runtimeServer.ContainerServer.Runtime().
		UpdateContainerStatus(s.ctx, c); err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…