mocks

package
v0.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketHandleWrapper

type BucketHandleWrapper struct {
	mock.Mock
}

BucketHandleWrapper is an autogenerated mock type for the BucketHandleWrapper type

func (*BucketHandleWrapper) Attrs

Attrs provides a mock function with given fields: ctx

func (*BucketHandleWrapper) Object

Object provides a mock function with given fields: name

func (*BucketHandleWrapper) Objects

Objects provides a mock function with given fields: ctx, q

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Exist

func (_m *Client) Exist(ctx context.Context, URI archiver.URI, fileName string) (bool, error)

Exist provides a mock function with given fields: ctx, URI, fileName

func (*Client) Get

func (_m *Client) Get(ctx context.Context, URI archiver.URI, file string) ([]byte, error)

Get provides a mock function with given fields: ctx, URI, file

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

func (*Client) Upload

func (_m *Client) Upload(ctx context.Context, URI archiver.URI, fileName string, file []byte) error

Upload provides a mock function with given fields: ctx, URI, fileName, file

type GcloudStorageClient

type GcloudStorageClient struct {
	mock.Mock
}

GcloudStorageClient is an autogenerated mock type for the GcloudStorageClient type

func (*GcloudStorageClient) Bucket

Bucket provides a mock function with given fields: URI

type ObjectHandleWrapper

type ObjectHandleWrapper struct {
	mock.Mock
}

ObjectHandleWrapper is an autogenerated mock type for the ObjectHandleWrapper type

func (*ObjectHandleWrapper) Attrs

Attrs provides a mock function with given fields: ctx

func (*ObjectHandleWrapper) NewReader

NewReader provides a mock function with given fields: ctx

func (*ObjectHandleWrapper) NewWriter

NewWriter provides a mock function with given fields: ctx

type ObjectIteratorWrapper

type ObjectIteratorWrapper struct {
	mock.Mock
}

ObjectIteratorWrapper is an autogenerated mock type for the ObjectIteratorWrapper type

func (*ObjectIteratorWrapper) Next

Next provides a mock function with given fields:

type ReaderWrapper

type ReaderWrapper struct {
	mock.Mock
}

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:

func (*ReaderWrapper) Read

func (_m *ReaderWrapper) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type WriterWrapper

type WriterWrapper struct {
	mock.Mock
}

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

func (*WriterWrapper) Write

func (_m *WriterWrapper) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL