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 ¶
type Service struct {
// contains filtered or unexported fields
}
Service is intended for testing purposes only.
func (*Service) CopyObject ¶
func (s *Service) CopyObject(_ context.Context, opts storage.CopyObjectOptions) (*storage.ObjectInfo, error)
func (*Service) DeleteObject ¶
func (*Service) DeleteObjects ¶
func (*Service) GetObject ¶
func (s *Service) GetObject(_ context.Context, opts storage.GetObjectOptions) (io.ReadCloser, error)
func (*Service) GetPresignedURL ¶
func (*Service) ListObjects ¶
func (s *Service) ListObjects(_ context.Context, opts storage.ListObjectsOptions) ([]storage.ObjectInfo, error)
func (*Service) MoveObject ¶
func (s *Service) MoveObject(ctx context.Context, opts storage.MoveObjectOptions) (info *storage.ObjectInfo, err error)
func (*Service) PromoteObject ¶
func (*Service) PutObject ¶
func (s *Service) PutObject(_ context.Context, opts storage.PutObjectOptions) (*storage.ObjectInfo, error)
func (*Service) StatObject ¶
func (s *Service) StatObject(_ context.Context, opts storage.StatObjectOptions) (*storage.ObjectInfo, error)
Click to show internal directories.
Click to hide internal directories.