dynamodb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents the wrapper of DynamoDB API client

func NewClient

func NewClient() *Client

NewClient creates new Client object

func (*Client) CreateTable

func (c *Client) CreateTable(table string) error

CreateTable creates new table for Valec

func (*Client) Delete

func (c *Client) Delete(table, namespace string, configs []*lib.Config) error

Delete deletes records from DynamoDB table

func (*Client) Insert

func (c *Client) Insert(table, namespace string, configs []*lib.Config) error

Insert creates / updates records of configs in DynamoDB table

func (*Client) ListConfigs

func (c *Client) ListConfigs(table, namespace string) ([]*lib.Config, error)

ListConfigs returns all configs in the given table and namespace

func (*Client) ListNamespaces

func (c *Client) ListNamespaces(table string) ([]string, error)

ListNamespaces returns all namespaces

func (*Client) TableExists

func (c *Client) TableExists(table string) (bool, error)

TableExists check whether the given table exists or not

Jump to

Keyboard shortcuts

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