Documentation ¶
Index ¶
- type Config
- type CustomAPIHTTPClient
- type Storage
- func (s *Storage) Delete(ctx context.Context, path string) error
- func (s *Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *Storage) OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *gostorages.Stat, error)
- func (s *Storage) Save(ctx context.Context, content io.Reader, path string) error
- func (s *Storage) Stat(ctx context.Context, path string) (*gostorages.Stat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AccessKeyID string Bucket string Endpoint string Region string SecretAccessKey string UploadConcurrency *int64 CustomHTTPClient CustomAPIHTTPClient }
Config is the configuration for Storage.
type CustomAPIHTTPClient ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a s3 storage.
func (*Storage) OpenWithStat ¶
func (s *Storage) OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *gostorages.Stat, error)
OpenWithStat opens path for reading with file stats.
Click to show internal directories.
Click to hide internal directories.