MCPcopy Create free account
hub / github.com/brimdata/super / PutIfNotExists

Method PutIfNotExists

pkg/storage/engine.go:26–26  ·  view source on GitHub ↗
(context.Context, *URI, []byte)

Source from the content-addressed store, hash-verified

24 Get(context.Context, *URI) (Reader, error)
25 Put(context.Context, *URI) (io.WriteCloser, error)
26 PutIfNotExists(context.Context, *URI, []byte) error
27 Delete(context.Context, *URI) error
28 DeleteByPrefix(context.Context, *URI) error
29 Exists(context.Context, *URI) (bool, error)

Callers 4

PutIfNotExistsMethod · 0.65
writeMagicMethod · 0.65
CommitAtMethod · 0.65
putTailLockFileMethod · 0.65

Implementers 7

Routerpkg/storage/router.go
HTTPEnginepkg/storage/http.go
FileSystempkg/storage/file.go
S3Enginepkg/storage/s3.go
StdioEnginepkg/storage/stdio.go
MockEnginepkg/storage/mock/mock_engine.go
MockEngineMockRecorderpkg/storage/mock/mock_engine.go

Calls

no outgoing calls

Tested by

no test coverage detected