MCPcopy Index your code
hub / github.com/coder/coder / WriteFile

Method WriteFile

codersdk/workspacesdk/agentconn.go:124–124  ·  view source on GitHub ↗
(ctx context.Context, path string, reader io.Reader)

Source from the content-addressed store, hash-verified

122 ReadFile(ctx context.Context, path string, offset, limit int64) (io.ReadCloser, string, error)
123 ReadFileLines(ctx context.Context, path string, offset, limit int64, limits ReadFileLinesLimits) (ReadFileLinesResponse, error)
124 WriteFile(ctx context.Context, path string, reader io.Reader) error
125 EditFiles(ctx context.Context, edits FileEditRequest) (FileEditResponse, error)
126 SSH(ctx context.Context) (*gonet.TCPConn, error)
127 SSHClient(ctx context.Context) (*ssh.Client, error)

Callers 15

TestOverlayFSFunction · 0.65
DumpOnFailureFunction · 0.65
TestWriteFileFunction · 0.65
executeWriteFileToolFunction · 0.65
writeConfigFunction · 0.65
TestCompressorEncodingsFunction · 0.65

Implementers 3

agentConncodersdk/workspacesdk/agentconn.go
MockAgentConncodersdk/workspacesdk/agentconnmock/ag
MockAgentConnMockRecordercodersdk/workspacesdk/agentconnmock/ag

Calls

no outgoing calls

Tested by 15

TestOverlayFSFunction · 0.52
TestWriteFileFunction · 0.52
TestCompressorEncodingsFunction · 0.52
TestCompressorHeadingsFunction · 0.52
TestTarFunction · 0.52
TestUntarFunction · 0.52