Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NewObjectReader ¶
func (c *Client) NewObjectReader(ctx context.Context, bucket model.CSBucket, object model.CSObjectName) (io.ReadCloser, error)
NewObjectReader implements interfaces.CloudStorage.
func (*Client) NewObjectWriter ¶
func (c *Client) NewObjectWriter(ctx context.Context, bucket model.CSBucket, object model.CSObjectName) io.WriteCloser
NewObjectWriter implements interfaces.CloudStorage.
type Mock ¶
type Mock struct { NewObjectWriterFn func(ctx context.Context, bucket model.CSBucket, object model.CSObjectName) io.WriteCloser Results []*MockResult }
func (*Mock) NewObjectReader ¶
func (x *Mock) NewObjectReader(ctx context.Context, bucket model.CSBucket, object model.CSObjectName) (io.ReadCloser, error)
func (*Mock) NewObjectWriter ¶
func (x *Mock) NewObjectWriter(ctx context.Context, bucket model.CSBucket, object model.CSObjectName) io.WriteCloser
type MockResult ¶
type MockResult struct { Body Writer Bucket model.CSBucket Object model.CSObjectName }
Click to show internal directories.
Click to hide internal directories.