system

package
v0.0.0-...-dd82ce5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSystem

type FakeSystem struct{}

func (FakeSystem) CopyDir

func (_ FakeSystem) CopyDir(src string, dst string) error

func (FakeSystem) CopyFile

func (_ FakeSystem) CopyFile(src string, dst string) error

func (FakeSystem) GitClone

func (_ FakeSystem) GitClone(src string, dst string) error

func (FakeSystem) OpenFile

func (_ FakeSystem) OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)

func (FakeSystem) ReadFile

func (_ FakeSystem) ReadFile(path string) ([]byte, error)

func (FakeSystem) RemoveAll

func (_ FakeSystem) RemoveAll(path string) error

func (FakeSystem) Rename

func (_ FakeSystem) Rename(path string, newpath string) error

func (FakeSystem) Stat

func (_ FakeSystem) Stat(path string) (os.FileInfo, error)

func (FakeSystem) TimDirectory

func (_ FakeSystem) TimDirectory() (string, error)

func (FakeSystem) TouchDir

func (_ FakeSystem) TouchDir(path string) error

func (FakeSystem) TouchFile

func (_ FakeSystem) TouchFile(path string) error

func (FakeSystem) WriteFile

func (_ FakeSystem) WriteFile(path string, data []byte, perm os.FileMode) error

type RealSystem

type RealSystem struct{}

func (RealSystem) CopyDir

func (_ RealSystem) CopyDir(src string, dest string) error

func (RealSystem) CopyFile

func (_ RealSystem) CopyFile(src string, dest string) error

func (RealSystem) GitClone

func (_ RealSystem) GitClone(src string, dest string) error

func (RealSystem) OpenFile

func (_ RealSystem) OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)

func (RealSystem) ReadFile

func (_ RealSystem) ReadFile(path string) ([]byte, error)

func (RealSystem) RemoveAll

func (_ RealSystem) RemoveAll(path string) error

func (RealSystem) Rename

func (_ RealSystem) Rename(path string, newpath string) error

func (RealSystem) Stat

func (_ RealSystem) Stat(path string) (os.FileInfo, error)

func (RealSystem) TimDirectory

func (_ RealSystem) TimDirectory() (string, error)

func (RealSystem) TouchDir

func (_ RealSystem) TouchDir(path string) error

func (RealSystem) TouchFile

func (_ RealSystem) TouchFile(path string) error

func (RealSystem) WriteFile

func (_ RealSystem) WriteFile(path string, data []byte, perm os.FileMode) error

type System

type System interface {
	CopyDir(src string, dst string) error
	CopyFile(src string, dst string) error
	GitClone(src string, dest string) error
	OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
	ReadFile(path string) ([]byte, error)
	RemoveAll(path string) error
	Rename(path string, newpath string) error
	TimDirectory() (string, error)
	TouchDir(path string) error
	TouchFile(path string) error
	Stat(path string) (os.FileInfo, error)
	WriteFile(path string, data []byte, perm os.FileMode) error
}

func Fake

func Fake() System

func GetSystem

func GetSystem() System

func Real

func Real() System

Jump to

Keyboard shortcuts

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