MCPcopy
hub / github.com/cortexlabs/cortex / Storage

Interface Storage

pkg/async-gateway/storage.go:32–37  ·  view source on GitHub ↗

Storage is an interface that abstracts cloud storage uploading

Source from the content-addressed store, hash-verified

30
31// Storage is an interface that abstracts cloud storage uploading
32type Storage interface {
33 Upload(key string, payload io.Reader, contentType string) error
34 Download(key string) ([]byte, error)
35 List(key string) ([]string, error)
36 GetLastModified(key string) (time.Time, error)
37}
38
39type s3 struct {
40 uploader *s3manager.Uploader

Callers 15

UploadReaderToS3Method · 0.65
UploadMethod · 0.65
CreateWorkloadMethod · 0.65
DownloadFileFromS3Method · 0.65
DownloadMethod · 0.65
GetWorkloadMethod · 0.65
ListPodsMethod · 0.65
ListJobsMethod · 0.65
ListNodesMethod · 0.65
ListConfigMapsMethod · 0.65
ListIngressesMethod · 0.65
ListHPAsMethod · 0.65

Implementers 1

s3pkg/async-gateway/storage.go

Calls

no outgoing calls

Tested by

no test coverage detected