osshim

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Os

type Os interface {
	Chdir(arg1 string) error
	Chmod(arg1 string, arg2 fs.FileMode) error
	Chown(arg1 string, arg2 int, arg3 int) error
	Chtimes(arg1 string, arg2 time.Time, arg3 time.Time) error
	Clearenv()
	Create(arg1 string) (*os.File, error)
	CreateTemp(arg1 string, arg2 string) (*os.File, error)
	DirFS(arg1 string) fs.FS
	Environ() []string
	Executable() (string, error)
	Exit(arg1 int)
	Expand(arg1 string, arg2 func(string) string) string
	ExpandEnv(arg1 string) string
	FindProcess(arg1 int) (*os.Process, error)
	Getegid() int
	Getenv(arg1 string) string
	Geteuid() int
	Getgid() int
	Getgroups() ([]int, error)
	Getpagesize() int
	Getpid() int
	Getppid() int
	Getuid() int
	Getwd() (string, error)
	Hostname() (string, error)
	IsExist(arg1 error) bool
	IsNotExist(arg1 error) bool
	IsPathSeparator(arg1 uint8) bool
	IsPermission(arg1 error) bool
	IsTimeout(arg1 error) bool
	Lchown(arg1 string, arg2 int, arg3 int) error
	Link(arg1 string, arg2 string) error
	LookupEnv(arg1 string) (string, bool)
	Lstat(arg1 string) (fs.FileInfo, error)
	Mkdir(arg1 string, arg2 fs.FileMode) error
	MkdirAll(arg1 string, arg2 fs.FileMode) error
	MkdirTemp(arg1 string, arg2 string) (string, error)
	NewFile(arg1 uintptr, arg2 string) *os.File
	NewSyscallError(arg1 string, arg2 error) error
	Open(arg1 string) (*os.File, error)
	OpenFile(arg1 string, arg2 int, arg3 fs.FileMode) (*os.File, error)
	Pipe() (*os.File, *os.File, error)
	ReadDir(arg1 string) ([]fs.DirEntry, error)
	ReadFile(arg1 string) ([]byte, error)
	Readlink(arg1 string) (string, error)
	Remove(arg1 string) error
	RemoveAll(arg1 string) error
	Rename(arg1 string, arg2 string) error
	SameFile(arg1 fs.FileInfo, arg2 fs.FileInfo) bool
	Setenv(arg1 string, arg2 string) error
	StartProcess(arg1 string, arg2 []string, arg3 *os.ProcAttr) (*os.Process, error)
	Stat(arg1 string) (fs.FileInfo, error)
	Symlink(arg1 string, arg2 string) error
	TempDir() string
	Truncate(arg1 string, arg2 int64) error
	Unsetenv(arg1 string) error
	UserCacheDir() (string, error)
	UserConfigDir() (string, error)
	UserHomeDir() (string, error)
	WriteFile(arg1 string, arg2 []byte, arg3 fs.FileMode) error
}

Os is a generated interface representing the exported functions in the os package.

type OsShim

type OsShim struct{}

func (*OsShim) Chdir

func (p *OsShim) Chdir(arg1 string) error

func (*OsShim) Chmod

func (p *OsShim) Chmod(arg1 string, arg2 fs.FileMode) error

func (*OsShim) Chown

func (p *OsShim) Chown(arg1 string, arg2 int, arg3 int) error

func (*OsShim) Chtimes

func (p *OsShim) Chtimes(arg1 string, arg2 time.Time, arg3 time.Time) error

func (*OsShim) Clearenv

func (p *OsShim) Clearenv()

func (*OsShim) Create

func (p *OsShim) Create(arg1 string) (*os.File, error)

func (*OsShim) CreateTemp

func (p *OsShim) CreateTemp(arg1 string, arg2 string) (*os.File, error)

func (*OsShim) DirFS

func (p *OsShim) DirFS(arg1 string) fs.FS

func (*OsShim) Environ

func (p *OsShim) Environ() []string

func (*OsShim) Executable

func (p *OsShim) Executable() (string, error)

func (*OsShim) Exit

func (p *OsShim) Exit(arg1 int)

func (*OsShim) Expand

func (p *OsShim) Expand(arg1 string, arg2 func(string) string) string

func (*OsShim) ExpandEnv

func (p *OsShim) ExpandEnv(arg1 string) string

func (*OsShim) FindProcess

func (p *OsShim) FindProcess(arg1 int) (*os.Process, error)

func (*OsShim) Getegid

func (p *OsShim) Getegid() int

func (*OsShim) Getenv

