filter

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultWALFilter

type DefaultWALFilter struct {
	WALFilter
	// contains filtered or unexported fields
}

DefaultWALFilter is a default implementation of WALFilter

func (*DefaultWALFilter) Filter

func (filter *DefaultWALFilter) Filter(walEntriesChannel <-chan *model.WALEntry) <-chan *model.WALTask

Filter filters that rows acquired from the database and creates WALTasks for them

type S3VersionFetcher

type S3VersionFetcher struct {
	VersionHeaderName string
}

S3VersionFetcher is an implementation of VersionFetcher that uses an S3 client

func (*S3VersionFetcher) Fetch

func (s3VersionFetcher *S3VersionFetcher) Fetch(auth *s3.MigrationAuth, bucketName string, key string) (*StorageState, error)

Fetch fetches the object's version using s3 client

type StorageState

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

StorageState describes if an object is present on o storage and if so, in which version

type VersionFetcher

type VersionFetcher interface {
	//Fetch should fetch object's version
	Fetch(auth *s3.MigrationAuth, bucketName string, key string) (*StorageState, error)
}

VersionFetcher fetches object's version

type WALFilter

type WALFilter interface {
	Filter(walEntriesChannel <-chan *model.WALEntry) <-chan *model.WALTask
}

WALFilter consults the storages to determine the desired state of an object

func NewDefaultWALFilter

func NewDefaultWALFilter(resolver auth.BackendResolver, fetcher VersionFetcher) WALFilter

NewDefaultWALFilter constructs an instance of DefaultWALFeeder

Jump to

Keyboard shortcuts

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