MCPcopy
hub / github.com/mxpv/podsync / Storage

Interface Storage

pkg/fs/storage.go:10–22  ·  view source on GitHub ↗

Storage is a file system interface to host downloaded episodes and feeds.

Source from the content-addressed store, hash-verified

8
9// Storage is a file system interface to host downloaded episodes and feeds.
10type Storage interface {
11 // FileSystem must be implemented to in order to pass Storage interface to HTTP file server.
12 http.FileSystem
13
14 // Create will create a new file from reader
15 Create(ctx context.Context, name string, reader io.Reader) (int64, error)
16
17 // Delete deletes the file
18 Delete(ctx context.Context, name string) error
19
20 // Size returns a storage object's size in bytes
21 Size(ctx context.Context, name string) (int64, error)
22}
23
24// Config is a configuration for the file storage backend
25type Config struct {

Callers 18

copyFileMethod · 0.65
TestS3_CreateFunction · 0.65
TestS3_SizeFunction · 0.65
TestS3_DeleteFunction · 0.65
downloadEpisodesMethod · 0.65
buildXMLMethod · 0.65
buildOPMLMethod · 0.65
TestS3_DeleteFunction · 0.65
DeleteFeedMethod · 0.65
DeleteEpisodeMethod · 0.65
cleanupMethod · 0.65
SizeMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected