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
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 ¶
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
Click to show internal directories.
Click to hide internal directories.