Documentation
¶
Index ¶
- func NewFakeClient(ctx context.Context, opts storage.Options) (storage.Storage, error)
- type FakeStorageClient
- func (c *FakeStorageClient) DeleteObject(ctx context.Context, objectName string) error
- func (c *FakeStorageClient) GetObject(ctx context.Context, objectName string) (io.ReadCloser, error)
- func (c *FakeStorageClient) GetPrefix() string
- func (c *FakeStorageClient) ListObjects(ctx context.Context, prefix string) ([]string, error)
- func (c *FakeStorageClient) PutObject(ctx context.Context, name string, data io.Reader, size int64) error
- func (c *FakeStorageClient) SetPrefix(prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeStorageClient ¶
type FakeStorageClient struct{}
func (*FakeStorageClient) DeleteObject ¶
func (c *FakeStorageClient) DeleteObject(ctx context.Context, objectName string) error
func (*FakeStorageClient) GetObject ¶
func (c *FakeStorageClient) GetObject(ctx context.Context, objectName string) (io.ReadCloser, error)
func (*FakeStorageClient) GetPrefix ¶
func (c *FakeStorageClient) GetPrefix() string
func (*FakeStorageClient) ListObjects ¶
func (*FakeStorageClient) SetPrefix ¶
func (c *FakeStorageClient) SetPrefix(prefix string)
Click to show internal directories.
Click to hide internal directories.