Documentation
¶
Index ¶
- type FS
- type Local
- func (f *Local) Exists(path string) (bool, error)
- func (f *Local) IsMounted(target string) (bool, error)
- func (f *Local) MkdirAll(path string, perm os.FileMode) error
- func (f *Local) Mount(device, target string, readonly bool) error
- func (f *Local) ReadFile(path string) ([]byte, error)
- func (f *Local) Remove(path string) error
- func (f *Local) RemoveAll(path string) error
- func (f *Local) Unmount(target string) error
- func (f *Local) WriteFile(path string, data []byte, perm os.FileMode) error
- type Mock
- func (f *Mock) Exists(path string) (bool, error)
- func (f *Mock) GetFile(path string) ([]byte, bool)
- func (f *Mock) IsMounted(target string) (bool, error)
- func (f *Mock) MkdirAll(path string, perm os.FileMode) error
- func (f *Mock) Mount(device, target string, readonly bool) error
- func (f *Mock) ReadFile(path string) ([]byte, error)
- func (f *Mock) Remove(path string) error
- func (f *Mock) RemoveAll(path string) error
- func (f *Mock) Removed() []string
- func (f *Mock) SetFile(path string, content []byte)
- func (f *Mock) SetFileString(path, content string)
- func (f *Mock) SimulateMountedPartition(partNum int, version string)
- func (f *Mock) Unmount(target string) error
- func (f *Mock) WriteFile(path string, data []byte, perm os.FileMode) error
- type MountableFS
- type SSH
- func (f *SSH) Close() error
- func (f *SSH) Exists(path string) (bool, error)
- func (f *SSH) IsMounted(target string) (bool, error)
- func (f *SSH) MkdirAll(path string, perm os.FileMode) error
- func (f *SSH) Mount(device, target string, readonly bool) error
- func (f *SSH) ReadFile(path string) ([]byte, error)
- func (f *SSH) Remove(path string) error
- func (f *SSH) RemoveAll(path string) error
- func (f *SSH) Unmount(target string) error
- func (f *SSH) WriteFile(path string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) SetFileString ¶
func (*Mock) SimulateMountedPartition ¶
type MountableFS ¶
Click to show internal directories.
Click to hide internal directories.