create_table

package
v0.0.0-...-7913028 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2015 License: BSD-2-Clause Imports: 10 Imported by: 26

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() ([]byte, int, error)

func (*Create) EndpointReqWithConf

func (create *Create) EndpointReqWithConf(c *conf.AWS_Conf) ([]byte, 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() ([]byte, int, error)

func (*CreateTable) EndpointReqWithConf

func (create_table *CreateTable) EndpointReqWithConf(c *conf.AWS_Conf) ([]byte, int, error)

type Request

type Request CreateTable

func (*Request) EndpointReq

func (req *Request) EndpointReq() ([]byte, int, error)

func (*Request) EndpointReqWithConf

func (req *Request) EndpointReqWithConf(c *conf.AWS_Conf) ([]byte, 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

Jump to

Keyboard shortcuts

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