client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamodbClient

type DynamodbClient interface {
	Scan(ctx context.Context, params *ddb.ScanInput, optFns ...func(*ddb.Options)) (*ddb.ScanOutput, error)
	UpdateItem(ctx context.Context, params *ddb.UpdateItemInput, optFns ...func(*ddb.Options)) (*ddb.UpdateItemOutput, error)
}

DynamodbClient - BEGIN - copied from dynamodb_client.go

func NewDynamodbClient

func NewDynamodbClient(key []byte, httpClient awscommon.AWSHttpClient) (DynamodbClient, error)

NewDynamodbClient - builds DynamodbClient with provide credentials and optional httpClient pass an httpClient to use for tests

type InputBuilderV2

type InputBuilderV2 struct {
	// contains filtered or unexported fields
}

func NewInputBuilderV2

func NewInputBuilderV2(tableName string, tableDefinition table.TableDefinition) *InputBuilderV2

func (*InputBuilderV2) UpdateItemInput

func (t2 *InputBuilderV2) UpdateItemInput(aRar rar.ResourceActionRoles) (*dynamodb.UpdateItemInput, error)

UpdateItemInput - builds input without making any assumption on the attribute names or types TODO - 1) add support for composite fields 2) array values

Jump to

Keyboard shortcuts

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