Documentation ¶
Index ¶
- Variables
- type FileCleaner
- func (c *FileCleaner) Clean(ctx context.Context) error
- func (c *FileCleaner) Init() error
- func (c *FileCleaner) MarkRepoForDeletion(repoID uint32) error
- func (c *FileCleaner) RemoveNodeUUID() error
- func (c *FileCleaner) RemoveShardsFor(repoID uint32) error
- func (c *FileCleaner) StartCleanInterval(ctx context.Context, interval time.Duration) error
- func (c *FileCleaner) Truncate() error
- func (c *FileCleaner) TruncateExceptUUID() error
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) 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 (*FileCleaner) Truncate ¶
func (c *FileCleaner) Truncate() error
func (*FileCleaner) TruncateExceptUUID ¶ added in v0.8.4
func (c *FileCleaner) TruncateExceptUUID() error
Click to show internal directories.
Click to hide internal directories.