mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 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 FileSystemOps added in v0.5.0

type FileSystemOps struct {
	mock.Mock
}

FileSystemOps is an autogenerated mock type for the FileSystemOps type

func (*FileSystemOps) MkdirAll added in v0.5.0

func (_m *FileSystemOps) MkdirAll(path string, perm fs.FileMode) error

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

func (*FileSystemOps) ReadFile added in v0.5.0

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

ReadFile provides a mock function with given fields: filename

func (*FileSystemOps) Remove added in v0.5.0

func (_m *FileSystemOps) Remove(name string) error

Remove provides a mock function with given fields: name

func (*FileSystemOps) Stat added in v0.5.0

func (_m *FileSystemOps) Stat(name string) (fs.FileInfo, error)

Stat provides a mock function with given fields: name

func (*FileSystemOps) WriteFile added in v0.5.0

func (_m *FileSystemOps) WriteFile(filename string, data []byte, perm fs.FileMode) error

WriteFile provides a mock function with given fields: filename, data, perm

type StateCache

type StateCache struct {
	mock.Mock
}

StateCache is an autogenerated mock type for the StateCache type

func (*StateCache) Delete

func (_m *StateCache) Delete(ref cache.StateRef) error

Delete provides a mock function with given fields: ref

func (*StateCache) GetStateRef

func (_m *StateCache) GetStateRef(network string, cid string, ifname string) cache.StateRef

GetStateRef provides a mock function with given fields: network, cid, ifname

func (*StateCache) Load

func (_m *StateCache) Load(ref cache.StateRef, state interface{}) error

Load provides a mock function with given fields: ref, state

func (*StateCache) Save

func (_m *StateCache) Save(ref cache.StateRef, state interface{}) error

Save provides a mock function with given fields: ref, state

Jump to

Keyboard shortcuts

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