dynamodb

package
v0.0.0-...-36298b4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_NAME = "K"
	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, size int64) 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