MCPcopy Create free account
hub / github.com/astercloud/aster / Read

Method Read

pkg/sandbox/interface.go:40–40  ·  view source on GitHub ↗

Read 读取文件内容

(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

38
39 // Read 读取文件内容
40 Read(ctx context.Context, path string) (string, error)
41
42 // Write 写入文件内容
43 Write(ctx context.Context, path string, content string) error

Callers 15

ExecuteMethod · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
randomStringFunction · 0.65
TestLocalSandbox_FSFunction · 0.65
OnAgentStartMethod · 0.65
TestBackendIntegrationFunction · 0.65
generateIDFunction · 0.65
LoadMethod · 0.65
GetMethod · 0.65
UpdateMethod · 0.65
ReadFileMethod · 0.65

Implementers 6

RealFSpkg/tools/builtin/testutils.go
MockFSpkg/sandbox/mock.go
LocalFSpkg/sandbox/local_fs.go
RemoteFSpkg/sandbox/remote.go
AliyunFSpkg/sandbox/cloud/aliyun.go
VolcengineFSpkg/sandbox/cloud/volcengine.go

Calls

no outgoing calls

Tested by 2

TestLocalSandbox_FSFunction · 0.52
TestBackendIntegrationFunction · 0.52