Documentation
¶
Index ¶
- type Client
- func (x *Client) Attrs(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
- func (x *Client) List(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
- func (x *Client) Open(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
- type Mock
- func (x *Mock) Attrs(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
- func (x *Mock) List(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
- func (x *Mock) Open(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
- type MockObjectIterator
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) Attrs ¶
func (x *Client) Attrs(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
func (*Client) List ¶
func (x *Client) List(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
func (*Client) Open ¶
func (x *Client) Open(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
type Mock ¶
type Mock struct {
MockOpen func(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
MockAttrs func(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
MockList func(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
}
func (*Mock) Attrs ¶
func (x *Mock) Attrs(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
func (*Mock) List ¶
func (x *Mock) List(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
func (*Mock) Open ¶
func (x *Mock) Open(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
type MockObjectIterator ¶
type MockObjectIterator struct {
MockNext func() (*storage.ObjectAttrs, error)
Attrs []*storage.ObjectAttrs
}
func (*MockObjectIterator) Next ¶
func (x *MockObjectIterator) Next() (*storage.ObjectAttrs, error)
Click to show internal directories.
Click to hide internal directories.