mocks

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSClient

type GCSClient struct {
	mock.Mock
}

GCSClient is an autogenerated mock type for the GCSClient type

func NewGCSClient

func NewGCSClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GCSClient

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) Bucket

func (_m *GCSClient) Bucket() string

Bucket provides a mock function with given fields:

func (*GCSClient) DeleteFile

func (_m *GCSClient) DeleteFile(ctx context.Context, path string) error

DeleteFile provides a mock function with given fields: ctx, path

func (*GCSClient) DoesFileExist

func (_m *GCSClient) DoesFileExist(ctx context.Context, path string) (bool, error)

DoesFileExist provides a mock function with given fields: ctx, path

func (*GCSClient) FileReader

func (_m *GCSClient) FileReader(ctx context.Context, path string) (io.ReadCloser, error)

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

func (_m *GCSClient) GetFileContents(ctx context.Context, path string) ([]byte, error)

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

Jump to

Keyboard shortcuts

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