mocks

package
v0.2.31 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 FS

type FS struct {
	mock.Mock
}

FS is an autogenerated mock type for the FS type

func (*FS) CheckExistsOrWrite

func (_m *FS) CheckExistsOrWrite(filename string, data []byte) (bool, error)

CheckExistsOrWrite provides a mock function with given fields: filename, data

func (*FS) Chroot

func (_m *FS) Chroot(path string) (billy.Filesystem, error)

Chroot provides a mock function with given fields: path

func (*FS) Create

func (_m *FS) Create(filename string) (billy.File, error)

Create provides a mock function with given fields: filename

func (*FS) Exists

func (_m *FS) Exists(path string) (bool, error)

Exists provides a mock function with given fields: path

func (*FS) ExistsOrDie

func (_m *FS) ExistsOrDie(path string) bool

ExistsOrDie provides a mock function with given fields: path

func (*FS) Join

func (_m *FS) Join(elem ...string) string

Join provides a mock function with given fields: elem

func (*FS) Lstat

func (_m *FS) Lstat(filename string) (iofs.FileInfo, error)

Lstat provides a mock function with given fields: filename

func (*FS) MkdirAll

func (_m *FS) MkdirAll(filename string, perm iofs.FileMode) error

MkdirAll provides a mock function with given fields: filename, perm

func (*FS) Open

func (_m *FS) Open(filename string) (billy.File, error)

Open provides a mock function with given fields: filename

func (*FS) OpenFile

func (_m *FS) OpenFile(filename string, flag int, perm iofs.FileMode) (billy.File, error)

OpenFile provides a mock function with given fields: filename, flag, perm

func (*FS) ReadDir

func (_m *FS) ReadDir(path string) ([]iofs.FileInfo, error)

ReadDir provides a mock function with given fields: path

func (*FS) ReadFile

func (_m *FS) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

func (*FS) ReadJson added in v0.2.2

func (_m *FS) ReadJson(filename string, o interface{}) error

ReadJson provides a mock function with given fields: filename, o

func (*FS) ReadYamls

func (_m *FS) ReadYamls(filename string, o ...interface{}) error

ReadYamls provides a mock function with given fields: filename, o

func (_m *FS) Readlink(link string) (string, error)

Readlink provides a mock function with given fields: link

func (*FS) Remove

func (_m *FS) Remove(filename string) error

Remove provides a mock function with given fields: filename

func (*FS) Rename

func (_m *FS) Rename(oldpath string, newpath string) error

Rename provides a mock function with given fields: oldpath, newpath

func (*FS) Root

func (_m *FS) Root() string

Root provides a mock function with given fields:

func (*FS) Stat

func (_m *FS) Stat(filename string) (iofs.FileInfo, error)

Stat provides a mock function with given fields: filename

func (_m *FS) Symlink(target string, link string) error

Symlink provides a mock function with given fields: target, link

func (*FS) TempFile

func (_m *FS) TempFile(dir string, prefix string) (billy.File, error)

TempFile provides a mock function with given fields: dir, prefix

func (*FS) WriteJson added in v0.2.2

func (_m *FS) WriteJson(filename string, o interface{}) error

WriteJson provides a mock function with given fields: filename, o

func (*FS) WriteYamls

func (_m *FS) WriteYamls(filename string, o ...interface{}) error

WriteYamls provides a mock function with given fields: filename, o

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func (*File) Close

func (_m *File) Close() error

Close provides a mock function with given fields:

func (*File) Lock

func (_m *File) Lock() error

Lock provides a mock function with given fields:

func (*File) Name

func (_m *File) Name() string

Name provides a mock function with given fields:

func (*File) Read

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

Read provides a mock function with given fields: p

func (*File) ReadAt

func (_m *File) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*File) Seek

func (_m *File) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*File) Truncate

func (_m *File) Truncate(size int64) error

Truncate provides a mock function with given fields: size

func (*File) Unlock

func (_m *File) Unlock() error

Unlock provides a mock function with given fields:

func (*File) Write

func (_m *File) 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