dynamodb

package
v0.0.0-...-41cac4f Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const KEY_NAME = "K"
View Source
const VAL_NAME = "V"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Table     string
	Region    string
	AccessKey string
	SecretKey string
}

func MakeClient

func MakeClient(remote config.RemoteObject) (*Client, error)

func (*Client) DownloadWithWriter

func (c *Client) DownloadWithWriter(hash string, w io.WriterAt) error

Download a chunk from DynamoDB

func (*Client) List

func (c *Client) List(prefix string, action func(key string)) ([]string, error)

List with a prefix string in DynamoDB

func (*Client) UploadWithReader

func (c *Client) UploadWithReader(hash string, r io.Reader) error

Upload a chunk to DynamoDB

func (*Client) VerifyHash

func (c *Client) VerifyHash(hash string) (bool, error)

Verify the existence of a hash in DynamoDB

Jump to

Keyboard shortcuts

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