filesystem

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemManager

type FilesystemManager struct {
	// contains filtered or unexported fields
}

FilesystemManager manages folders used by OSHA tests

func NewFilesystemManager

func NewFilesystemManager(logger *slog.Logger) (*FilesystemManager, error)

Creates a new FilesystemManager instance

func (*FilesystemManager) Close

func (m *FilesystemManager) Close() error

Delete the test dir and snapshot dir

func (*FilesystemManager) GetTestDir

func (m *FilesystemManager) GetTestDir() string

Get the test dir

func (*FilesystemManager) RevertToSnapshot

func (m *FilesystemManager) RevertToSnapshot(name string) error

Revert to a snapshot of the test dir

func (*FilesystemManager) TakeSnapshot

func (m *FilesystemManager) TakeSnapshot(name string) error

Take a snapshot of the current test dir

Jump to

Keyboard shortcuts

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