create_table

package
Version: v0.0.0-...-1bb5a49 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2014 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Support for the DynamoDB CreateTable endpoint.

example use:

see tests/create_table-livestest.go

Index

Constants

View Source
const (
	ENDPOINT_NAME        = "CreateTable"
	CREATETABLE_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME
)

Variables

This section is empty.

Functions

func ValidTableName

func ValidTableName(t string) bool

ValidTable is a local validator that helps callers determine if a table name is too long.

Types

type Create

type Create CreateTable

Create is an alias for backwards compatibility

func NewCreate

func NewCreate() *Create

func (*Create) EndpointReq

func (create *Create) EndpointReq() (string, int, error)

type CreateTable

type CreateTable struct {
	AttributeDefinitions   attributedefinition.AttributeDefinitions
	GlobalSecondaryIndexes []globalsecondaryindex.GlobalSecondaryIndex `json:",omitempty"`
	KeySchema              keydefinition.KeySchema
	LocalSecondaryIndexes  []localsecondaryindex.LocalSecondaryIndex `json:",omitempty"`
	ProvisionedThroughput  provisionedthroughput.ProvisionedThroughput
	TableName              string
}

func NewCreateTable

func NewCreateTable() *CreateTable

func (*CreateTable) EndpointReq

func (create_table *CreateTable) EndpointReq() (string, int, error)

type Request

type Request CreateTable

func (*Request) EndpointReq

func (req *Request) EndpointReq() (string, int, error)

type Response

type Response struct {
	TableDescription struct {
		AttributeDefinitions   attributedefinition.AttributeDefinitions        `json:",omitempty"`
		CreationDateTime       float64                                         `json:",omitempty"`
		GlobalSecondaryIndexes []globalsecondaryindex.GlobalSecondaryIndexDesc `json:",omitempty"`
		ItemCount              uint64                                          `json:",omitempty"`
		KeySchema              keydefinition.KeySchema                         `json:",omitempty"`
		LocalSecondaryIndexes  []localsecondaryindex.LocalSecondaryIndexDesc   `json:",omitempty"`
		ProvisionedThroughput  provisionedthroughput.ProvisionedThroughputDesc `json:",omitempty"`
		TableName              string
		TableSizeBytes         uint64 `json:",omitempty"`
		TableStatus            string
	}
}

func NewResponse

func NewResponse() *Response

Source Files

Jump to

Keyboard shortcuts

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