Documentation
¶
Index ¶
- Constants
- func DataSha256sum(data []byte) string
- func FileSha256sum(fsb afero.Fs, filepath string) (string, error)
- func MergeErrorList(errorList []error) error
- type CmdLine
- type CmdLineExecuter
- type FileSystem
- func (fs *FileSystem) Format(targetDevice string, fsType string, formatOptions string) error
- func (fs *FileSystem) Mount(targetDevice string, mountPath string, fsType string, mountOptions string) error
- func (fs *FileSystem) TempDir(fsb afero.Fs, prefix string) (string, error)
- func (fs *FileSystem) Umount(mountPath string) error
- type FileSystemHelper
- type MtdUtils
- type MtdUtilsImpl
- type Permissions
- type PermissionsDefaultImpl
- type UbifsUtils
- type UbifsUtilsImpl
Constants ¶
View Source
const (
ChunkSize = 128 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func DataSha256sum ¶
func MergeErrorList ¶
Types ¶
type CmdLineExecuter ¶
type FileSystem ¶
type FileSystem struct {
CmdLineExecuter
}
func (*FileSystem) Format ¶
func (fs *FileSystem) Format(targetDevice string, fsType string, formatOptions string) error
func (*FileSystem) Umount ¶
func (fs *FileSystem) Umount(mountPath string) error
type FileSystemHelper ¶
type Permissions ¶
type PermissionsDefaultImpl ¶
type PermissionsDefaultImpl struct {
}
func (*PermissionsDefaultImpl) ApplyChmod ¶
func (*PermissionsDefaultImpl) ApplyChown ¶
func (pdi *PermissionsDefaultImpl) ApplyChown(filepath string, uid interface{}, gid interface{}) error
FIXME: this cannot be tested yet with unit tests because requires mock for: os.Chown, os.Lchown, os.Lstat, user.Lookup and user.LookupGroup. Since we can't change ownership on a real filesystem, this must be tested through integration.
type UbifsUtils ¶
type UbifsUtilsImpl ¶
type UbifsUtilsImpl struct {
CmdLineExecuter
}
func (*UbifsUtilsImpl) GetTargetDeviceFromUbiVolumeName ¶
Click to show internal directories.
Click to hide internal directories.