describe_table

package
Version: v0.0.0-...-93ed684 Latest Latest
Warning

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

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

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

func IsTableStatus(tablename string, status string) (bool, error)

IsTableStatus will test the equality status of a table.

func PollTableStatus

func PollTableStatus(tablename string, status string, tries int) (bool, error)

PollTableStatus allows the caller to poll a table for a specific status.

Types

type Describe

type Describe DescribeTable

Describe is an alias for backwards compatibility

func (*Describe) EndpointReq

func (describe *Describe) EndpointReq() (string, int, error)

type DescribeTable

type DescribeTable struct {
	TableName string
}

func NewDescribeTable

func NewDescribeTable() *DescribeTable

func (*DescribeTable) EndpointReq

func (describe_table *DescribeTable) EndpointReq() (string, 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

func (*Request) EndpointReq

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

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL