aws

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backuper

type Backuper struct {
	Session      *session.Session
	Bucket       string
	StateDirPath string
	BackupPath   string
	// contains filtered or unexported fields
}

Backuper ...

func (*Backuper) BackupNeededBaseBlocks

func (b *Backuper) BackupNeededBaseBlocks(newBlock *protobuf.BaseBlock) error

BackupNeededBaseBlocks iteratively goes through the entire blockchain and pushes up the contents of each block into S3

func (*Backuper) TryBackupBaseBlock

func (b *Backuper) TryBackupBaseBlock(lastBlock, baseBlock *protobuf.BaseBlock) (bool, error)

TryBackupBaseBlock takes a single block, returns true if able and successfully backup, false if business logic makes backup not useful, and errors if attempted backup fails

type BackuperI

type BackuperI interface {
	TryBackupBaseBlock(*protobuf.BaseBlock, *protobuf.BaseBlock) (bool, error)
	BackupNeededBaseBlocks(*protobuf.BaseBlock) error
	// contains filtered or unexported methods
}

BackuperI ....

func NewBackuper

func NewBackuper(env string) BackuperI

NewBackuper creates a standard AWS SDK session

Directories

Path Synopsis
Package mock_aws is a generated GoMock package.
Package mock_aws is a generated GoMock package.

Jump to

Keyboard shortcuts

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