Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) Delete(ctx context.Context, bucket, key string) error
- func (s Service) Download(ctx context.Context, bucket, key string, file io.Writer) error
- func (s Service) Exists(ctx context.Context, bucketName, key string) (bool, error)
- func (s Service) List(ctx context.Context, bucketName, prefix 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 ¶
View Source
var (
// ErrNoSuchKey is raised when the object is not found.
ErrNoSuchKey = "The specified key does not exist."
)
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) MakeBucket ¶
MakeBucket creates a new bucket with bucketName with a context to control cancellations and timeouts.
Click to show internal directories.
Click to hide internal directories.