mocks

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 3 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 testing.TB) *Storage

NewStorage creates a new instance of Storage. It also registers 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) 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

Jump to

Keyboard shortcuts

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