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 ¶
ValidTable is a local validator that helps callers determine if a table name is too long.
Types ¶
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 ¶
type Request ¶
type Request CreateTable
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
Click to show internal directories.
Click to hide internal directories.