Documentation ¶
Overview ¶
Package s3 provided support for AWS s3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html)
Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Index ¶
- Constants
- func New(pairs ...*types.Pair) (storage.Servicer, storage.Storager, error)
- type Service
- func (s *Service) Create(name string, pairs ...*types.Pair) (storage.Storager, error)
- func (s *Service) CreateWithContext(ctx context.Context, name string, pairs ...*types.Pair) (storage.Storager, error)
- func (s *Service) Delete(name string, pairs ...*types.Pair) (err error)
- func (s *Service) DeleteWithContext(ctx context.Context, name string, pairs ...*types.Pair) (err error)
- func (s *Service) Get(name string, pairs ...*types.Pair) (storage.Storager, error)
- func (s *Service) GetWithContext(ctx context.Context, name string, pairs ...*types.Pair) (storage.Storager, error)
- func (s *Service) List(pairs ...*types.Pair) (err error)
- func (s *Service) ListWithContext(ctx context.Context, pairs ...*types.Pair) (err error)
- func (s *Service) String() string
- type Storage
- func (s *Storage) Delete(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) List(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) ListWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) Metadata(pairs ...*types.Pair) (m metadata.StorageMeta, err error)
- func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m metadata.StorageMeta, err error)
- func (s *Storage) Read(path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) Stat(path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) String() string
- func (s *Storage) Write(path string, r io.Reader, pairs ...*types.Pair) (err error)
- func (s *Storage) WriteWithContext(ctx context.Context, path string, r io.Reader, pairs ...*types.Pair) (err error)
Constants ¶
const Type = "s3"
Type is the type for s3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the s3 service config.
func (*Service) CreateWithContext ¶ added in v0.6.0
func (s *Service) CreateWithContext(ctx context.Context, name string, pairs ...*types.Pair) (storage.Storager, error)
CreateWithContext adds context support for Create.
func (*Service) DeleteWithContext ¶ added in v0.6.0
func (s *Service) DeleteWithContext(ctx context.Context, name string, pairs ...*types.Pair) (err error)
DeleteWithContext adds context support for Delete.
func (*Service) GetWithContext ¶ added in v0.6.0
func (s *Service) GetWithContext(ctx context.Context, name string, pairs ...*types.Pair) (storage.Storager, error)
GetWithContext adds context support for Get.
func (*Service) ListWithContext ¶ added in v0.6.0
ListWithContext adds context support for List.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is the s3 object storage service.
func (*Storage) DeleteWithContext ¶ added in v0.6.0
func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
DeleteWithContext adds context support for Delete.
func (*Storage) ListWithContext ¶ added in v0.6.0
func (s *Storage) ListWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
ListWithContext adds context support for List.
func (*Storage) MetadataWithContext ¶ added in v0.6.0
func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m metadata.StorageMeta, err error)
MetadataWithContext adds context support for Metadata.
func (*Storage) ReadWithContext ¶ added in v0.6.0
func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
ReadWithContext adds context support for Read.
func (*Storage) StatWithContext ¶ added in v0.6.0
func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
StatWithContext adds context support for Stat.