restore

package
v0.0.0-...-baf1042 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDyanmo

func ToDyanmo(c *DynamoResotreConfig) error

ToDyanmo restores the data from the file in the s3 bucket to the specified dynamo table

Types

type DynamoResotreConfig

type DynamoResotreConfig struct {
	Region          string
	TableName       string
	Workers         int
	Bucket          string
	RestoreFile     string
	RunOnLocalStack bool
}

DynamoResotreConfig provides the configuration for archiving dynamo table to s3

type DynamoWriter

type DynamoWriter interface {
	Write(input chan map[string]interface{}) error
}

DynamoWriter provides the interface to write data to dynamo

func NewDynamoBatchWriter

func NewDynamoBatchWriter(db dynamodbiface.DynamoDBAPI, table string) DynamoWriter

NewDynamoBatchWriter creates new dynamo writer which sends the data to dynamo in batches of 25 requests

Jump to

Keyboard shortcuts

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