Documentation ¶
Overview ¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func CreateSession() *session.Session
- func DeleteItemFromTable(tableName string, key map[string]*dynamodb.AttributeValue) error
- func Finish()
- func InsertItemIntoTable(tableName string, av map[string]*dynamodb.AttributeValue) error
- func ScanItemsFromTable(tableName string, values map[string]*dynamodb.AttributeValue, ...) (*dynamodb.ScanOutput, error)
- func SelectItemFromTable(tableName string, key map[string]*dynamodb.AttributeValue) (*dynamodb.GetItemOutput, error)
- func StrategyGet(style, strategy string) error
- func StrategyInsert(style, strategy string) error
- func StrategyScan(style, strategy string) (*dynamodb.ScanOutput, error)
- func StrategyUpdate(style, strategy string) error
- func UpdateItemInTable(tableName string, key map[string]*dynamodb.AttributeValue, ...) error
- type DBRulesPayload
- type DBRulesTable
- type DBSimulationTable
Constants ¶
View Source
const (
RulesTableName = "StrikerRules"
)
View Source
const (
SimulationTableName = "StrikerSimulation"
)
View Source
const (
StrategyTableName = "StrikerStrategy"
)
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
Initialize a session that the SDK will use to load credentials from the shared credentials file ~/.aws/credentials and region from the shared configuration file ~/.aws/config.
func DeleteItemFromTable ¶
func DeleteItemFromTable(tableName string, key map[string]*dynamodb.AttributeValue) error
func InsertItemIntoTable ¶
func InsertItemIntoTable(tableName string, av map[string]*dynamodb.AttributeValue) error
func ScanItemsFromTable ¶
func ScanItemsFromTable(tableName string, values map[string]*dynamodb.AttributeValue, names map[string]*string, filter string) (*dynamodb.ScanOutput, error)
func SelectItemFromTable ¶
func SelectItemFromTable(tableName string, key map[string]*dynamodb.AttributeValue) (*dynamodb.GetItemOutput, error)
func StrategyGet ¶
func StrategyInsert ¶
func StrategyScan ¶
func StrategyScan(style, strategy string) (*dynamodb.ScanOutput, error)
func StrategyUpdate ¶
func UpdateItemInTable ¶
Types ¶
type DBRulesPayload ¶
type DBRulesTable ¶
func (*DBRulesTable) Delete ¶
func (r *DBRulesTable) Delete() error
func (*DBRulesTable) Insert ¶
func (r *DBRulesTable) Insert() error
func (*DBRulesTable) Select ¶
func (r *DBRulesTable) Select() (*DBRulesPayload, error)
func (*DBRulesTable) Update ¶
func (r *DBRulesTable) Update() error
type DBSimulationTable ¶
type DBSimulationTable struct { Style string Guid string Target string Hostname string Status string Epoch int64 Timestamp string Payload string }
func (*DBSimulationTable) SimulationDelete ¶
func (s *DBSimulationTable) SimulationDelete() error
func (*DBSimulationTable) SimulationInsert ¶
func (s *DBSimulationTable) SimulationInsert() error
func (*DBSimulationTable) SimulationUpdate ¶
func (s *DBSimulationTable) SimulationUpdate() error
Click to show internal directories.
Click to hide internal directories.