dynamodb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseDef

type DatabaseDef struct {
	Tables []*TableDef
}

type IndexDef

type IndexDef struct {
	Name       string
	Projection string
	Key        map[string]string
}

func (IndexDef) GetIndex

func (i IndexDef) GetIndex() *dynamodb.GlobalSecondaryIndex

func (IndexDef) GetKeys

func (i IndexDef) GetKeys() []*dynamodb.KeySchemaElement

type TableDef

type TableDef struct {
	Name       string
	Key        map[string]string
	Attributes map[string]string
	Indexes    []*IndexDef
}

func (TableDef) GetAttributes

func (t TableDef) GetAttributes() []*dynamodb.AttributeDefinition

func (TableDef) GetIndexes

func (t TableDef) GetIndexes() (indexes []*dynamodb.GlobalSecondaryIndex)

func (TableDef) GetKeys

func (t TableDef) GetKeys() []*dynamodb.KeySchemaElement

Jump to

Keyboard shortcuts

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