// Copyright (c) 2020 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package api56import (7"os"8"time"9)1011// ListDirRequest is the argument for ListDir12type ListDirRequest struct {13Dir string14}1516// ListDirResponse is the response for ListDir17type ListDirResponse struct {18Files []string19}2021// WriteFileRequest is the argument for WriteFile22type WriteFileRequest struct {23Path string24Content []byte25Mode os.FileMode26}2728// WriteFileResponse is the response for WriteFile29type WriteFileResponse struct {30}3132type ExecRequest struct {33Dir string34Command string35Args []string36Env []string37}3839type ExecResponse struct {40ExitCode int41Stdout string42Stderr string43}4445type BurnCpuRequest struct {46Procs uint47Timeout time.Duration48}49type BurnCpuResponse struct{}505152