option

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition added in v2.1.0

type Condition string

Condition is a type that can apply ConditionExpression to the various input parameters.

func (*Condition) ApplyToDeleteItemInput added in v2.1.0

func (c *Condition) ApplyToDeleteItemInput(req *dynamodb.DeleteItemInput)

ApplyToDeleteItemInput applies the option to dynamodb.DeleteItemInput.

func (*Condition) ApplyToPutItemInput added in v2.1.0

func (c *Condition) ApplyToPutItemInput(req *dynamodb.PutItemInput)

ApplyToPutItemInput applies the option to dynamodb.PutItemInput.

func (*Condition) ApplyToUpdateItemInput added in v2.1.0

func (c *Condition) ApplyToUpdateItemInput(req *dynamodb.PutItemInput)

ApplyToUpdateItemInput applies the option to dynamodb.UpdateItemInput.

type ConsistentRead

type ConsistentRead bool

ConsistentRead is a type that can apply ConsistentRead to the various input parameters.

func (ConsistentRead) ApplyToGetItemInput added in v2.1.0

func (cr ConsistentRead) ApplyToGetItemInput(req *dynamodb.GetItemInput)

ApplyToGetItemInput applies the option to dynamodb.GetItemInput.

type DeleteItemInputOption added in v2.1.0

type DeleteItemInputOption interface {
	ApplyToDeleteItemInput(req *dynamodb.DeleteItemInput)
}

DeleteItemInputOption is an interface to apply an option to dynamodb.DeleteItemInput.

type ExclusiveStartKey

type ExclusiveStartKey map[string]types.AttributeValue

ExclusiveStartKey is a type that can apply ExclusiveStartKey to the various input parameters.

func (ExclusiveStartKey) ApplyToQueryInput added in v2.1.0

func (k ExclusiveStartKey) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type ExpressionAttributeNames added in v2.1.0

type ExpressionAttributeNames map[string]string

ExpressionAttributeNames is a type that can apply ExpressionAttributeNames to the various input parameters.

func (ExpressionAttributeNames) ApplyToDeleteItemInput added in v2.1.0

func (names ExpressionAttributeNames) ApplyToDeleteItemInput(req *dynamodb.DeleteItemInput)

ApplyToDeleteItemInput applies the option to dynamodb.DeleteItemInput.

func (ExpressionAttributeNames) ApplyToPutItemInput added in v2.1.0

func (names ExpressionAttributeNames) ApplyToPutItemInput(req *dynamodb.PutItemInput)

ApplyToPutItemInput applies the option to dynamodb.PutItemInput.

func (ExpressionAttributeNames) ApplyToQueryInput added in v2.1.0

func (names ExpressionAttributeNames) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

func (ExpressionAttributeNames) ApplyToUpdateItemInput added in v2.1.0

func (names ExpressionAttributeNames) ApplyToUpdateItemInput(req *dynamodb.UpdateItemInput)

ApplyToUpdateItemInput applies the option to dynamodb.UpdateItemInput.

type ExpressionAttributeValues added in v2.1.0

type ExpressionAttributeValues map[string]types.AttributeValue

ExpressionAttributeValues is a type that can apply ExpressionAttributeValues to the various input parameters.

func (ExpressionAttributeValues) ApplyToDeleteItemInput added in v2.1.0

func (values ExpressionAttributeValues) ApplyToDeleteItemInput(req *dynamodb.DeleteItemInput)

ApplyToDeleteItemInput applies the option to dynamodb.DeleteItemInput.

func (ExpressionAttributeValues) ApplyToPutItemInput added in v2.1.0

func (values ExpressionAttributeValues) ApplyToPutItemInput(req *dynamodb.PutItemInput)

ApplyToPutItemInput applies the option to dynamodb.PutItemInput.

func (ExpressionAttributeValues) ApplyToQueryInput added in v2.1.0

func (values ExpressionAttributeValues) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

func (ExpressionAttributeValues) ApplyToUpdateItemInput added in v2.1.0

func (values ExpressionAttributeValues) ApplyToUpdateItemInput(req *dynamodb.UpdateItemInput)

ApplyToUpdateItemInput applies the option to dynamodb.UpdateItemInput.

type FilterExpression added in v2.1.0

type FilterExpression string

FilterExpression is a type that can apply FilterExpression to the various input parameters.

func (*FilterExpression) ApplyToQueryInput added in v2.1.0

func (e *FilterExpression) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type GetItemInputOption added in v2.1.0

type GetItemInputOption interface {
	ApplyToGetItemInput(req *dynamodb.GetItemInput)
}

GetItemInputOption is an interface to apply an option to dynamodb.GetItemInputOption.

type Index

type Index string

Index is a type that can apply IndexName to the various input parameters.

func (Index) ApplyToQueryInput added in v2.1.0

func (i Index) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type KeyConditionExpression added in v2.1.0

type KeyConditionExpression string

KeyConditionExpression is a type that can apply KeyConditionExpression to the various input parameter.

func (*KeyConditionExpression) ApplyToQueryInput added in v2.1.0

func (e *KeyConditionExpression) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option appllies the option to dynamodb.QueryInput.

type Limit

type Limit int32

Limit is a type that can apply Limit to the various input parameters.

func (Limit) ApplyToQueryInput added in v2.1.0

func (l Limit) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type ProjectionExpression

type ProjectionExpression string

ProjectionExpression is type that can apply ProjectionExpression to the various input parameters.

func (*ProjectionExpression) ApplyToQueryInput added in v2.1.0

func (e *ProjectionExpression) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type PutItemInputOption added in v2.1.0

type PutItemInputOption interface {
	ApplyToPutItemInput(req *dynamodb.PutItemInput)
}

PutItemInputOption is an interface to apply an option to dynamodb.PutItemInput.

type QueryInputOption added in v2.1.0

type QueryInputOption interface {
	ApplyToQueryInput(req *dynamodb.QueryInput)
}

QueryInputOption is an interface to apply an option to dynamodb.QueryInput.

type ReturnValue added in v2.1.0

type ReturnValue types.ReturnValue

ReturnValue is an type that can apply ReturnValues to the various input parameters.

func (ReturnValue) ApplyToUpdateItemInput added in v2.1.0

func (v ReturnValue) ApplyToUpdateItemInput(req *dynamodb.UpdateItemInput)

ApplyToUpdateItemInput applies the option to dynamodb.UpdateItemInput.

type Reverse

type Reverse bool

Reverse is a type that can apply ScanIndexForward to the various input parameters.

If ScanIndexForward is true, DynamoDB returns the results in ascending order, by range key. This is the DynamoDB's default behavior.

If ScanIndexForward is false, DynamoDB returns the results in descending order, by range key.

If Reverse is true, it will set ScanIndexForward to false to get a reversed result.

func (Reverse) ApplyToQueryInput added in v2.1.0

func (r Reverse) ApplyToQueryInput(req *dynamodb.QueryInput)

ApplyToQueryInput applies the option to dynamodb.QueryInput.

type UpdateItemInputOption added in v2.1.0

type UpdateItemInputOption interface {
	ApplyToUpdateItemInput(req *dynamodb.UpdateItemInput)
}

UpdateItemInputOption is an interface to apply an option to dynamodb.UpdateItemInput.

func UpdateExpression

func UpdateExpression(expression *string) UpdateItemInputOption

UpdateExpression sets a update expression in dynamodb.UpdateItemInput. You should use `aws-sdk-go-v2/feature/dynamodb/expression` package to build expression.

Jump to

Keyboard shortcuts

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