Documentation ¶
Index ¶
- type BucketHandleWrapper
- type Client
- func (_m *Client) Exist(ctx context.Context, URI archiver.URI, fileName string) (bool, error)
- func (_m *Client) Get(ctx context.Context, URI archiver.URI, file string) ([]byte, error)
- func (_m *Client) Query(ctx context.Context, URI archiver.URI, fileNamePrefix string) ([]string, error)
- func (_m *Client) QueryWithFilters(ctx context.Context, URI archiver.URI, fileNamePrefix string, pageSize int, ...) ([]string, bool, int, error)
- func (_m *Client) Upload(ctx context.Context, URI archiver.URI, fileName string, file []byte) error
- type GcloudStorageClient
- type ObjectHandleWrapper
- type ObjectIteratorWrapper
- type ReaderWrapper
- type WriterWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketHandleWrapper ¶
BucketHandleWrapper is an autogenerated mock type for the BucketHandleWrapper type
func (*BucketHandleWrapper) Attrs ¶
func (_m *BucketHandleWrapper) Attrs(ctx context.Context) (*storage.BucketAttrs, error)
Attrs provides a mock function with given fields: ctx
func (*BucketHandleWrapper) Object ¶
func (_m *BucketHandleWrapper) Object(name string) connector.ObjectHandleWrapper
Object provides a mock function with given fields: name
func (*BucketHandleWrapper) Objects ¶
func (_m *BucketHandleWrapper) Objects(ctx context.Context, q *storage.Query) connector.ObjectIteratorWrapper
Objects provides a mock function with given fields: ctx, q
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) Query ¶
func (_m *Client) Query(ctx context.Context, URI archiver.URI, fileNamePrefix string) ([]string, error)
Query provides a mock function with given fields: ctx, URI, fileNamePrefix
func (*Client) QueryWithFilters ¶
func (_m *Client) QueryWithFilters(ctx context.Context, URI archiver.URI, fileNamePrefix string, pageSize int, offset int, filters []connector.Precondition) ([]string, bool, int, error)
QueryWithFilters provides a mock function with given fields: ctx, URI, fileNamePrefix, pageSize, offset, filters
type GcloudStorageClient ¶
GcloudStorageClient is an autogenerated mock type for the GcloudStorageClient type
func (*GcloudStorageClient) Bucket ¶
func (_m *GcloudStorageClient) Bucket(URI string) connector.BucketHandleWrapper
Bucket provides a mock function with given fields: URI
type ObjectHandleWrapper ¶
ObjectHandleWrapper is an autogenerated mock type for the ObjectHandleWrapper type
func (*ObjectHandleWrapper) Attrs ¶
func (_m *ObjectHandleWrapper) Attrs(ctx context.Context) (*storage.ObjectAttrs, error)
Attrs provides a mock function with given fields: ctx
func (*ObjectHandleWrapper) NewReader ¶
func (_m *ObjectHandleWrapper) NewReader(ctx context.Context) (connector.ReaderWrapper, error)
NewReader provides a mock function with given fields: ctx
func (*ObjectHandleWrapper) NewWriter ¶
func (_m *ObjectHandleWrapper) NewWriter(ctx context.Context) connector.WriterWrapper
NewWriter provides a mock function with given fields: ctx
type ObjectIteratorWrapper ¶
ObjectIteratorWrapper is an autogenerated mock type for the ObjectIteratorWrapper type
func (*ObjectIteratorWrapper) Next ¶
func (_m *ObjectIteratorWrapper) Next() (*storage.ObjectAttrs, error)
Next provides a mock function with given fields:
type ReaderWrapper ¶
ReaderWrapper is an autogenerated mock type for the ReaderWrapper type
func (*ReaderWrapper) Close ¶
func (_m *ReaderWrapper) Close() error
Close provides a mock function with given fields:
type WriterWrapper ¶
WriterWrapper is an autogenerated mock type for the WriterWrapper type
func (*WriterWrapper) Close ¶
func (_m *WriterWrapper) Close() error
Close provides a mock function with given fields:
func (*WriterWrapper) CloseWithError ¶
func (_m *WriterWrapper) CloseWithError(err error) error
CloseWithError provides a mock function with given fields: err