Documentation
¶
Index ¶
- type Mock
- func (m *Mock) CopyObject(_ context.Context, dstBucket, dstKey string, src driver.CopySource) error
- func (m *Mock) CreateBucket(_ context.Context, name string) error
- func (m *Mock) DeleteBucket(_ context.Context, name string) error
- func (m *Mock) DeleteObject(_ context.Context, bucket, key string) error
- func (m *Mock) GetObject(_ context.Context, bucket, key string) (*driver.Object, error)
- func (m *Mock) HeadObject(_ context.Context, bucket, key string) (*driver.ObjectInfo, error)
- func (m *Mock) ListBuckets(_ context.Context) ([]driver.BucketInfo, error)
- func (m *Mock) ListObjects(_ context.Context, bucket string, opts driver.ListOptions) (*driver.ListResult, error)
- func (m *Mock) PutObject(_ context.Context, bucket, key string, data []byte, contentType string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock is an in-memory mock implementation of the AWS S3 service.
func (*Mock) CopyObject ¶
func (*Mock) DeleteObject ¶
func (*Mock) HeadObject ¶
func (*Mock) ListBuckets ¶
func (*Mock) ListObjects ¶
func (m *Mock) ListObjects(_ context.Context, bucket string, opts driver.ListOptions) (*driver.ListResult, error)
Click to show internal directories.
Click to hide internal directories.