Versions in this module Expand all Collapse all v1 v1.7.0 Oct 31, 2022 v1.6.9 Oct 23, 2022 Changes in this version + type CalledDetail struct + Arguments []interface{} + Name string + type FakeOS struct + CopyFileFn func(string, string, os.FileMode) error + FollowSymlinkInScopeFn func(string, string) (string, error) + HostnameFn func() (string, error) + LookupMountFn func(path string) (containerdmount.Info, error) + MkdirAllFn func(string, os.FileMode) error + MountFn func(source string, target string, fstype string, flags uintptr, data string) error + RemoveAllFn func(string) error + ResolveSymbolicLinkFn func(string) (string, error) + StatFn func(string) (os.FileInfo, error) + UnmountFn func(target string) error + WriteFileFn func(string, []byte, os.FileMode) error + func NewFakeOS() *FakeOS + func (f *FakeOS) ClearErrors() + func (f *FakeOS) CopyFile(src, dest string, perm os.FileMode) error + func (f *FakeOS) FollowSymlinkInScope(path, scope string) (string, error) + func (f *FakeOS) GetCalls() []CalledDetail + func (f *FakeOS) Hostname() (string, error) + func (f *FakeOS) InjectError(fn string, err error) + func (f *FakeOS) InjectErrors(errs map[string]error) + func (f *FakeOS) LookupMount(path string) (containerdmount.Info, error) + func (f *FakeOS) MkdirAll(path string, perm os.FileMode) error + func (f *FakeOS) Mount(source string, target string, fstype string, flags uintptr, data string) error + func (f *FakeOS) RemoveAll(path string) error + func (f *FakeOS) ResolveSymbolicLink(path string) (string, error) + func (f *FakeOS) Stat(name string) (os.FileInfo, error) + func (f *FakeOS) Unmount(target string) error + func (f *FakeOS) WriteFile(filename string, data []byte, perm os.FileMode) error