file_cleaner

package
v0.8.5-64175 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IDRegex = regexp.MustCompile(`^\d+`)
)

Functions

This section is empty.

Types

type FileCleaner

type FileCleaner struct {
	IndexDir     string
	Ticker       *time.Ticker
	IndexingLock *indexing_lock.IndexingLock
	// contains filtered or unexported fields
}

func NewFileCleaner

func NewFileCleaner(indexDir string, indexingLock *indexing_lock.IndexingLock) *FileCleaner

func (*FileCleaner) Clean

func (c *FileCleaner) Clean(ctx context.Context) error

func (*FileCleaner) Init

func (c *FileCleaner) Init() error

func (*FileCleaner) MarkRepoForDeletion

func (c *FileCleaner) MarkRepoForDeletion(repoID uint32) error

func (*FileCleaner) RemoveNodeUUID added in v0.8.4

func (c *FileCleaner) RemoveNodeUUID() error

func (*FileCleaner) RemoveShardsFor

func (c *FileCleaner) RemoveShardsFor(repoID uint32) error

func (*FileCleaner) StartCleanInterval

func (c *FileCleaner) StartCleanInterval(ctx context.Context, interval time.Duration) error

func (*FileCleaner) Truncate

func (c *FileCleaner) Truncate() error

func (*FileCleaner) TruncateExceptUUID added in v0.8.4

func (c *FileCleaner) TruncateExceptUUID() error

Jump to

Keyboard shortcuts

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