scratch

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scratch

type Scratch interface {
	// Mkdir creates a new scratch directory with the given nickname
	Mkdir(nickname string) (string, error)
	// Cleanup deletes all scratch directories created with CreateScratchDir(), UNLESS the CleanupOnExit config setting is false. It should be called when Thelma exits.
	Cleanup() error
}

Scratch is a utility for creating temporary directories that are automatically cleaned up when Thelma exits

func NewScratch

func NewScratch(config config.Config) (Scratch, error)

Jump to

Keyboard shortcuts

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