Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotSkipped = "" SkipPlaceholder = "filesystem is placeholder" SkipNoCorrespondenceOnSender = "filesystem has no correspondence on sender" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSReport ¶
type FSReport struct { Filesystem string SnapshotList, DestroyList []SnapshotReport SkipReason FSSkipReason LastError string }
type FSSkipReason ¶
type FSSkipReason string
func (FSSkipReason) NotSkipped ¶
func (r FSSkipReason) NotSkipped() bool
type LocalPrunerFactory ¶
type LocalPrunerFactory struct {
// contains filtered or unexported fields
}
func NewLocalPrunerFactory ¶
func NewLocalPrunerFactory(in config.PruningLocal, promPruneSecs *prometheus.HistogramVec) (*LocalPrunerFactory, error)
func (*LocalPrunerFactory) BuildLocalPruner ¶
type PrunerFactory ¶
type PrunerFactory struct {
// contains filtered or unexported fields
}
func NewPrunerFactory ¶
func NewPrunerFactory(in config.PruningSenderReceiver, promPruneSecs *prometheus.HistogramVec) (*PrunerFactory, error)
func (*PrunerFactory) BuildReceiverPruner ¶
func (*PrunerFactory) BuildSenderPruner ¶
type Sender ¶ added in v0.5.0
type Sender interface { ReplicationCursor(ctx context.Context, req *pdu.ReplicationCursorReq) (*pdu.ReplicationCursorRes, error) ListFilesystems(ctx context.Context, req *pdu.ListFilesystemReq) (*pdu.ListFilesystemRes, error) }
The sender in the replication setup. The pruner uses the Sender to determine which of the Target's filesystems need to be pruned. Also, it asks the Sender about the replication cursor of each filesystem to enable the 'not_replicated' pruning rule.
Try to keep it compatible with github.com/zrepl/zrepl/endpoint.Endpoint
type State ¶
type State int
func StateString ¶
StateString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
type Target ¶
type Target interface { ListFilesystems(ctx context.Context, req *pdu.ListFilesystemReq) (*pdu.ListFilesystemRes, error) ListFilesystemVersions(ctx context.Context, req *pdu.ListFilesystemVersionsReq) (*pdu.ListFilesystemVersionsRes, error) DestroySnapshots(ctx context.Context, req *pdu.DestroySnapshotsReq) (*pdu.DestroySnapshotsRes, error) }
The pruning target, i.e., on which snapshots are destroyed. This can be a replication sender or receiver.
Try to keep it compatible with github.com/zrepl/zrepl/endpoint.Endpoint
Click to show internal directories.
Click to hide internal directories.