Documentation ¶
Index ¶
- Variables
- func NewPollingSource(ctx context.Context, client s3iface.S3API, logger log.Logger, ...) (*pollingSource, error)
- func NewSQSSource(ctx context.Context, logger log.Logger, reader reader.Reader, ...) (*sqsSource, error)
- func NewSource(src *s3.S3Source, transferID string, logger log.Logger, ...) (abstract.Source, error)
- type Object
- type ObjectFetcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReadProgressKey = "ReadProgressKey" CreationEvent = "ObjectCreated:" TestEvent = "s3:TestEvent" )
Functions ¶
func NewPollingSource ¶
func NewSQSSource ¶
Types ¶
type ObjectFetcher ¶
type ObjectFetcher interface { // FetchObjects derives a list of new objects that need replication from a configured source. // This can be a creation event messages from an SQS, SNS, Pub/Sub queue or directly by reading the full object list from the s3 bucket itself. FetchObjects() ([]Object, error) // Commit persist the processed object to some state. // For SQS it deletes the processed messages, for SNS/PubSub it Ack the processed messages // and for normal S3 bucket polling it stores the latest object that was read to the transfer state. Commit(Object) error }
func NewObjectFetcher ¶
Click to show internal directories.
Click to hide internal directories.