Documentation
¶
Index ¶
- func New() storage.Service
- type Service
- func (s *Service) CopyObject(_ context.Context, opts storage.CopyObjectOptions) (*storage.ObjectInfo, error)
- func (s *Service) DeleteObject(_ context.Context, opts storage.DeleteObjectOptions) error
- func (s *Service) DeleteObjects(_ context.Context, opts storage.DeleteObjectsOptions) error
- func (s *Service) GetObject(_ context.Context, opts storage.GetObjectOptions) (io.ReadCloser, error)
- func (*Service) GetPresignedURL(_ context.Context, opts storage.PresignedURLOptions) (string, error)
- func (s *Service) ListObjects(_ context.Context, opts storage.ListObjectsOptions) ([]storage.ObjectInfo, error)
- func (s *Service) MoveObject(ctx context.Context, opts storage.MoveObjectOptions) (info *storage.ObjectInfo, err error)
- func (s *Service) PromoteObject(ctx context.Context, tempKey string) (*storage.ObjectInfo, error)
- func (s *Service) PutObject(_ context.Context, opts storage.PutObjectOptions) (*storage.ObjectInfo, error)
- func (s *Service) StatObject(_ context.Context, opts storage.StatObjectOptions) (*storage.ObjectInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶ added in v0.10.0
type Service struct {
// contains filtered or unexported fields
}
Service is intended for testing purposes only.
func (*Service) CopyObject ¶ added in v0.10.0
func (s *Service) CopyObject(_ context.Context, opts storage.CopyObjectOptions) (*storage.ObjectInfo, error)
func (*Service) DeleteObject ¶ added in v0.10.0
func (*Service) DeleteObjects ¶ added in v0.10.0
func (*Service) GetObject ¶ added in v0.10.0
func (s *Service) GetObject(_ context.Context, opts storage.GetObjectOptions) (io.ReadCloser, error)
func (*Service) GetPresignedURL ¶ added in v0.18.0
func (*Service) ListObjects ¶ added in v0.10.0
func (s *Service) ListObjects(_ context.Context, opts storage.ListObjectsOptions) ([]storage.ObjectInfo, error)
func (*Service) MoveObject ¶ added in v0.10.0
func (s *Service) MoveObject(ctx context.Context, opts storage.MoveObjectOptions) (info *storage.ObjectInfo, err error)
func (*Service) PromoteObject ¶ added in v0.10.0
func (*Service) PutObject ¶ added in v0.10.0
func (s *Service) PutObject(_ context.Context, opts storage.PutObjectOptions) (*storage.ObjectInfo, error)
func (*Service) StatObject ¶ added in v0.10.0
func (s *Service) StatObject(_ context.Context, opts storage.StatObjectOptions) (*storage.ObjectInfo, error)
Click to show internal directories.
Click to hide internal directories.