Documentation ¶
Index ¶
- func NewFilesystem(log *logrus.Logger) filesystem.Filesystem
- type MockFilesystem
- func (m *MockFilesystem) Format(ctx context.Context, source, fsType string, mkfsArgs []string) error
- func (m *MockFilesystem) GetDeviceByID(ctx context.Context, id string) (string, error)
- func (m *MockFilesystem) GetDeviceLastPartition(ctx context.Context, source string) (string, error)
- func (m *MockFilesystem) IsMounted(ctx context.Context, target string) (bool, error)
- func (m *MockFilesystem) Mount(ctx context.Context, source, target, fsType string, opts ...string) error
- func (m *MockFilesystem) Statistics(volumePath string) (filesystem.VolumeStatistics, error)
- func (m *MockFilesystem) Unmount(ctx context.Context, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilesystem ¶
func NewFilesystem(log *logrus.Logger) filesystem.Filesystem
Types ¶
type MockFilesystem ¶
type MockFilesystem struct {
// contains filtered or unexported fields
}
func (*MockFilesystem) GetDeviceByID ¶
func (*MockFilesystem) GetDeviceLastPartition ¶
func (*MockFilesystem) Statistics ¶
func (m *MockFilesystem) Statistics(volumePath string) (filesystem.VolumeStatistics, error)
Click to show internal directories.
Click to hide internal directories.