tombstones

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore() *store.TombstoneStore

Types

type TombstoneStore

type TombstoneStore interface {
	StoreTombstones(*bbolt.Tx, store.TombstoneEntry) error
	DeleteTombstones(*bbolt.Tx, store.TombstoneEntry) error
	ListEntries(*bbolt.Tx) iter.Iterator[store.TombstoneEntry]
	CreateBuckets(*bbolt.Tx) error
}

type Tombstones

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

func NewTombstones

func NewTombstones(store TombstoneStore) *Tombstones

func (*Tombstones) AddTombstones

func (x *Tombstones) AddTombstones(tx *bbolt.Tx, cmd *raft.Log, t *metastorev1.Tombstones) error

func (*Tombstones) DeleteTombstones

func (x *Tombstones) DeleteTombstones(tx *bbolt.Tx, cmd *raft.Log, tombstones ...*metastorev1.Tombstones) error

func (*Tombstones) Exists

func (x *Tombstones) Exists(tenant string, shard uint32, block string) bool

func (*Tombstones) Init

func (x *Tombstones) Init(tx *bbolt.Tx) error

func (*Tombstones) ListTombstones

func (x *Tombstones) ListTombstones(before time.Time) iter.Iterator[*metastorev1.Tombstones]

func (*Tombstones) Restore

func (x *Tombstones) Restore(tx *bbolt.Tx) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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