Documentation
¶
Overview ¶
Package blobstorage provides an in-memory mock implementation of Azure Blob Storage.
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 Azure Blob Storage.
func (*Mock) CopyObject ¶
CopyObject copies a blob from one location to another.
func (*Mock) CreateBucket ¶
CreateBucket creates a new blob container.
func (*Mock) DeleteBucket ¶
DeleteBucket deletes a blob container.
func (*Mock) DeleteObject ¶
DeleteObject deletes a blob from a container.
func (*Mock) HeadObject ¶
HeadObject returns metadata for a blob without its data.
func (*Mock) ListBuckets ¶
ListBuckets lists all blob containers.
func (*Mock) ListObjects ¶
func (m *Mock) ListObjects(_ context.Context, bucket string, opts driver.ListOptions) (*driver.ListResult, error)
ListObjects lists blobs in a container with optional prefix/delimiter filtering.
Click to show internal directories.
Click to hide internal directories.