Documentation ¶
Index ¶
- type Service
- func (s Service) Delete(ctx context.Context, bucket, key string) error
- func (s Service) Download(ctx context.Context, bucket, key string, dst io.Writer) error
- func (s Service) Exists(ctx context.Context, bucketName, key string) (bool, error)
- func (s Service) GeneratePresignedURL(ctx context.Context, bucketName, key string) (string, error)
- func (s Service) MakeBucket(ctx context.Context, bucketName, location string) error
- func (s Service) Upload(ctx context.Context, bucket, key string, file io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides abstraction to cloud object storage.
func (Service) GeneratePresignedURL ¶ added in v0.5.0
GeneratePresignedURL is left here only to satisfy the interface. Pre-signed URLs don't make sense for the local storage.
func (Service) MakeBucket ¶
MakeBucket creates a new folder in the local file system that acts like a bucket or a container in a object storage.
Click to show internal directories.
Click to hide internal directories.