cleanup

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Force

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

Force handles the cleanup of leftover directories.

func New

func New(logger *zap.Logger, opts ...Option) *Force

New creates a new Force.

func (*Force) Cleanup

func (c *Force) Cleanup() error

Cleanup removes all configured directories.

type Option

type Option func(*Force)

Option is a function that configures a Force instance.

func WithRootDir

func WithRootDir(rootDir string) Option

WithRootDir sets a custom root directory for testing purposes.

Jump to

Keyboard shortcuts

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