Documentation ¶
Index ¶
- type GCSClient
- func (_m *GCSClient) AllFilesInDirectory(ctx context.Context, prefix string, callback func(*storage.ObjectAttrs) error) error
- func (_m *GCSClient) Bucket() string
- func (_m *GCSClient) DeleteFile(ctx context.Context, path string) error
- func (_m *GCSClient) DoesFileExist(ctx context.Context, path string) (bool, error)
- func (_m *GCSClient) FileReader(ctx context.Context, path string) (io.ReadCloser, error)
- func (_m *GCSClient) FileWriter(ctx context.Context, path string, opts gcs.FileWriteOptions) io.WriteCloser
- func (_m *GCSClient) GetFileContents(ctx context.Context, path string) ([]byte, error)
- func (_m *GCSClient) GetFileObjectAttrs(ctx context.Context, path string) (*storage.ObjectAttrs, error)
- func (_m *GCSClient) SetFileContents(ctx context.Context, path string, opts gcs.FileWriteOptions, contents []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCSClient ¶
GCSClient is an autogenerated mock type for the GCSClient type
func NewGCSClient ¶
NewGCSClient creates a new instance of GCSClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GCSClient) AllFilesInDirectory ¶
func (_m *GCSClient) AllFilesInDirectory(ctx context.Context, prefix string, callback func(*storage.ObjectAttrs) error) error
AllFilesInDirectory provides a mock function with given fields: ctx, prefix, callback
func (*GCSClient) DeleteFile ¶
DeleteFile provides a mock function with given fields: ctx, path
func (*GCSClient) DoesFileExist ¶
DoesFileExist provides a mock function with given fields: ctx, path
func (*GCSClient) FileReader ¶
FileReader provides a mock function with given fields: ctx, path
func (*GCSClient) FileWriter ¶
func (_m *GCSClient) FileWriter(ctx context.Context, path string, opts gcs.FileWriteOptions) io.WriteCloser
FileWriter provides a mock function with given fields: ctx, path, opts
func (*GCSClient) GetFileContents ¶
GetFileContents provides a mock function with given fields: ctx, path
func (*GCSClient) GetFileObjectAttrs ¶
func (_m *GCSClient) GetFileObjectAttrs(ctx context.Context, path string) (*storage.ObjectAttrs, error)
GetFileObjectAttrs provides a mock function with given fields: ctx, path
func (*GCSClient) SetFileContents ¶
func (_m *GCSClient) SetFileContents(ctx context.Context, path string, opts gcs.FileWriteOptions, contents []byte) error
SetFileContents provides a mock function with given fields: ctx, path, opts, contents