Documentation ¶
Index ¶
- func MarshalFromMap(o map[string]interface{}) (map[string]AttributeValue, error)
- func MarshalToMap(in interface{}) (map[string]AttributeValue, error)
- func RawMarshal(in interface{}, structTag string) (*SDK.AttributeValue, error)
- func RawUnmarshalAttributeValues(items []map[string]SDK.AttributeValue, out interface{}) error
- func RawUnmarshalWithTagName(items []map[string]SDK.AttributeValue, out interface{}, structTag string) error
- func ToMapValue(o map[string]AttributeValue) map[string]interface{}
- func ToSliceMapValues(o []map[string]SDK.AttributeValue) []map[string]interface{}
- type ArchivalSummary
- type AttributeDefinition
- type AttributeValue
- type BatchGetItemRequest
- type BatchGetItemResult
- type BatchWriteItemRequest
- type BatchWriteItemResult
- type BillingMode
- type BillingModeSummary
- type Capacity
- type ComparisonOperator
- func (v ComparisonOperator) IsBeginsWith() bool
- func (v ComparisonOperator) IsBetween() bool
- func (v ComparisonOperator) IsContains() bool
- func (v ComparisonOperator) IsEq() bool
- func (v ComparisonOperator) IsGe() bool
- func (v ComparisonOperator) IsGt() bool
- func (v ComparisonOperator) IsIn() bool
- func (v ComparisonOperator) IsLe() bool
- func (v ComparisonOperator) IsLt() bool
- func (v ComparisonOperator) IsNe() bool
- func (v ComparisonOperator) IsNotContains() bool
- func (v ComparisonOperator) IsNotNull() bool
- func (v ComparisonOperator) IsNull() bool
- type Condition
- type ConditionalOperator
- type ConsumedCapacity
- type CreateTableRequest
- type CreateTableResult
- type DeleteTableRequest
- type DeleteTableResult
- type DescribeTableRequest
- type DescribeTableResult
- type DynamoDB
- func (svc *DynamoDB) BatchGetItem(ctx context.Context, r BatchGetItemRequest) (*BatchGetItemResult, error)
- func (svc *DynamoDB) BatchWriteItem(ctx context.Context, r BatchWriteItemRequest) (*BatchWriteItemResult, error)
- func (svc *DynamoDB) CreateTable(ctx context.Context, r CreateTableRequest) (*CreateTableResult, error)
- func (svc *DynamoDB) DeleteTable(ctx context.Context, r DeleteTableRequest) (*DeleteTableResult, error)
- func (svc *DynamoDB) DescribeTable(ctx context.Context, r DescribeTableRequest) (*DescribeTableResult, error)
- func (svc *DynamoDB) Errorf(format string, v ...interface{})
- func (svc *DynamoDB) GetClient() *SDK.Client
- func (svc *DynamoDB) GetItem(ctx context.Context, r GetItemRequest) (*GetItemResult, error)
- func (svc *DynamoDB) Infof(format string, v ...interface{})
- func (svc *DynamoDB) PutItem(ctx context.Context, r PutItemRequest) (*PutItemResult, error)
- func (svc *DynamoDB) Query(ctx context.Context, r QueryRequest) (*QueryResult, error)
- func (svc *DynamoDB) RawBatchGetItem(ctx context.Context, in *SDK.BatchGetItemInput) (*SDK.BatchGetItemResponse, error)
- func (svc *DynamoDB) RawBatchWriteItem(ctx context.Context, in *SDK.BatchWriteItemInput) (*SDK.BatchWriteItemResponse, error)
- func (svc *DynamoDB) RawCreateBackup(ctx context.Context, in *SDK.CreateBackupInput) (*SDK.CreateBackupResponse, error)
- func (svc *DynamoDB) RawCreateGlobalTable(ctx context.Context, in *SDK.CreateGlobalTableInput) (*SDK.CreateGlobalTableResponse, error)
- func (svc *DynamoDB) RawCreateTable(ctx context.Context, in *SDK.CreateTableInput) (*SDK.CreateTableResponse, error)
- func (svc *DynamoDB) RawDeleteBackup(ctx context.Context, in *SDK.DeleteBackupInput) (*SDK.DeleteBackupResponse, error)
- func (svc *DynamoDB) RawDeleteItem(ctx context.Context, in *SDK.DeleteItemInput) (*SDK.DeleteItemResponse, error)
- func (svc *DynamoDB) RawDeleteTable(ctx context.Context, in *SDK.DeleteTableInput) (*SDK.DeleteTableResponse, error)
- func (svc *DynamoDB) RawDescribeBackup(ctx context.Context, in *SDK.DescribeBackupInput) (*SDK.DescribeBackupResponse, error)
- func (svc *DynamoDB) RawDescribeContinuousBackups(ctx context.Context, in *SDK.DescribeContinuousBackupsInput) (*SDK.DescribeContinuousBackupsResponse, error)
- func (svc *DynamoDB) RawDescribeContributorInsights(ctx context.Context, in *SDK.DescribeContributorInsightsInput) (*SDK.DescribeContributorInsightsResponse, error)
- func (svc *DynamoDB) RawDescribeEndpoints(ctx context.Context, in *SDK.DescribeEndpointsInput) (*SDK.DescribeEndpointsResponse, error)
- func (svc *DynamoDB) RawDescribeGlobalTable(ctx context.Context, in *SDK.DescribeGlobalTableInput) (*SDK.DescribeGlobalTableResponse, error)
- func (svc *DynamoDB) RawDescribeGlobalTableSettings(ctx context.Context, in *SDK.DescribeGlobalTableSettingsInput) (*SDK.DescribeGlobalTableSettingsResponse, error)
- func (svc *DynamoDB) RawDescribeLimits(ctx context.Context, in *SDK.DescribeLimitsInput) (*SDK.DescribeLimitsResponse, error)
- func (svc *DynamoDB) RawDescribeTable(ctx context.Context, in *SDK.DescribeTableInput) (*SDK.DescribeTableResponse, error)
- func (svc *DynamoDB) RawDescribeTableReplicaAutoScaling(ctx context.Context, in *SDK.DescribeTableReplicaAutoScalingInput) (*SDK.DescribeTableReplicaAutoScalingResponse, error)
- func (svc *DynamoDB) RawDescribeTimeToLive(ctx context.Context, in *SDK.DescribeTimeToLiveInput) (*SDK.DescribeTimeToLiveResponse, error)
- func (svc *DynamoDB) RawGetItem(ctx context.Context, in *SDK.GetItemInput) (*SDK.GetItemResponse, error)
- func (svc *DynamoDB) RawListBackups(ctx context.Context, in *SDK.ListBackupsInput) (*SDK.ListBackupsResponse, error)
- func (svc *DynamoDB) RawListContributorInsights(ctx context.Context, in *SDK.ListContributorInsightsInput) (*SDK.ListContributorInsightsResponse, error)
- func (svc *DynamoDB) RawListGlobalTables(ctx context.Context, in *SDK.ListGlobalTablesInput) (*SDK.ListGlobalTablesResponse, error)
- func (svc *DynamoDB) RawListTables(ctx context.Context, in *SDK.ListTablesInput) (*SDK.ListTablesResponse, error)
- func (svc *DynamoDB) RawListTagsOfResource(ctx context.Context, in *SDK.ListTagsOfResourceInput) (*SDK.ListTagsOfResourceResponse, error)
- func (svc *DynamoDB) RawPutItem(ctx context.Context, in *SDK.PutItemInput) (*SDK.PutItemResponse, error)
- func (svc *DynamoDB) RawQuery(ctx context.Context, in *SDK.QueryInput) (*SDK.QueryResponse, error)
- func (svc *DynamoDB) RawRestoreTableFromBackup(ctx context.Context, in *SDK.RestoreTableFromBackupInput) (*SDK.RestoreTableFromBackupResponse, error)
- func (svc *DynamoDB) RawRestoreTableToPointInTime(ctx context.Context, in *SDK.RestoreTableToPointInTimeInput) (*SDK.RestoreTableToPointInTimeResponse, error)
- func (svc *DynamoDB) RawScan(ctx context.Context, in *SDK.ScanInput) (*SDK.ScanResponse, error)
- func (svc *DynamoDB) RawTagResource(ctx context.Context, in *SDK.TagResourceInput) (*SDK.TagResourceResponse, error)
- func (svc *DynamoDB) RawTransactGetItems(ctx context.Context, in *SDK.TransactGetItemsInput) (*SDK.TransactGetItemsResponse, error)
- func (svc *DynamoDB) RawTransactWriteItems(ctx context.Context, in *SDK.TransactWriteItemsInput) (*SDK.TransactWriteItemsResponse, error)
- func (svc *DynamoDB) RawUntagResource(ctx context.Context, in *SDK.UntagResourceInput) (*SDK.UntagResourceResponse, error)
- func (svc *DynamoDB) RawUpdateContinuousBackups(ctx context.Context, in *SDK.UpdateContinuousBackupsInput) (*SDK.UpdateContinuousBackupsResponse, error)
- func (svc *DynamoDB) RawUpdateContributorInsights(ctx context.Context, in *SDK.UpdateContributorInsightsInput) (*SDK.UpdateContributorInsightsResponse, error)
- func (svc *DynamoDB) RawUpdateGlobalTable(ctx context.Context, in *SDK.UpdateGlobalTableInput) (*SDK.UpdateGlobalTableResponse, error)
- func (svc *DynamoDB) RawUpdateGlobalTableSettings(ctx context.Context, in *SDK.UpdateGlobalTableSettingsInput) (*SDK.UpdateGlobalTableSettingsResponse, error)
- func (svc *DynamoDB) RawUpdateItem(ctx context.Context, in *SDK.UpdateItemInput) (*SDK.UpdateItemResponse, error)
- func (svc *DynamoDB) RawUpdateTable(ctx context.Context, in *SDK.UpdateTableInput) (*SDK.UpdateTableResponse, error)
- func (svc *DynamoDB) RawUpdateTableReplicaAutoScaling(ctx context.Context, in *SDK.UpdateTableReplicaAutoScalingInput) (*SDK.UpdateTableReplicaAutoScalingResponse, error)
- func (svc *DynamoDB) RawUpdateTimeToLive(ctx context.Context, in *SDK.UpdateTimeToLiveInput) (*SDK.UpdateTimeToLiveResponse, error)
- func (svc *DynamoDB) Scan(ctx context.Context, r ScanRequest) (*ScanResult, error)
- func (svc *DynamoDB) SetLogger(logger log.Logger)
- func (svc *DynamoDB) UpdateItem(ctx context.Context, r UpdateItemRequest) (*UpdateItemResult, error)
- func (svc *DynamoDB) XBatchDeleteItems(ctx context.Context, req XBatchDeleteItemRequest) error
- func (svc *DynamoDB) XDeleteTableFromName(ctx context.Context, name string) error
- func (svc *DynamoDB) XExistTable(ctx context.Context, name string) (bool, error)
- func (svc *DynamoDB) XForceDeleteAll(ctx context.Context, tableName string) error
- func (svc *DynamoDB) XGetSingleItem(ctx context.Context, in XGetSingleItemRequest) (map[string]AttributeValue, error)
- type ExpectedAttributeValue
- type GetItemRequest
- type GetItemResult
- type GlobalSecondaryIndex
- type GlobalSecondaryIndexDescription
- type IndexStatus
- type ItemCollectionMetrics
- type KeySchemaElement
- type KeyType
- type KeysAndAttributes
- type LocalSecondaryIndex
- type LocalSecondaryIndexDescription
- type OperationMode
- type Projection
- type ProjectionType
- type ProvisionedThroughput
- type ProvisionedThroughputDescription
- type PutItemRequest
- type PutItemResult
- type QueryRequest
- type QueryResult
- type ReplicaDescription
- type ReplicaGlobalSecondaryIndexDescription
- type ReplicaStatus
- type RestoreSummary
- type ReturnConsumedCapacity
- type ReturnItemCollectionMetrics
- type ReturnValue
- type SSEDescription
- type SSESpecification
- type SSEStatus
- type SSEType
- type ScalarAttributeType
- type ScanRequest
- type ScanResult
- type Select
- type SetType
- type StreamSpecification
- type StreamViewType
- type TableDescription
- type TableStatus
- type Tag
- type UpdateItemRequest
- type UpdateItemResult
- type WriteRequest
- type XBatchDeleteItem
- type XBatchDeleteItemRequest
- type XCondition
- type XConditions
- type XGetSingleItemRequest
- type XUpdateCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalFromMap ¶
func MarshalFromMap(o map[string]interface{}) (map[string]AttributeValue, error)
MarshalFromMap converts result AttributeValue to slice of map values.
func MarshalToMap ¶
func MarshalToMap(in interface{}) (map[string]AttributeValue, error)
MarshalToMap converts result AttributeValue to map values.
func RawMarshal ¶
func RawMarshal(in interface{}, structTag string) (*SDK.AttributeValue, error)
func RawUnmarshalAttributeValues ¶
func RawUnmarshalAttributeValues(items []map[string]SDK.AttributeValue, out interface{}) error
Unmarshal unmarshals given slice pointer sturct from DynamoDB item result to mapping.
e.g. err = Unmarshal(&[]*yourStruct)
The struct tag `dynamodb:""` is used to unmarshal.
func RawUnmarshalWithTagName ¶
func RawUnmarshalWithTagName(items []map[string]SDK.AttributeValue, out interface{}, structTag string) error
RawUnmarshalWithTagName unmarshals given slice pointer sturct and tag name from DynamoDB item result to mapping.
func ToMapValue ¶
func ToMapValue(o map[string]AttributeValue) map[string]interface{}
ToMapValue converts result AttributeValue to map value.
func ToSliceMapValues ¶
func ToSliceMapValues(o []map[string]SDK.AttributeValue) []map[string]interface{}
ToSliceMapValues converts result AttributeValue to slice of map values.
Types ¶
type ArchivalSummary ¶
type AttributeDefinition ¶
type AttributeDefinition struct { AttributeName string AttributeType ScalarAttributeType }
func (AttributeDefinition) ToSDK ¶
func (r AttributeDefinition) ToSDK() SDK.AttributeDefinition
type AttributeValue ¶
type AttributeValue struct { Binary []byte BinarySet [][]byte List []AttributeValue Map map[string]AttributeValue Number string NumberInt int64 NumberFloat float64 NumberSet []string NumberSetInt []int64 NumberSetFloat []float64 Null bool String string StringSet []string Bool bool HasBool bool HasNumber bool }
func MarshalToList ¶
func MarshalToList(in interface{}) ([]AttributeValue, error)
MarshalToMap converts result AttributeValue to list values.
func MustNewAttributeValue ¶ added in v0.1.2
func MustNewAttributeValue(v interface{}) AttributeValue
MustNewAttributeValue creates AttributeValue from given value, or emits panic.
func NewAttributeValue ¶ added in v0.1.2
func NewAttributeValue(v interface{}) (AttributeValue, error)
NewAttributeValue creates AttributeValue from given value.
func (AttributeValue) GetValue ¶ added in v0.0.4
func (r AttributeValue) GetValue() interface{}
func (AttributeValue) ToSDK ¶
func (r AttributeValue) ToSDK() SDK.AttributeValue
type BatchGetItemRequest ¶
type BatchGetItemRequest struct { RequestItems map[string]KeysAndAttributes // optional ReturnConsumedCapacity ReturnConsumedCapacity }
BatchGetItemRequest has parameters for `BatchGetItem` operation.
func (BatchGetItemRequest) ToInput ¶
func (r BatchGetItemRequest) ToInput() *SDK.BatchGetItemInput
type BatchGetItemResult ¶
type BatchGetItemResult struct { ConsumedCapacity []ConsumedCapacity Responses map[string][]map[string]SDK.AttributeValue // keep original type to reduce unmarshal cost UnprocessedKeys map[string]KeysAndAttributes }
BatchGetItemResult contains results from `BatchGetItem` operation.
func NewBatchGetItemResult ¶
func NewBatchGetItemResult(output *SDK.BatchGetItemResponse) *BatchGetItemResult
func (BatchGetItemResult) ToSliceMap ¶
func (r BatchGetItemResult) ToSliceMap(tableName string) ([]map[string]interface{}, error)
func (BatchGetItemResult) Unmarshal ¶
func (r BatchGetItemResult) Unmarshal(tableName string, out interface{}) error
type BatchWriteItemRequest ¶
type BatchWriteItemRequest struct { RequestItems map[string][]WriteRequest // optional ReturnConsumedCapacity ReturnConsumedCapacity ReturnItemCollectionMetrics ReturnItemCollectionMetrics }
BatchWriteItemRequest has parameters for `BatchWriteItem` operation.
func (BatchWriteItemRequest) ToInput ¶
func (r BatchWriteItemRequest) ToInput() *SDK.BatchWriteItemInput
type BatchWriteItemResult ¶
type BatchWriteItemResult struct { ConsumedCapacity []ConsumedCapacity ItemCollectionMetrics map[string][]ItemCollectionMetrics UnprocessedItems map[string][]WriteRequest }
BatchWriteItemResult contains results from `BatchWriteItem` operation.
func NewBatchWriteItemResult ¶
func NewBatchWriteItemResult(output *SDK.BatchWriteItemResponse) *BatchWriteItemResult
type BillingMode ¶
type BillingMode string
const ( BillingModeProvisioned BillingMode = BillingMode(SDK.BillingModeProvisioned) BillingModePayPerRequest BillingMode = BillingMode(SDK.BillingModePayPerRequest) )
func (BillingMode) IsPayPerRequest ¶
func (v BillingMode) IsPayPerRequest() bool
func (BillingMode) IsProvisioned ¶
func (v BillingMode) IsProvisioned() bool
type BillingModeSummary ¶
type BillingModeSummary struct { BillingMode BillingMode LastUpdateToPayPerRequestDateTime time.Time }
type ComparisonOperator ¶
type ComparisonOperator string
const ( ComparisonOperatorEq ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorEq) ComparisonOperatorNe ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorNe) ComparisonOperatorIn ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorIn) ComparisonOperatorLe ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorLe) ComparisonOperatorLt ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorLt) ComparisonOperatorGe ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorGe) ComparisonOperatorGt ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorGt) ComparisonOperatorBetween ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorBetween) ComparisonOperatorNotNull ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorNotNull) ComparisonOperatorNull ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorNull) ComparisonOperatorContains ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorContains) ComparisonOperatorNotContains ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorNotContains) ComparisonOperatorBeginsWith ComparisonOperator = ComparisonOperator(SDK.ComparisonOperatorBeginsWith) // for expression condition ComparisonOperatorAttrExists = ComparisonOperator("ATTR_EXISTS") ComparisonOperatorAttrNotExists = ComparisonOperator("ATTR_NOT_EXISTS") ComparisonOperatorAttrType = ComparisonOperator("ATTR_TYPE") )
func (ComparisonOperator) IsBeginsWith ¶
func (v ComparisonOperator) IsBeginsWith() bool
func (ComparisonOperator) IsBetween ¶
func (v ComparisonOperator) IsBetween() bool
func (ComparisonOperator) IsContains ¶
func (v ComparisonOperator) IsContains() bool
func (ComparisonOperator) IsEq ¶
func (v ComparisonOperator) IsEq() bool
func (ComparisonOperator) IsGe ¶
func (v ComparisonOperator) IsGe() bool
func (ComparisonOperator) IsGt ¶
func (v ComparisonOperator) IsGt() bool
func (ComparisonOperator) IsIn ¶
func (v ComparisonOperator) IsIn() bool
func (ComparisonOperator) IsLe ¶
func (v ComparisonOperator) IsLe() bool
func (ComparisonOperator) IsLt ¶
func (v ComparisonOperator) IsLt() bool
func (ComparisonOperator) IsNe ¶
func (v ComparisonOperator) IsNe() bool
func (ComparisonOperator) IsNotContains ¶
func (v ComparisonOperator) IsNotContains() bool
func (ComparisonOperator) IsNotNull ¶
func (v ComparisonOperator) IsNotNull() bool
func (ComparisonOperator) IsNull ¶
func (v ComparisonOperator) IsNull() bool
type Condition ¶
type Condition struct { ComparisonOperator ComparisonOperator // optional AttributeValueList []AttributeValue }
type ConditionalOperator ¶
type ConditionalOperator string
const ( ConditionalOperatorAnd ConditionalOperator = ConditionalOperator(SDK.ConditionalOperatorAnd) ConditionalOperatorOr ConditionalOperator = ConditionalOperator(SDK.ConditionalOperatorOr) )
func (ConditionalOperator) IsAnd ¶
func (v ConditionalOperator) IsAnd() bool
func (ConditionalOperator) IsOr ¶
func (v ConditionalOperator) IsOr() bool
type ConsumedCapacity ¶
type CreateTableRequest ¶
type CreateTableRequest struct { TableName string AttributeDefinitions []AttributeDefinition KeySchema []KeySchemaElement // optional BillingMode BillingMode GlobalSecondaryIndexes []GlobalSecondaryIndex LocalSecondaryIndexes []LocalSecondaryIndex ProvisionedThroughput ProvisionedThroughput SSESpecification SSESpecification StreamSpecification StreamSpecification Tags []Tag }
CreateTableRequest has parameters for `CreateTable` operation.
func (CreateTableRequest) ToInput ¶
func (r CreateTableRequest) ToInput() *SDK.CreateTableInput
type CreateTableResult ¶
type CreateTableResult struct {
TableDescription TableDescription
}
CreateTableResult contains results from `CreateTable` operation.
func NewCreateTableResult ¶
func NewCreateTableResult(output *SDK.CreateTableResponse) *CreateTableResult
type DeleteTableRequest ¶
type DeleteTableRequest struct {
TableName string
}
DeleteTableRequest has parameters for `DeleteTable` operation.
func (DeleteTableRequest) ToInput ¶
func (r DeleteTableRequest) ToInput() *SDK.DeleteTableInput
type DeleteTableResult ¶
type DeleteTableResult struct {
TableDescription TableDescription
}
DeleteTableResult contains results from `DeleteTable` operation.
func NewDeleteTableResult ¶
func NewDeleteTableResult(output *SDK.DeleteTableResponse) *DeleteTableResult
type DescribeTableRequest ¶
type DescribeTableRequest struct {
TableName string
}
DescribeTableRequest has parameters for `DescribeTable` operation.
func (DescribeTableRequest) ToInput ¶
func (r DescribeTableRequest) ToInput() *SDK.DescribeTableInput
type DescribeTableResult ¶
type DescribeTableResult struct {
Table TableDescription
}
DescribeTableResult contains results from `DescribeTable` operation.
func NewDescribeTableResult ¶
func NewDescribeTableResult(output *SDK.DescribeTableResponse) *DescribeTableResult
type DynamoDB ¶
type DynamoDB struct {
// contains filtered or unexported fields
}
DynamoDB has DynamoDB client.
func (*DynamoDB) BatchGetItem ¶
func (svc *DynamoDB) BatchGetItem(ctx context.Context, r BatchGetItemRequest) (*BatchGetItemResult, error)
BatchGetItem executes `BatchGetItem` operation.
func (*DynamoDB) BatchWriteItem ¶
func (svc *DynamoDB) BatchWriteItem(ctx context.Context, r BatchWriteItemRequest) (*BatchWriteItemResult, error)
BatchWriteItem executes `BatchWriteItem` operation.
func (*DynamoDB) CreateTable ¶
func (svc *DynamoDB) CreateTable(ctx context.Context, r CreateTableRequest) (*CreateTableResult, error)
CreateTable executes `CreateTable` operation.
func (*DynamoDB) DeleteTable ¶
func (svc *DynamoDB) DeleteTable(ctx context.Context, r DeleteTableRequest) (*DeleteTableResult, error)
DeleteTable executes `DeleteTable` operation.
func (*DynamoDB) DescribeTable ¶
func (svc *DynamoDB) DescribeTable(ctx context.Context, r DescribeTableRequest) (*DescribeTableResult, error)
DescribeTable executes `DescribeTable` operation.
func (*DynamoDB) GetItem ¶
func (svc *DynamoDB) GetItem(ctx context.Context, r GetItemRequest) (*GetItemResult, error)
GetItem executes `GetItem` operation.
func (*DynamoDB) PutItem ¶
func (svc *DynamoDB) PutItem(ctx context.Context, r PutItemRequest) (*PutItemResult, error)
PutItem executes `PutItem` operation.
func (*DynamoDB) Query ¶
func (svc *DynamoDB) Query(ctx context.Context, r QueryRequest) (*QueryResult, error)
Query executes `Query` operation.
func (*DynamoDB) RawBatchGetItem ¶
func (svc *DynamoDB) RawBatchGetItem(ctx context.Context, in *SDK.BatchGetItemInput) (*SDK.BatchGetItemResponse, error)
RawBatchGetItem executes `BatchGetItem` raw operation.
func (*DynamoDB) RawBatchWriteItem ¶
func (svc *DynamoDB) RawBatchWriteItem(ctx context.Context, in *SDK.BatchWriteItemInput) (*SDK.BatchWriteItemResponse, error)
RawBatchWriteItem executes `BatchWriteItem` raw operation.
func (*DynamoDB) RawCreateBackup ¶
func (svc *DynamoDB) RawCreateBackup(ctx context.Context, in *SDK.CreateBackupInput) (*SDK.CreateBackupResponse, error)
RawCreateBackup executes `CreateBackup` raw operation.
func (*DynamoDB) RawCreateGlobalTable ¶
func (svc *DynamoDB) RawCreateGlobalTable(ctx context.Context, in *SDK.CreateGlobalTableInput) (*SDK.CreateGlobalTableResponse, error)
RawCreateGlobalTable executes `CreateGlobalTable` raw operation.
func (*DynamoDB) RawCreateTable ¶
func (svc *DynamoDB) RawCreateTable(ctx context.Context, in *SDK.CreateTableInput) (*SDK.CreateTableResponse, error)
RawCreateTable executes `CreateTable` raw operation.
func (*DynamoDB) RawDeleteBackup ¶
func (svc *DynamoDB) RawDeleteBackup(ctx context.Context, in *SDK.DeleteBackupInput) (*SDK.DeleteBackupResponse, error)
RawDeleteBackup executes `DeleteBackup` raw operation.
func (*DynamoDB) RawDeleteItem ¶
func (svc *DynamoDB) RawDeleteItem(ctx context.Context, in *SDK.DeleteItemInput) (*SDK.DeleteItemResponse, error)
RawDeleteItem executes `DeleteItem` raw operation.
func (*DynamoDB) RawDeleteTable ¶
func (svc *DynamoDB) RawDeleteTable(ctx context.Context, in *SDK.DeleteTableInput) (*SDK.DeleteTableResponse, error)
RawDeleteTable executes `DeleteTable` raw operation.
func (*DynamoDB) RawDescribeBackup ¶
func (svc *DynamoDB) RawDescribeBackup(ctx context.Context, in *SDK.DescribeBackupInput) (*SDK.DescribeBackupResponse, error)
RawDescribeBackup executes `DescribeBackup` raw operation.
func (*DynamoDB) RawDescribeContinuousBackups ¶
func (svc *DynamoDB) RawDescribeContinuousBackups(ctx context.Context, in *SDK.DescribeContinuousBackupsInput) (*SDK.DescribeContinuousBackupsResponse, error)
RawDescribeContinuousBackups executes `DescribeContinuousBackups` raw operation.
func (*DynamoDB) RawDescribeContributorInsights ¶
func (svc *DynamoDB) RawDescribeContributorInsights(ctx context.Context, in *SDK.DescribeContributorInsightsInput) (*SDK.DescribeContributorInsightsResponse, error)
RawDescribeContributorInsights executes `DescribeContributorInsights` raw operation.
func (*DynamoDB) RawDescribeEndpoints ¶
func (svc *DynamoDB) RawDescribeEndpoints(ctx context.Context, in *SDK.DescribeEndpointsInput) (*SDK.DescribeEndpointsResponse, error)
RawDescribeEndpoints executes `DescribeEndpoints` raw operation.
func (*DynamoDB) RawDescribeGlobalTable ¶
func (svc *DynamoDB) RawDescribeGlobalTable(ctx context.Context, in *SDK.DescribeGlobalTableInput) (*SDK.DescribeGlobalTableResponse, error)
RawDescribeGlobalTable executes `DescribeGlobalTable` raw operation.
func (*DynamoDB) RawDescribeGlobalTableSettings ¶
func (svc *DynamoDB) RawDescribeGlobalTableSettings(ctx context.Context, in *SDK.DescribeGlobalTableSettingsInput) (*SDK.DescribeGlobalTableSettingsResponse, error)
RawDescribeGlobalTableSettings executes `DescribeGlobalTableSettings` raw operation.
func (*DynamoDB) RawDescribeLimits ¶
func (svc *DynamoDB) RawDescribeLimits(ctx context.Context, in *SDK.DescribeLimitsInput) (*SDK.DescribeLimitsResponse, error)
RawDescribeLimits executes `DescribeLimits` raw operation.
func (*DynamoDB) RawDescribeTable ¶
func (svc *DynamoDB) RawDescribeTable(ctx context.Context, in *SDK.DescribeTableInput) (*SDK.DescribeTableResponse, error)
RawDescribeTable executes `DescribeTable` raw operation.
func (*DynamoDB) RawDescribeTableReplicaAutoScaling ¶
func (svc *DynamoDB) RawDescribeTableReplicaAutoScaling(ctx context.Context, in *SDK.DescribeTableReplicaAutoScalingInput) (*SDK.DescribeTableReplicaAutoScalingResponse, error)
RawDescribeTableReplicaAutoScaling executes `DescribeTableReplicaAutoScaling` raw operation.
func (*DynamoDB) RawDescribeTimeToLive ¶
func (svc *DynamoDB) RawDescribeTimeToLive(ctx context.Context, in *SDK.DescribeTimeToLiveInput) (*SDK.DescribeTimeToLiveResponse, error)
RawDescribeTimeToLive executes `DescribeTimeToLive` raw operation.
func (*DynamoDB) RawGetItem ¶
func (svc *DynamoDB) RawGetItem(ctx context.Context, in *SDK.GetItemInput) (*SDK.GetItemResponse, error)
RawGetItem executes `GetItem` raw operation.
func (*DynamoDB) RawListBackups ¶
func (svc *DynamoDB) RawListBackups(ctx context.Context, in *SDK.ListBackupsInput) (*SDK.ListBackupsResponse, error)
RawListBackups executes `ListBackups` raw operation.
func (*DynamoDB) RawListContributorInsights ¶
func (svc *DynamoDB) RawListContributorInsights(ctx context.Context, in *SDK.ListContributorInsightsInput) (*SDK.ListContributorInsightsResponse, error)
RawListContributorInsights executes `ListContributorInsights` raw operation.
func (*DynamoDB) RawListGlobalTables ¶
func (svc *DynamoDB) RawListGlobalTables(ctx context.Context, in *SDK.ListGlobalTablesInput) (*SDK.ListGlobalTablesResponse, error)
RawListGlobalTables executes `ListGlobalTables` raw operation.
func (*DynamoDB) RawListTables ¶
func (svc *DynamoDB) RawListTables(ctx context.Context, in *SDK.ListTablesInput) (*SDK.ListTablesResponse, error)
RawListTables executes `ListTables` raw operation.
func (*DynamoDB) RawListTagsOfResource ¶
func (svc *DynamoDB) RawListTagsOfResource(ctx context.Context, in *SDK.ListTagsOfResourceInput) (*SDK.ListTagsOfResourceResponse, error)
RawListTagsOfResource executes `ListTagsOfResource` raw operation.
func (*DynamoDB) RawPutItem ¶
func (svc *DynamoDB) RawPutItem(ctx context.Context, in *SDK.PutItemInput) (*SDK.PutItemResponse, error)
RawPutItem executes `PutItem` raw operation.
func (*DynamoDB) RawQuery ¶
func (svc *DynamoDB) RawQuery(ctx context.Context, in *SDK.QueryInput) (*SDK.QueryResponse, error)
RawQuery executes `Query` raw operation.
func (*DynamoDB) RawRestoreTableFromBackup ¶
func (svc *DynamoDB) RawRestoreTableFromBackup(ctx context.Context, in *SDK.RestoreTableFromBackupInput) (*SDK.RestoreTableFromBackupResponse, error)
RawRestoreTableFromBackup executes `RestoreTableFromBackup` raw operation.
func (*DynamoDB) RawRestoreTableToPointInTime ¶
func (svc *DynamoDB) RawRestoreTableToPointInTime(ctx context.Context, in *SDK.RestoreTableToPointInTimeInput) (*SDK.RestoreTableToPointInTimeResponse, error)
RawRestoreTableToPointInTime executes `RestoreTableToPointInTime` raw operation.
func (*DynamoDB) RawTagResource ¶
func (svc *DynamoDB) RawTagResource(ctx context.Context, in *SDK.TagResourceInput) (*SDK.TagResourceResponse, error)
RawTagResource executes `TagResource` raw operation.
func (*DynamoDB) RawTransactGetItems ¶
func (svc *DynamoDB) RawTransactGetItems(ctx context.Context, in *SDK.TransactGetItemsInput) (*SDK.TransactGetItemsResponse, error)
RawTransactGetItems executes `TransactGetItems` raw operation.
func (*DynamoDB) RawTransactWriteItems ¶
func (svc *DynamoDB) RawTransactWriteItems(ctx context.Context, in *SDK.TransactWriteItemsInput) (*SDK.TransactWriteItemsResponse, error)
RawTransactWriteItems executes `TransactWriteItems` raw operation.
func (*DynamoDB) RawUntagResource ¶
func (svc *DynamoDB) RawUntagResource(ctx context.Context, in *SDK.UntagResourceInput) (*SDK.UntagResourceResponse, error)
RawUntagResource executes `UntagResource` raw operation.
func (*DynamoDB) RawUpdateContinuousBackups ¶
func (svc *DynamoDB) RawUpdateContinuousBackups(ctx context.Context, in *SDK.UpdateContinuousBackupsInput) (*SDK.UpdateContinuousBackupsResponse, error)
RawUpdateContinuousBackups executes `UpdateContinuousBackups` raw operation.
func (*DynamoDB) RawUpdateContributorInsights ¶
func (svc *DynamoDB) RawUpdateContributorInsights(ctx context.Context, in *SDK.UpdateContributorInsightsInput) (*SDK.UpdateContributorInsightsResponse, error)
RawUpdateContributorInsights executes `UpdateContributorInsights` raw operation.
func (*DynamoDB) RawUpdateGlobalTable ¶
func (svc *DynamoDB) RawUpdateGlobalTable(ctx context.Context, in *SDK.UpdateGlobalTableInput) (*SDK.UpdateGlobalTableResponse, error)
RawUpdateGlobalTable executes `UpdateGlobalTable` raw operation.
func (*DynamoDB) RawUpdateGlobalTableSettings ¶
func (svc *DynamoDB) RawUpdateGlobalTableSettings(ctx context.Context, in *SDK.UpdateGlobalTableSettingsInput) (*SDK.UpdateGlobalTableSettingsResponse, error)
RawUpdateGlobalTableSettings executes `UpdateGlobalTableSettings` raw operation.
func (*DynamoDB) RawUpdateItem ¶
func (svc *DynamoDB) RawUpdateItem(ctx context.Context, in *SDK.UpdateItemInput) (*SDK.UpdateItemResponse, error)
RawUpdateItem executes `UpdateItem` raw operation.
func (*DynamoDB) RawUpdateTable ¶
func (svc *DynamoDB) RawUpdateTable(ctx context.Context, in *SDK.UpdateTableInput) (*SDK.UpdateTableResponse, error)
RawUpdateTable executes `UpdateTable` raw operation.
func (*DynamoDB) RawUpdateTableReplicaAutoScaling ¶
func (svc *DynamoDB) RawUpdateTableReplicaAutoScaling(ctx context.Context, in *SDK.UpdateTableReplicaAutoScalingInput) (*SDK.UpdateTableReplicaAutoScalingResponse, error)
RawUpdateTableReplicaAutoScaling executes `UpdateTableReplicaAutoScaling` raw operation.
func (*DynamoDB) RawUpdateTimeToLive ¶
func (svc *DynamoDB) RawUpdateTimeToLive(ctx context.Context, in *SDK.UpdateTimeToLiveInput) (*SDK.UpdateTimeToLiveResponse, error)
RawUpdateTimeToLive executes `UpdateTimeToLive` raw operation.
func (*DynamoDB) Scan ¶ added in v0.0.5
func (svc *DynamoDB) Scan(ctx context.Context, r ScanRequest) (*ScanResult, error)
Scan executes `Scan` operation.
func (*DynamoDB) UpdateItem ¶ added in v0.0.4
func (svc *DynamoDB) UpdateItem(ctx context.Context, r UpdateItemRequest) (*UpdateItemResult, error)
UpdateItem executes `UpdateItem` operation.
func (*DynamoDB) XBatchDeleteItems ¶ added in v0.1.0
func (svc *DynamoDB) XBatchDeleteItems(ctx context.Context, req XBatchDeleteItemRequest) error
XBatchDeleteItems deletes multiple items using 'BatchWriteItems'.
func (*DynamoDB) XDeleteTableFromName ¶ added in v0.1.0
XDeleteTableFromName deletes a table of `name`.
func (*DynamoDB) XExistTable ¶ added in v0.1.0
XExistTable checks if the table already exists or not.
func (*DynamoDB) XForceDeleteAll ¶ added in v0.1.0
XForceDeleteAll deletes all data in the table. This performs scan all item and delete it via 'BatchWriteItem'. For big tables, consider using 'DeleteTable' instead.
func (*DynamoDB) XGetSingleItem ¶ added in v0.1.0
func (svc *DynamoDB) XGetSingleItem(ctx context.Context, in XGetSingleItemRequest) (map[string]AttributeValue, error)
XGetSingleItem gets single item.
type ExpectedAttributeValue ¶
type ExpectedAttributeValue struct { AttributeValueList []AttributeValue `type:"list"` ComparisonOperator ComparisonOperator `type:"string" enum:"true"` Exists bool `type:"boolean"` Value AttributeValue `type:"structure"` }
func (ExpectedAttributeValue) ToSDK ¶
func (r ExpectedAttributeValue) ToSDK() SDK.ExpectedAttributeValue
type GetItemRequest ¶
type GetItemRequest struct { TableName string Key map[string]AttributeValue // optional AttributesToGet []string ConsistentRead bool ExpressionAttributeNames map[string]string ProjectionExpression string ReturnConsumedCapacity ReturnConsumedCapacity }
GetItemRequest has parameters for `GetItem` operation.
func (GetItemRequest) ToInput ¶
func (r GetItemRequest) ToInput() *SDK.GetItemInput
type GetItemResult ¶
type GetItemResult struct { ConsumedCapacity ConsumedCapacity Item map[string]AttributeValue }
GetItemResult contains results from `GetItem` operation.
func NewGetItemResult ¶
func NewGetItemResult(output *SDK.GetItemResponse) *GetItemResult
type GlobalSecondaryIndex ¶
type GlobalSecondaryIndex struct { IndexName string KeySchema []KeySchemaElement Projection Projection // optional ProvisionedThroughput ProvisionedThroughput }
func (GlobalSecondaryIndex) ToSDK ¶
func (r GlobalSecondaryIndex) ToSDK() SDK.GlobalSecondaryIndex
type GlobalSecondaryIndexDescription ¶
type GlobalSecondaryIndexDescription struct { Backfilling bool IndexARN string IndexName string IndexSizeBytes int64 IndexStatus IndexStatus ItemCount int64 KeySchema []KeySchemaElement Projection Projection ProvisionedThroughput ProvisionedThroughputDescription }
Represents the properties of a global secondary index.
type IndexStatus ¶
type IndexStatus string
const ( IndexStatusCreating IndexStatus = IndexStatus(SDK.IndexStatusCreating) IndexStatusUpdating IndexStatus = IndexStatus(SDK.IndexStatusUpdating) IndexStatusDeleting IndexStatus = IndexStatus(SDK.IndexStatusDeleting) IndexStatusActive IndexStatus = IndexStatus(SDK.IndexStatusActive) )
func (IndexStatus) IsActive ¶
func (v IndexStatus) IsActive() bool
func (IndexStatus) IsCreating ¶
func (v IndexStatus) IsCreating() bool
func (IndexStatus) IsDeleting ¶
func (v IndexStatus) IsDeleting() bool
func (IndexStatus) IsUpdating ¶
func (v IndexStatus) IsUpdating() bool
type ItemCollectionMetrics ¶
type ItemCollectionMetrics struct { ItemCollectionKey map[string]AttributeValue `type:"map"` SizeEstimateRangeGB []float64 `type:"list"` }
type KeySchemaElement ¶
func (KeySchemaElement) ToSDK ¶
func (r KeySchemaElement) ToSDK() SDK.KeySchemaElement
type KeyType ¶
type KeyType string
const ( KeyTypeHash KeyType = KeyType(SDK.KeyTypeHash) KeyTypeRange KeyType = KeyType(SDK.KeyTypeRange) )
type KeysAndAttributes ¶
type KeysAndAttributes struct { Keys []map[string]AttributeValue // optional AttributesToGet []string ConsistentRead bool ExpressionAttributeNames map[string]string ProjectionExpression string }
func (KeysAndAttributes) ToSDK ¶
func (r KeysAndAttributes) ToSDK() SDK.KeysAndAttributes
type LocalSecondaryIndex ¶
type LocalSecondaryIndex struct { IndexName string KeySchema []KeySchemaElement Projection Projection }
func (LocalSecondaryIndex) ToSDK ¶
func (r LocalSecondaryIndex) ToSDK() SDK.LocalSecondaryIndex
type LocalSecondaryIndexDescription ¶
type LocalSecondaryIndexDescription struct { IndexARN string IndexName string IndexSizeBytes int64 ItemCount int64 KeySchema []KeySchemaElement Projection Projection }
type OperationMode ¶ added in v0.0.4
type OperationMode string
const ( OperationModeSET OperationMode = "SET" OperationModeREMOVE OperationMode = "REMOVE" OperationModeADD OperationMode = "ADD" OperationModeDELETE OperationMode = "DELETE" )
type Projection ¶
type Projection struct { NonKeyAttributes []string ProjectionType ProjectionType }
func (Projection) ToSDK ¶
func (r Projection) ToSDK() SDK.Projection
type ProjectionType ¶
type ProjectionType string
const ( ProjectionTypeAll ProjectionType = ProjectionType(SDK.ProjectionTypeAll) ProjectionTypeKeysOnly ProjectionType = ProjectionType(SDK.ProjectionTypeKeysOnly) ProjectionTypeInclude ProjectionType = ProjectionType(SDK.ProjectionTypeInclude) )
func (ProjectionType) IsAll ¶
func (v ProjectionType) IsAll() bool
func (ProjectionType) IsInclude ¶
func (v ProjectionType) IsInclude() bool
func (ProjectionType) IsKeysOnly ¶
func (v ProjectionType) IsKeysOnly() bool
type ProvisionedThroughput ¶
func (ProvisionedThroughput) ToSDK ¶
func (r ProvisionedThroughput) ToSDK() SDK.ProvisionedThroughput
type PutItemRequest ¶
type PutItemRequest struct { TableName string Item map[string]AttributeValue // optional ConditionExpression string ConditionalOperator ConditionalOperator Expected map[string]ExpectedAttributeValue ExpressionAttributeNames map[string]string ExpressionAttributeValues map[string]AttributeValue ReturnConsumedCapacity ReturnConsumedCapacity ReturnItemCollectionMetrics ReturnItemCollectionMetrics ReturnValues ReturnValue }
PutItemRequest has parameters for `PutItem` operation.
func (PutItemRequest) ToInput ¶
func (r PutItemRequest) ToInput() *SDK.PutItemInput
type PutItemResult ¶
type PutItemResult struct { Attributes map[string]AttributeValue ConsumedCapacity ConsumedCapacity ItemCollectionMetrics ItemCollectionMetrics }
PutItemResult contains results from `PutItem` operation.
func NewPutItemResult ¶
func NewPutItemResult(output *SDK.PutItemResponse) *PutItemResult
type QueryRequest ¶
type QueryRequest struct { TableName string // optional ConsistentRead bool ExclusiveStartKey map[string]AttributeValue ExpressionAttributeNames map[string]string ExpressionAttributeValues map[string]AttributeValue FilterExpression string IndexName string KeyConditionExpression string KeyConditions map[string]Condition Limit int64 ProjectionExpression string ReturnConsumedCapacity ReturnConsumedCapacity ScanIndexForward bool Select Select XConditions XConditions }
QueryRequest has parameters for `Query` operation.
func (QueryRequest) ToInput ¶
func (r QueryRequest) ToInput() (*SDK.QueryInput, error)
type QueryResult ¶
type QueryResult struct { ConsumedCapacity ConsumedCapacity Count int64 Items []map[string]SDK.AttributeValue // keep original type to reduce unmarshal cost LastEvaluatedKey map[string]AttributeValue ScannedCount int64 }
QueryResult contains results from `Query` operation.
func NewQueryResult ¶
func NewQueryResult(output *SDK.QueryResponse) *QueryResult
func (QueryResult) ToSliceMap ¶
func (r QueryResult) ToSliceMap() ([]map[string]interface{}, error)
func (QueryResult) Unmarshal ¶
func (r QueryResult) Unmarshal(out interface{}) error
type ReplicaDescription ¶
type ReplicaDescription struct { GlobalSecondaryIndexes []ReplicaGlobalSecondaryIndexDescription KMSMasterKeyID string RegionName string ReplicaStatus ReplicaStatus ReplicaStatusDescription string ReplicaStatusPercentProgress string ProvisionedThroughputOverrideRCU int64 }
type ReplicaStatus ¶
type ReplicaStatus string
const ( ReplicaStatusCreating ReplicaStatus = ReplicaStatus(SDK.ReplicaStatusCreating) ReplicaStatusCreationFailed ReplicaStatus = ReplicaStatus(SDK.ReplicaStatusCreationFailed) ReplicaStatusUpdating ReplicaStatus = ReplicaStatus(SDK.ReplicaStatusUpdating) ReplicaStatusDeleting ReplicaStatus = ReplicaStatus(SDK.ReplicaStatusDeleting) ReplicaStatusActive ReplicaStatus = ReplicaStatus(SDK.ReplicaStatusActive) )
type RestoreSummary ¶
type ReturnConsumedCapacity ¶
type ReturnConsumedCapacity string
const ( ReturnConsumedCapacityIndexes ReturnConsumedCapacity = ReturnConsumedCapacity(SDK.ReturnConsumedCapacityIndexes) ReturnConsumedCapacityTotal ReturnConsumedCapacity = ReturnConsumedCapacity(SDK.ReturnConsumedCapacityTotal) ReturnConsumedCapacityNone ReturnConsumedCapacity = ReturnConsumedCapacity(SDK.ReturnConsumedCapacityNone) )
func (ReturnConsumedCapacity) IsIndexes ¶
func (v ReturnConsumedCapacity) IsIndexes() bool
func (ReturnConsumedCapacity) IsNone ¶
func (v ReturnConsumedCapacity) IsNone() bool
func (ReturnConsumedCapacity) IsTotal ¶
func (v ReturnConsumedCapacity) IsTotal() bool
type ReturnItemCollectionMetrics ¶
type ReturnItemCollectionMetrics string
const ( ReturnItemCollectionMetricsSize ReturnItemCollectionMetrics = ReturnItemCollectionMetrics(SDK.ReturnItemCollectionMetricsSize) ReturnItemCollectionMetricsNone ReturnItemCollectionMetrics = ReturnItemCollectionMetrics(SDK.ReturnItemCollectionMetricsNone) )
func (ReturnItemCollectionMetrics) IsNone ¶
func (v ReturnItemCollectionMetrics) IsNone() bool
func (ReturnItemCollectionMetrics) IsSize ¶
func (v ReturnItemCollectionMetrics) IsSize() bool
type ReturnValue ¶
type ReturnValue string
const ( ReturnValueNone ReturnValue = ReturnValue(SDK.ReturnValueNone) ReturnValueAllOld ReturnValue = ReturnValue(SDK.ReturnValueAllOld) ReturnValueUpdatedOld ReturnValue = ReturnValue(SDK.ReturnValueUpdatedOld) ReturnValueAllNew ReturnValue = ReturnValue(SDK.ReturnValueAllNew) ReturnValueUpdatedNew ReturnValue = ReturnValue(SDK.ReturnValueUpdatedNew) )
func (ReturnValue) IsAllNew ¶
func (v ReturnValue) IsAllNew() bool
func (ReturnValue) IsAllOld ¶
func (v ReturnValue) IsAllOld() bool
func (ReturnValue) IsNone ¶
func (v ReturnValue) IsNone() bool
func (ReturnValue) IsUpdatedNew ¶
func (v ReturnValue) IsUpdatedNew() bool
func (ReturnValue) IsUpdatedOld ¶
func (v ReturnValue) IsUpdatedOld() bool
type SSEDescription ¶
type SSESpecification ¶
func (SSESpecification) ToSDK ¶
func (r SSESpecification) ToSDK() SDK.SSESpecification
type SSEStatus ¶
type SSEStatus string
const ( SSEStatusEnabling SSEStatus = SSEStatus(SDK.SSEStatusEnabling) SSEStatusEnabled SSEStatus = SSEStatus(SDK.SSEStatusEnabled) SSEStatusDisabling SSEStatus = SSEStatus(SDK.SSEStatusDisabling) SSEStatusDisabled SSEStatus = SSEStatus(SDK.SSEStatusDisabled) SSEStatusUpdating SSEStatus = SSEStatus(SDK.SSEStatusUpdating) )
func (SSEStatus) IsDisabled ¶
func (SSEStatus) IsDisabling ¶
func (SSEStatus) IsEnabling ¶
func (SSEStatus) IsUpdating ¶
type SSEType ¶
type SSEType string
const ( SSETypeAes256 SSEType = SSEType(SDK.SSETypeAes256) SSETypeKms SSEType = SSEType(SDK.SSETypeKms) )
type ScalarAttributeType ¶
type ScalarAttributeType string
const ( ScalarAttributeTypeS ScalarAttributeType = ScalarAttributeType(SDK.ScalarAttributeTypeS) ScalarAttributeTypeN ScalarAttributeType = ScalarAttributeType(SDK.ScalarAttributeTypeN) ScalarAttributeTypeB ScalarAttributeType = ScalarAttributeType(SDK.ScalarAttributeTypeB) )
func (ScalarAttributeType) IsB ¶
func (v ScalarAttributeType) IsB() bool
func (ScalarAttributeType) IsN ¶
func (v ScalarAttributeType) IsN() bool
func (ScalarAttributeType) IsS ¶
func (v ScalarAttributeType) IsS() bool
type ScanRequest ¶ added in v0.0.5
type ScanRequest struct { TableName string // optional ConsistentRead bool ExclusiveStartKey map[string]AttributeValue ExpressionAttributeNames map[string]string ExpressionAttributeValues map[string]AttributeValue FilterExpression string IndexName string Limit int64 ProjectionExpression string ReturnConsumedCapacity ReturnConsumedCapacity Segment int64 Select Select TotalSegments int64 XConditions XConditions }
ScanRequest has parameters for `Scan` operation.
type ScanResult ¶ added in v0.0.5
type ScanResult struct { ConsumedCapacity ConsumedCapacity Count int64 Items []map[string]SDK.AttributeValue // keep original type to reduce unmarshal cost LastEvaluatedKey map[string]AttributeValue ScannedCount int64 }
ScanResult contains results from `Scan` operation.
func NewScanResult ¶ added in v0.0.5
func NewScanResult(output *SDK.ScanResponse) *ScanResult
func (ScanResult) ToSliceMap ¶ added in v0.0.5
func (r ScanResult) ToSliceMap() ([]map[string]interface{}, error)
func (ScanResult) Unmarshal ¶ added in v0.0.5
func (r ScanResult) Unmarshal(out interface{}) error
type Select ¶
type Select string
const ( SelectAllAttributes Select = Select(SDK.SelectAllAttributes) SelectAllProjectedAttributes Select = Select(SDK.SelectAllProjectedAttributes) SelectSpecificAttributes Select = Select(SDK.SelectSpecificAttributes) SelectCount Select = Select(SDK.SelectCount) )
func (Select) IsAllAttributes ¶
func (Select) IsAllProjectedAttributes ¶
func (Select) IsSpecificAttributes ¶
type StreamSpecification ¶
type StreamSpecification struct { StreamEnabled bool // optional StreamViewType StreamViewType }
func (StreamSpecification) ToSDK ¶
func (r StreamSpecification) ToSDK() SDK.StreamSpecification
type StreamViewType ¶
type StreamViewType string
const ( StreamViewTypeNewImage StreamViewType = StreamViewType(SDK.StreamViewTypeNewImage) StreamViewTypeOldImage StreamViewType = StreamViewType(SDK.StreamViewTypeOldImage) StreamViewTypeNewAndOldImages StreamViewType = StreamViewType(SDK.StreamViewTypeNewAndOldImages) StreamViewTypeKeysOnly StreamViewType = StreamViewType(SDK.StreamViewTypeKeysOnly) )
func (StreamViewType) IsKeysOnly ¶
func (v StreamViewType) IsKeysOnly() bool
func (StreamViewType) IsNewAndOldImages ¶
func (v StreamViewType) IsNewAndOldImages() bool
func (StreamViewType) IsNewImage ¶
func (v StreamViewType) IsNewImage() bool
func (StreamViewType) IsOldImage ¶
func (v StreamViewType) IsOldImage() bool
type TableDescription ¶
type TableDescription struct { ArchivalSummary ArchivalSummary AttributeDefinitions []AttributeDefinition BillingModeSummary BillingModeSummary CreationDateTime time.Time GlobalSecondaryIndexes []GlobalSecondaryIndexDescription GlobalTableVersion string ItemCount int64 KeySchema []KeySchemaElement LatestStreamARN string LatestStreamLabel string LocalSecondaryIndexes []LocalSecondaryIndexDescription ProvisionedThroughput ProvisionedThroughputDescription Replicas []ReplicaDescription RestoreSummary RestoreSummary SSEDescription SSEDescription StreamSpecification StreamSpecification TableARN string TableID string TableName string TableSizeBytes int64 TableStatus TableStatus }
type TableStatus ¶
type TableStatus string
const ( TableStatusCreating TableStatus = TableStatus(SDK.TableStatusCreating) TableStatusUpdating TableStatus = TableStatus(SDK.TableStatusUpdating) TableStatusDeleting TableStatus = TableStatus(SDK.TableStatusDeleting) TableStatusActive TableStatus = TableStatus(SDK.TableStatusActive) TableStatusInaccessibleEncryptionCredentials TableStatus = TableStatus(SDK.TableStatusInaccessibleEncryptionCredentials) TableStatusArchiving TableStatus = TableStatus(SDK.TableStatusArchiving) TableStatusArchived TableStatus = TableStatus(SDK.TableStatusArchived) )
func (TableStatus) IsActive ¶
func (v TableStatus) IsActive() bool
func (TableStatus) IsArchived ¶
func (v TableStatus) IsArchived() bool
func (TableStatus) IsArchiving ¶
func (v TableStatus) IsArchiving() bool
func (TableStatus) IsCreating ¶
func (v TableStatus) IsCreating() bool
func (TableStatus) IsDeleting ¶
func (v TableStatus) IsDeleting() bool
func (TableStatus) IsInaccessibleEncryptionCredentials ¶
func (v TableStatus) IsInaccessibleEncryptionCredentials() bool
func (TableStatus) IsUpdating ¶
func (v TableStatus) IsUpdating() bool
type UpdateItemRequest ¶ added in v0.0.4
type UpdateItemRequest struct { TableName string Key map[string]AttributeValue // optional ConditionExpression string ExpressionAttributeNames map[string]string ExpressionAttributeValues map[string]AttributeValue ReturnConsumedCapacity ReturnConsumedCapacity ReturnItemCollectionMetrics ReturnItemCollectionMetrics ReturnValues ReturnValue UpdateExpression string XConditions XConditions }
UpdateItemRequest has parameters for `UpdateItem` operation.
func (UpdateItemRequest) ToInput ¶ added in v0.0.4
func (r UpdateItemRequest) ToInput() (*SDK.UpdateItemInput, error)
type UpdateItemResult ¶ added in v0.0.4
type UpdateItemResult struct { Attributes map[string]AttributeValue ConsumedCapacity ConsumedCapacity ItemCollectionMetrics ItemCollectionMetrics }
UpdateItemResult contains results from `UpdateItem` operation.
func NewUpdateItemResult ¶ added in v0.0.4
func NewUpdateItemResult(output *SDK.UpdateItemResponse) *UpdateItemResult
type WriteRequest ¶
type WriteRequest struct { DeleteKeys map[string]AttributeValue PutItems map[string]AttributeValue }
func (WriteRequest) ToSDK ¶
func (r WriteRequest) ToSDK() SDK.WriteRequest
type XBatchDeleteItem ¶ added in v0.1.0
type XBatchDeleteItem struct { HashKeyValue interface{} RangeKeyValue interface{} }
XBatchDeleteItem contains key values to delete and used in 'XBatchDeleteItemRequest'.
type XBatchDeleteItemRequest ¶ added in v0.1.0
type XBatchDeleteItemRequest struct { TableName string HashKey string RangeKey string Items []XBatchDeleteItem }
XBatchDeleteItemRequest is parameters of 'XBatchDeleteItems'.
func (XBatchDeleteItemRequest) ToChunks ¶ added in v0.1.0
func (r XBatchDeleteItemRequest) ToChunks() [][]XBatchDeleteItem
ToChunks makes a slice of 25 items slices to avoid the limitation of 'BatchWriteItem'.
type XCondition ¶
type XCondition struct { Name string Value interface{} Operator ComparisonOperator // optional IsOR bool IsNOT bool // - 'BETWEEN': higher value. // - 'IN': all of values afre used besides XCondition.Value. OtherValues []string }
XCondition contains single condition parameters.
func (XCondition) Condition ¶
func (x XCondition) Condition() (expression.ConditionBuilder, error)
func (XCondition) KeyCondition ¶
func (x XCondition) KeyCondition() (expression.KeyConditionBuilder, error)
type XConditions ¶
type XConditions struct { KeyConditions []XCondition Conditions []XCondition Filters []XCondition Updates []XUpdateCondition Projections []string }
XConditions is to build Expression Condition for Query/Scan/Update operation.
func (XConditions) Build ¶
func (x XConditions) Build() (expression.Expression, error)
type XGetSingleItemRequest ¶ added in v0.1.0
type XGetSingleItemRequest struct { TableName string HashKeyName string HashKeyValue interface{} RangeKeyName string RangeKeyValue interface{} }
func (XGetSingleItemRequest) ToRequest ¶ added in v0.1.0
func (in XGetSingleItemRequest) ToRequest() (GetItemRequest, error)
type XUpdateCondition ¶ added in v0.0.4
type XUpdateCondition struct { Name string Value interface{} Operation OperationMode SetType SetType SetTypeKey string SetTypeValue2 interface{} }
func (XUpdateCondition) NewCondition ¶ added in v0.0.4
func (x XUpdateCondition) NewCondition() expression.UpdateBuilder
Source Files ¶
- client.go
- client__raw_api.go
- client_op_item_batch_get_item.go
- client_op_item_batch_write_item.go
- client_op_item_get.go
- client_op_item_put.go
- client_op_item_query.go
- client_op_item_scan.go
- client_op_item_update.go
- client_op_table_create.go
- client_op_table_delete.go
- client_op_table_describe.go
- client_xapi_item.go
- client_xapi_table.go
- type.go
- type_enum.go
- type_func.go
- xtype_condition.go