mocks

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage added in v2.3.0

func NewStorage(t mockConstructorTestingTNewStorage) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Storage) Backend

func (_m *Storage) Backend() string

Backend provides a mock function with given fields:

func (_m *Storage) CreateSymlink(ctx context.Context, oldname string, newname string) error

CreateSymlink provides a mock function with given fields: ctx, oldname, newname

func (*Storage) Delete

func (_m *Storage) Delete(ctx context.Context, path string) error

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

func (*Storage) Init

func (_m *Storage) Init(ctx context.Context, name string) error

Init provides a mock function with given fields: ctx, name

func (*Storage) ListDir added in v2.8.0

func (_m *Storage) ListDir(ctx context.Context, path string) ([]*providerv1beta1.ResourceInfo, error)

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

func (*Storage) MakeDirIfNotExist

func (_m *Storage) MakeDirIfNotExist(ctx context.Context, name string) error

MakeDirIfNotExist provides a mock function with given fields: ctx, name

func (*Storage) ReadDir

func (_m *Storage) ReadDir(ctx context.Context, path string) ([]string, error)

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

func (_m *Storage) ResolveSymlink(ctx context.Context, name string) (string, error)

ResolveSymlink provides a mock function with given fields: ctx, name

func (*Storage) SimpleDownload

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

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

func (*Storage) SimpleUpload

func (_m *Storage) SimpleUpload(ctx context.Context, uploadpath string, content []byte) error

SimpleUpload provides a mock function with given fields: ctx, uploadpath, content

func (*Storage) Stat added in v2.8.0

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

func (*Storage) Upload added in v2.8.0

func (_m *Storage) Upload(ctx context.Context, req metadata.UploadRequest) error

Upload provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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