MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / ReadFile

Method ReadFile

cmd/storage-interface.go:92–92  ·  view source on GitHub ↗
(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier)

Source from the content-addressed store, hash-verified

90 // File operations.
91 ListDir(ctx context.Context, volume, dirPath string, count int) ([]string, error)
92 ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error)
93 AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error)
94 CreateFile(ctx context.Context, volume, path string, size int64, reader io.Reader) error
95 ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error)

Callers 15

BenchmarkReaderFunction · 0.65
BenchmarkPReaderFunction · 0.65
loadCompressedFunction · 0.65
openTestFileFunction · 0.65
ParsePublicCertFileFunction · 0.65
LoadX509KeyPairFunction · 0.65
TestAppendFileFunction · 0.65
ReadFileMethod · 0.65
readFromSecretFunction · 0.65
handleKMSConfigFunction · 0.65
testStorageAPIReadFileFunction · 0.65
TestFormatErasureMigrateFunction · 0.65

Implementers 5

xlStorageDiskIDCheckcmd/xl-storage-disk-id-check.go
naughtyDiskcmd/naughty-disk_test.go
unrecognizedDiskcmd/storage-interface.go
xlStoragecmd/xl-storage.go
storageRESTClientcmd/storage-rest-client.go

Calls

no outgoing calls

Tested by 15

BenchmarkReaderFunction · 0.52
BenchmarkPReaderFunction · 0.52
loadCompressedFunction · 0.52
openTestFileFunction · 0.52
TestAppendFileFunction · 0.52
testStorageAPIReadFileFunction · 0.52
TestFormatErasureMigrateFunction · 0.52
ReadFileMethod · 0.52
loadMetacacheSampleFunction · 0.52
TestHealingFunction · 0.52
TestHealingVersionedFunction · 0.52