Documentation ¶
Index ¶
- func ConnectToInventoryFromContext(ctx context.Context) *dynamodbclient.DynamoDBStore
- func CreateObject(inv InventoryDatabase, obj InventoryObject) (*events.APIGatewayProxyResponse, error)
- func DeleteObject(inv InventoryDatabase, obj InventoryObject) (*events.APIGatewayProxyResponse, error)
- func GetObjectResponse(obj interface{}, err error) (*events.APIGatewayProxyResponse, error)
- func UpdateObject(inv InventoryDatabase, obj InventoryObject, id string) (*events.APIGatewayProxyResponse, error)
- type InventoryDatabase
- type InventoryObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToInventoryFromContext ¶
func ConnectToInventoryFromContext(ctx context.Context) *dynamodbclient.DynamoDBStore
ConnectToInventoryFromContext creates a dynamodb inventory client from credentials attached to the context
func CreateObject ¶
func CreateObject(inv InventoryDatabase, obj InventoryObject) (*events.APIGatewayProxyResponse, error)
CreateObject creates an object
func DeleteObject ¶
func DeleteObject(inv InventoryDatabase, obj InventoryObject) (*events.APIGatewayProxyResponse, error)
DeleteObject deletes an object
func GetObjectResponse ¶
func GetObjectResponse(obj interface{}, err error) (*events.APIGatewayProxyResponse, error)
GetObjectResponse looks up the appropriate response for object
func UpdateObject ¶
func UpdateObject(inv InventoryDatabase, obj InventoryObject, id string) (*events.APIGatewayProxyResponse, error)
UpdateObject updates an object
Types ¶
Click to show internal directories.
Click to hide internal directories.