func (p *OsShim) Getenv(arg1 string) string

func (*OsShim) Geteuid

func (p *OsShim) Geteuid() int

func (*OsShim) Getgid

func (p *OsShim) Getgid() int

func (*OsShim) Getgroups

func (p *OsShim) Getgroups() ([]int, error)

func (*OsShim) Getpagesize

func (p *OsShim) Getpagesize() int

func (*OsShim) Getpid

func (p *OsShim) Getpid() int

func (*OsShim) Getppid

func (p *OsShim) Getppid() int

func (*OsShim) Getuid

func (p *OsShim) Getuid() int

func (*OsShim) Getwd

func (p *OsShim) Getwd() (string, error)

func (*OsShim) Hostname

func (p *OsShim) Hostname() (string, error)

func (*OsShim) IsExist

func (p *OsShim) IsExist(arg1 error) bool

func (*OsShim) IsNotExist

func (p *OsShim) IsNotExist(arg1 error) bool

func (*OsShim) IsPathSeparator

func (p *OsShim) IsPathSeparator(arg1 uint8) bool

func (*OsShim) IsPermission

func (p *OsShim) IsPermission(arg1 error) bool

func (*OsShim) IsTimeout

func (p *OsShim) IsTimeout(arg1 error) bool

func (*OsShim) Lchown

func (p *OsShim) Lchown(arg1 string, arg2 int, arg3 int) error
func (p *OsShim) Link(arg1 string, arg2 string) error

func (*OsShim) LookupEnv

func (p *OsShim) LookupEnv(arg1 string) (string, bool)

func (*OsShim) Lstat

func (p *OsShim) Lstat(arg1 string) (fs.FileInfo, error)

func (*OsShim) Mkdir

func (p *OsShim) Mkdir(arg1 string, arg2 fs.FileMode) error

func (*OsShim) MkdirAll

func (p *OsShim) MkdirAll(arg1 string, arg2 fs.FileMode) error

func (*OsShim) MkdirTemp

func (p *OsShim) MkdirTemp(arg1 string, arg2 string) (string, error)

func (*OsShim) NewFile

func (p *OsShim) NewFile(arg1 uintptr, arg2 string) *os.File

func (*OsShim) NewSyscallError

func (p *OsShim) NewSyscallError(arg1 string, arg2 error) error

func (*OsShim) Open

func (p *OsShim) Open(arg1 string) (*os.File, error)

func (*OsShim) OpenFile

func (p *OsShim) OpenFile(arg1 string, arg2 int, arg3 fs.FileMode) (*os.File, error)

func (*OsShim) Pipe

func (p *OsShim) Pipe() (*os.File, *os.File, error)

func (*OsShim) ReadDir

func (p *OsShim) ReadDir(arg1 string) ([]fs.DirEntry, error)

func (*OsShim) ReadFile

func (p *OsShim) ReadFile(arg1 string) ([]byte, error)
func (p *OsShim) Readlink(arg1 string) (string, error)

func (*OsShim) Remove

func (p *OsShim) Remove(arg1 string) error

func (*OsShim) RemoveAll

func (p *OsShim) RemoveAll(arg1 string) error

func (*OsShim) Rename

func (p *OsShim) Rename(arg1 string, arg2 string) error

func (*OsShim) SameFile

func (p *OsShim) SameFile(arg1 fs.FileInfo, arg2 fs.FileInfo) bool

func (*OsShim) Setenv

func (p *OsShim) Setenv(arg1 string, arg2 string) error

func (*OsShim) StartProcess

func (p *OsShim) StartProcess(arg1 string, arg2 []string, arg3 *os.ProcAttr) (*os.Process, error)

func (*OsShim) Stat

func (p *OsShim) Stat(arg1 string) (fs.FileInfo, error)
func (p *OsShim) Symlink(arg1 string, arg2 string) error

func (*OsShim) TempDir

func (p *OsShim) TempDir() string

func (*OsShim) Truncate

func (p *OsShim) Truncate(arg1 string, arg2 int64) error

func (*OsShim) Unsetenv

func (p *OsShim) Unsetenv(arg1 string) error

func (*OsShim) UserCacheDir

func (p *OsShim) UserCacheDir() (string, error)

func (*OsShim) UserConfigDir

func (p *OsShim) UserConfigDir() (string, error)

func (*OsShim) UserHomeDir

func (p *OsShim) UserHomeDir() (string, error)

func (*OsShim) WriteFile

func (p *OsShim) WriteFile(arg1 string, arg2 []byte, arg3 fs.FileMode) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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