Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMaxMemoryUsedForSortingExportInMB = 500
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// ExportTime is time in the past from which to export table data.
ExportTime time.Time
// ExportARN allows to use already finished export without triggering new.
ExportARN string
// DynamoTableARN that will be exported.
DynamoTableARN string
// ExportLocalDir specifies where export files will be downloaded (it must exists).
// If empty os.TempDir() will be used.
ExportLocalDir string
// MaxMemoryUsedForSortingExportInMB (MB) is used to define how large amount of events
// will be loaded into memory when doing sorting of events before publishing it.
MaxMemoryUsedForSortingExportInMB int
// Bucket used to store export.
Bucket string
// Prefix is s3 prefix where to store export inside bucket.
Prefix string
// DryRun allows to generate export and convert it to AuditEvents.
// Nothing is published to athena publisher.
// Can be used to test if export is valid.
DryRun bool
// NoOfEmitWorkers defines how many workers are used to emit audit events.
NoOfEmitWorkers int
// CheckpointPath is full path of file where checkpoint data should be stored.
// Defaults to file in current directory (athenadynamomigration.json)
// Checkpoint allow to resume export which failed during emitting.
CheckpointPath string
// TopicARN is topic of athena logger.
TopicARN string
// LargePayloadBucket is s3 bucket configured for large payloads in athena logger.
LargePayloadBucket string
// LargePayloadPrefix is s3 prefix configured for large payloads in athena logger.
LargePayloadPrefix string
Logger log.FieldLogger
// contains filtered or unexported fields
}
func (*Config) CheckAndSetDefaults ¶
Click to show internal directories.
Click to hide internal directories.