Documentation
¶
Overview ¶
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/osshim os BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/osshim os BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
Index ¶
- type DirEntry
- type DirEntryShim
- type File
- type FileShim
- func (f *FileShim) Chdir() error
- func (f *FileShim) Close() error
- func (f *FileShim) Fd() uintptr
- func (f *FileShim) Name() string
- func (f *FileShim) Read(b []byte) (n int, err error)
- func (f *FileShim) ReadAt(b []byte, off int64) (n int, err error)
- func (f *FileShim) Seek(offset int64, whence int) (ret int64, err error)
- func (f *FileShim) Stat() (os.FileInfo, error)
- func (f *FileShim) Write(b []byte) (n int, err error)
- func (f *FileShim) WriteAt(b []byte, off int64) (n int, err error)
- func (f *FileShim) WriteString(s string) (n int, err error)
- type Os
- type OsShim
- func (sh *OsShim) Chdir(dir string) error
- func (sh *OsShim) Chmod(name string, mode os.FileMode) error
- func (sh *OsShim) Chown(name string, uid int, gid int) error
- func (sh *OsShim) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (sh *OsShim) Clearenv()
- func (sh *OsShim) Create(name string) (File, error)
- func (sh *OsShim) Environ() []string
- func (sh *OsShim) Exit(code int)
- func (sh *OsShim) Expand(s string, mapping func(string) string) string
- func (sh *OsShim) ExpandEnv(s string) string
- func (sh *OsShim) FindProcess(pid int) (*os.Process, error)
- func (sh *OsShim) Getegid() int
- func (sh *OsShim) Getenv(key string) string
- func (sh *OsShim) Geteuid() int
- func (sh *OsShim) Getgid() int
- func (sh *OsShim) Getgroups() ([]int, error)
- func (sh *OsShim) Getpagesize() int
- func (sh *OsShim) Getpid() int
- func (sh *OsShim) Getppid() int
- func (sh *OsShim) Getuid() int
- func (sh *OsShim) Getwd() (dir string, err error)
- func (sh *OsShim) Hostname() (name string, err error)
- func (sh *OsShim) IsExist(err error) bool
- func (sh *OsShim) IsNotExist(err error) bool
- func (sh *OsShim) IsPathSeparator(c uint8) bool
- func (sh *OsShim) IsPermission(err error) bool
- func (sh *OsShim) Lchown(name string, uid int, gid int) error
- func (sh *OsShim) Link(oldname string, newname string) error
- func (sh *OsShim) LookupEnv(key string) (string, bool)
- func (sh *OsShim) Lstat(name string) (os.FileInfo, error)
- func (sh *OsShim) Mkdir(name string, perm os.FileMode) error
- func (sh *OsShim) MkdirAll(path string, perm os.FileMode) error
- func (sh *OsShim) NewFile(fd uintptr, name string) File
- func (sh *OsShim) NewSyscallError(syscall string, err error) error
- func (sh *OsShim) Open(name string) (File, error)
- func (sh *OsShim) OpenFile(name string, flag int, perm os.FileMode) (File, error)
- func (sh *OsShim) Pipe() (File, File, error)
- func (sh *OsShim) ReadDir(name string) ([]os.DirEntry, error)
- func (sh *OsShim) ReadFile(name string) ([]byte, error)
- func (sh *OsShim) Readlink(name string) (string, error)
- func (sh *OsShim) Remove(name string) error
- func (sh *OsShim) RemoveAll(path string) error
- func (sh *OsShim) Rename(oldpath string, newpath string) error
- func (sh *OsShim) SameFile(fi1 os.FileInfo, fi2 os.FileInfo) bool
- func (sh *OsShim) Setenv(key string, value string) error
- func (sh *OsShim) StartProcess(name string, argv []string, attr *os.ProcAttr) (*os.Process, error)
- func (sh *OsShim) Stat(name string) (os.FileInfo, error)
- func (sh *OsShim) Symlink(oldname string, newname string) error
- func (sh *OsShim) TempDir() string
- func (sh *OsShim) Truncate(name string, size int64) error
- func (sh *OsShim) Unsetenv(key string) error
- func (sh *OsShim) WriteFile(name string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirEntryShim ¶ added in v0.43.0
func (*DirEntryShim) IsDir ¶ added in v0.43.0
func (de *DirEntryShim) IsDir() bool
func (*DirEntryShim) Name ¶ added in v0.43.0
func (de *DirEntryShim) Name() string
func (*DirEntryShim) Type ¶ added in v0.43.0
func (de *DirEntryShim) Type() fs.FileMode
type File ¶
type File interface {
Name() string
Fd() uintptr
Close() error
Stat() (os.FileInfo, error)
Read(b []byte) (n int, err error)
ReadAt(b []byte, off int64) (n int, err error)
Write(b []byte) (n int, err error)
WriteAt(b []byte, off int64) (n int, err error)
Seek(offset int64, whence int) (ret int64, err error)
WriteString(s string) (n int, err error)
Chdir() error
}
type Os ¶
type Os interface {
FindProcess(pid int) (*os.Process, error)
StartProcess(name string, argv []string, attr *os.ProcAttr) (*os.Process, error)
Hostname() (name string, err error)
Expand(s string, mapping func(string) string) string
ExpandEnv(s string) string
Getenv(key string) string
LookupEnv(key string) (string, bool)
Setenv(key, value string) error
Unsetenv(key string) error
Clearenv()
Environ() []string
NewSyscallError(syscall string, err error) error
IsExist(err error) bool
IsNotExist(err error) bool
IsPermission(err error) bool
Getpid() int
Getppid() int
Mkdir(name string, perm os.FileMode) error
Chdir(dir string) error
Open(name string) (File, error)
Create(name string) (File, error)
Rename(oldpath, newpath string) error
NewFile(fd uintptr, name string) File
OpenFile(name string, flag int, perm os.FileMode) (File, error)
Truncate(name string, size int64) error
Remove(name string) error
Chmod(name string, mode os.FileMode) error
Chtimes(name string, atime time.Time, mtime time.Time) error
Pipe() (r File, w File, err error)
Link(oldname, newname string) error
Symlink(oldname, newname string) error
Readlink(name string) (string, error)
ReadDir(name string) ([]os.DirEntry, error)
ReadFile(name string) ([]byte, error)
WriteFile(name string, data []byte, perm os.FileMode) error
Chown(name string, uid, gid int) error
Lchown(name string, uid, gid int) error
TempDir() string
Stat(name string) (os.FileInfo, error)
Lstat(name string) (os.FileInfo, error)
Getwd() (dir string, err error)
MkdirAll(path string, perm os.FileMode) error
RemoveAll(path string) error
IsPathSeparator(c uint8) bool
Getuid() int
Geteuid() int
Getgid() int
Getegid() int
Getgroups() ([]int, error)
Exit(code int)
Getpagesize() int
SameFile(fi1, fi2 os.FileInfo) bool
}
type OsShim ¶
type OsShim struct{}
func (*OsShim) Getpagesize ¶
func (*OsShim) IsNotExist ¶
func (*OsShim) IsPathSeparator ¶
func (*OsShim) IsPermission ¶
func (*OsShim) StartProcess ¶
Click to show internal directories.
Click to hide internal directories.