s3

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

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

View Source
const Type = "s3"

Type is the type for s3

Variables

This section is empty.

Functions

func New

func New(pairs ...*types.Pair) (_ storage.Servicer, _ storage.Storager, err error)

New will create a new s3 service.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the s3 service config.

func (*Service) Create

func (s *Service) Create(name string, pairs ...*types.Pair) (st storage.Storager, err error)

Create implements Servicer.Create

func (*Service) CreateWithContext added in v0.6.0

func (s *Service) CreateWithContext(ctx context.Context, name string, pairs ...*types.Pair) (st storage.Storager, err error)

CreateWithContext adds context support for Create.

func (*Service) Delete

func (s *Service) Delete(name string, pairs ...*types.Pair) (err error)

Delete implements Servicer.Delete

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) Get

func (s *Service) Get(name string, pairs ...*types.Pair) (st storage.Storager, err error)

Get implements Servicer.Get

func (*Service) GetWithContext added in v0.6.0

func (s *Service) GetWithContext(ctx context.Context, name string, pairs ...*types.Pair) (st storage.Storager, err error)

GetWithContext adds context support for Get.

func (*Service) List

func (s *Service) List(pairs ...*types.Pair) (err error)

List implements Servicer.List

func (*Service) ListWithContext added in v0.6.0

func (s *Service) ListWithContext(ctx context.Context, pairs ...*types.Pair) (err error)

ListWithContext adds context support for List.

func (*Service) String

func (s *Service) String() string

String implements Servicer.String

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is the s3 object storage service.

func (*Storage) AbortSegment added in v0.9.0

func (s *Storage) AbortSegment(seg segment.Segment, pairs ...*types.Pair) (err error)

AbortSegment implements Storager.AbortSegment

func (*Storage) AbortSegmentWithContext added in v0.9.0

func (s *Storage) AbortSegmentWithContext(ctx context.Context, seg segment.Segment, pairs ...*types.Pair) (err error)

AbortSegmentWithContext adds context support for AbortSegment.

func (*Storage) CompleteSegment added in v0.9.0

func (s *Storage) CompleteSegment(seg segment.Segment, pairs ...*types.Pair) (err error)

CompleteSegment implements Storager.CompleteSegment

func (*Storage) CompleteSegmentWithContext added in v0.9.0

func (s *Storage) CompleteSegmentWithContext(ctx context.Context, seg segment.Segment, pairs ...*types.Pair) (err error)

CompleteSegmentWithContext adds context support for CompleteSegment.

func (*Storage) Delete

func (s *Storage) Delete(path string, pairs ...*types.Pair) (err error)

Delete implements Storager.Delete

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) InitSegment added in v0.9.0

func (s *Storage) InitSegment(path string, pairs ...*types.Pair) (seg segment.Segment, err error)

InitSegment implements Storager.InitSegment

func (*Storage) InitSegmentWithContext added in v0.9.0

func (s *Storage) InitSegmentWithContext(ctx context.Context, path string, pairs ...*types.Pair) (seg segment.Segment, err error)

InitSegmentWithContext adds context support for InitSegment.

func (*Storage) List added in v0.6.0

func (s *Storage) List(path string, pairs ...*types.Pair) (err error)

List implements Storager.List

func (*Storage) ListSegments added in v0.9.0

func (s *Storage) ListSegments(path string, pairs ...*types.Pair) (err error)

ListSegments implements Storager.ListSegments

func (*Storage) ListSegmentsWithContext added in v0.9.0

func (s *Storage) ListSegmentsWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)

ListSegmentsWithContext adds context support for ListSegments.

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) Metadata

func (s *Storage) Metadata(pairs ...*types.Pair) (m metadata.StorageMeta, err error)

Metadata implements Storager.Metadata

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) Read

func (s *Storage) Read(path string, pairs ...*types.Pair) (r io.ReadCloser, err error)

Read implements Storager.Read

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) Stat

func (s *Storage) Stat(path string, pairs ...*types.Pair) (o *types.Object, err error)

Stat implements Storager.Stat

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.

func (*Storage) String

func (s *Storage) String() string

String implements Storager.String

func (*Storage) Write

func (s *Storage) Write(path string, r io.Reader, pairs ...*types.Pair) (err error)

Write implements Storager.Write

func (*Storage) WriteSegment added in v0.9.0

func (s *Storage) WriteSegment(seg segment.Segment, r io.Reader, pairs ...*types.Pair) (err error)

WriteSegment implements Storager.WriteSegment

func (*Storage) WriteSegmentWithContext added in v0.9.0

func (s *Storage) WriteSegmentWithContext(ctx context.Context, seg segment.Segment, r io.Reader, pairs ...*types.Pair) (err error)

WriteSegmentWithContext adds context support for WriteSegment.

func (*Storage) WriteWithContext added in v0.6.0

func (s *Storage) WriteWithContext(ctx context.Context, path string, r io.Reader, pairs ...*types.Pair) (err error)

WriteWithContext adds context support for Write.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL