Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("resource not found") ErrNotSupported = errors.New("not supported") )
View Source
var WireSet = wire.NewSet( ProvideStore, )
Functions ¶
This section is empty.
Types ¶
type FileSystemStore ¶
type FileSystemStore struct {
// contains filtered or unexported fields
}
func (*FileSystemStore) Download ¶
func (c *FileSystemStore) Download(_ context.Context, filePath string) (io.ReadCloser, error)
func (FileSystemStore) GetSignedURL ¶
type GCSStore ¶
type GCSStore struct {
// contains filtered or unexported fields
}
func (*GCSStore) GetSignedURL ¶
type Store ¶
type Store interface { // Upload uploads a file to the blob store. Upload(ctx context.Context, file io.Reader, filePath string) error // GetSignedURL returns the URL for a file in the blob store. GetSignedURL(ctx context.Context, filePath string) (string, error) // Download returns a reader for a file in the blob store. Download(ctx context.Context, filePath string) (io.ReadCloser, error) }
func NewFileSystemStore ¶
Click to show internal directories.
Click to hide internal directories.