MCPcopy
hub / github.com/esm-dev/esm.sh / Get

Method Get

internal/storage/storage.go:25–25  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

23type Storage interface {
24 Stat(key string) (stat Stat, err error)
25 Get(key string) (content io.ReadCloser, stat Stat, err error)
26 Put(key string, r io.Reader) error
27 Delete(key string) error
28 List(prefix string) (keys []string, err error)

Callers 13

TestFSStorageFunction · 0.65
StatMethod · 0.65
GetMethod · 0.65
signMethod · 0.65
TestS3StorageFunction · 0.65
TestAddPackagesFunction · 0.65
fetchImportMetaFunction · 0.65
resolveWithMethod · 0.65
addImportMethod · 0.65
formatImportsFunction · 0.65
formatMapFunction · 0.65

Implementers 2

s3Storageinternal/storage/storage_s3.go
fsStorageinternal/storage/storage_fs.go

Calls

no outgoing calls

Tested by 4

TestFSStorageFunction · 0.52
TestS3StorageFunction · 0.52
TestAddPackagesFunction · 0.52