Documentation
¶
Overview ¶
Support for the DynamoDB DescribeTable endpoint.
example use:
tests/create_table-livestest.go, which contains a DescribeTable invocation
Index ¶
Constants ¶
View Source
const ( ENDPOINT_NAME = "DescribeTable" DESCTABLE_ENDPOINT = aws_const.ENDPOINT_PREFIX + ENDPOINT_NAME ACTIVE = "ACTIVE" )
Variables ¶
This section is empty.
Functions ¶
func IsTableStatus ¶
IsTableStatus will test the equality status of a table.
Types ¶
type DescribeTable ¶
type DescribeTable struct {
TableName string
}
func NewDescribeTable ¶
func NewDescribeTable() *DescribeTable
func (*DescribeTable) EndpointReq ¶
func (describe_table *DescribeTable) EndpointReq() ([]byte, int, error)
func (DescribeTable) TableExists ¶
func (desc DescribeTable) TableExists() (bool, error)
TableExists test for table exists: exploit the fact that aws reports 4xx for tables that don't exist.
type Request ¶
type Request DescribeTable
type Response ¶
type Response struct { Table struct { AttributeDefinitions attributedefinition.AttributeDefinitions CreationDateTime float64 GlobalSecondaryIndexes []globalsecondaryindex.GlobalSecondaryIndexDesc ItemCount uint64 KeySchema keydefinition.KeySchema LocalSecondaryIndexes []localsecondaryindex.LocalSecondaryIndexDesc ProvisionedThroughput provisionedthroughput.ProvisionedThroughputDesc TableName string TableSizeBytes uint64 TableStatus string } }
func NewResponse ¶
func NewResponse() *Response
type StatusResult ¶
type StatusResult struct {
StatusResult bool
}