defragmentor

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefragDataPeriodically

func DefragDataPeriodically(ctx context.Context, etcdConnectionConfig *brtypes.EtcdConnectionConfig, defragmentationSchedule cron.Schedule, callback CallbackFunc, logger *logrus.Entry)

DefragDataPeriodically defragments the data directory of each etcd member.

func NewDefragmentorJob

func NewDefragmentorJob(ctx context.Context, etcdConnectionConfig *brtypes.EtcdConnectionConfig, logger *logrus.Entry, callback CallbackFunc) cron.Job

NewDefragmentorJob returns the new defragmentor job.

Types

type CallbackFunc

type CallbackFunc func(ctx context.Context, isFinal bool) (*brtypes.Snapshot, error)

CallbackFunc is type decalration for callback function for defragmentor

Jump to

Keyboard shortcuts

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