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

Method AppendFile

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

Source from the content-addressed store, hash-verified

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)
96 RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error

Callers 15

TestXLStorageAppendFileFunction · 0.95
AppendFileMethod · 0.65
TestIsValidUmaskFileFunction · 0.65
testStorageAPIListDirFunction · 0.65
testStorageAPIReadAllFunction · 0.65
testStorageAPIReadFileFunction · 0.65
testStorageAPIAppendFileFunction · 0.65
testStorageAPIDeleteFileFunction · 0.65
testStorageAPIRenameFileFunction · 0.65
AppendFileMethod · 0.65
AppendFileHandlerMethod · 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

TestXLStorageAppendFileFunction · 0.76
TestIsValidUmaskFileFunction · 0.52
testStorageAPIListDirFunction · 0.52
testStorageAPIReadAllFunction · 0.52
testStorageAPIReadFileFunction · 0.52
testStorageAPIAppendFileFunction · 0.52
testStorageAPIDeleteFileFunction · 0.52
testStorageAPIRenameFileFunction · 0.52
AppendFileMethod · 0.52
TestUNCPathsFunction · 0.52
TestUNCPathENOTDIRFunction · 0.52