mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-12 23:15:29 +00:00
Update vendoring
This commit is contained in:
1632
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
generated
vendored
1632
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
12
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go
generated
vendored
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/service/dynamodb"
|
||||
)
|
||||
@@ -454,6 +455,17 @@ func (d *Decoder) decodeString(s *string, v reflect.Value, fieldTag tag) error {
|
||||
return d.decodeNumber(s, v)
|
||||
}
|
||||
|
||||
// To maintain backwards compatibility with ConvertFrom family of methods which
|
||||
// converted strings to time.Time structs
|
||||
if _, ok := v.Interface().(time.Time); ok {
|
||||
t, err := time.Parse(time.RFC3339, *s)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
v.Set(reflect.ValueOf(t))
|
||||
return nil
|
||||
}
|
||||
|
||||
switch v.Kind() {
|
||||
case reflect.String, reflect.Interface:
|
||||
v.Set(reflect.ValueOf(*s))
|
||||
|
||||
10
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go
generated
vendored
10
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go
generated
vendored
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/service/dynamodb"
|
||||
)
|
||||
@@ -215,6 +216,15 @@ func (e *Encoder) encode(av *dynamodb.AttributeValue, v reflect.Value, fieldTag
|
||||
}
|
||||
|
||||
func (e *Encoder) encodeStruct(av *dynamodb.AttributeValue, v reflect.Value) error {
|
||||
|
||||
// To maintain backwards compatibility with ConvertTo family of methods which
|
||||
// converted time.Time structs to strings
|
||||
if t, ok := v.Interface().(time.Time); ok {
|
||||
s := t.Format(time.RFC3339Nano)
|
||||
av.S = &s
|
||||
return nil
|
||||
}
|
||||
|
||||
av.M = map[string]*dynamodb.AttributeValue{}
|
||||
fields := unionStructFields(v.Type(), e.MarshalOptions)
|
||||
for _, f := range fields {
|
||||
|
||||
34
vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go
generated
vendored
@@ -48,23 +48,23 @@ import (
|
||||
//
|
||||
// Managing Tables
|
||||
//
|
||||
// CreateTable - Creates a table with user-specified provisioned throughput
|
||||
// CreateTable - Creates a table with user-specified provisioned throughput
|
||||
// settings. You must define a primary key for the table - either a simple primary
|
||||
// key (partition key), or a composite primary key (partition key and sort key).
|
||||
// Optionally, you can create one or more secondary indexes, which provide fast
|
||||
// data access using non-key attributes.
|
||||
//
|
||||
// DescribeTable - Returns metadata for a table, such as table size, status,
|
||||
// DescribeTable - Returns metadata for a table, such as table size, status,
|
||||
// and index information.
|
||||
//
|
||||
// UpdateTable - Modifies the provisioned throughput settings for a table.
|
||||
// UpdateTable - Modifies the provisioned throughput settings for a table.
|
||||
// Optionally, you can modify the provisioned throughput settings for global
|
||||
// secondary indexes on the table.
|
||||
//
|
||||
// ListTables - Returns a list of all tables associated with the current
|
||||
// ListTables - Returns a list of all tables associated with the current
|
||||
// AWS account and endpoint.
|
||||
//
|
||||
// DeleteTable - Deletes a table and all of its indexes.
|
||||
// DeleteTable - Deletes a table and all of its indexes.
|
||||
//
|
||||
// For conceptual information about managing tables, see Working with Tables
|
||||
// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html)
|
||||
@@ -72,22 +72,22 @@ import (
|
||||
//
|
||||
// Reading Data
|
||||
//
|
||||
// GetItem - Returns a set of attributes for the item that has a given primary
|
||||
// GetItem - Returns a set of attributes for the item that has a given primary
|
||||
// key. By default, GetItem performs an eventually consistent read; however,
|
||||
// applications can request a strongly consistent read instead.
|
||||
//
|
||||
// BatchGetItem - Performs multiple GetItem requests for data items using
|
||||
// BatchGetItem - Performs multiple GetItem requests for data items using
|
||||
// their primary keys, from one table or multiple tables. The response from
|
||||
// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items.
|
||||
// Both eventually consistent and strongly consistent reads can be used.
|
||||
//
|
||||
// Query - Returns one or more items from a table or a secondary index. You
|
||||
// must provide a specific value for the partition key. You can narrow the scope
|
||||
// of the query using comparison operators against a sort key value, or on the
|
||||
// index key. Query supports either eventual or strong consistency. A single
|
||||
// response has a size limit of 1 MB.
|
||||
// Query - Returns one or more items from a table or a secondary index.
|
||||
// You must provide a specific value for the partition key. You can narrow the
|
||||
// scope of the query using comparison operators against a sort key value, or
|
||||
// on the index key. Query supports either eventual or strong consistency. A
|
||||
// single response has a size limit of 1 MB.
|
||||
//
|
||||
// Scan - Reads every item in a table; the result set is eventually consistent.
|
||||
// Scan - Reads every item in a table; the result set is eventually consistent.
|
||||
// You can limit the number of items returned by filtering the data attributes,
|
||||
// using conditional expressions. Scan can be used to enable ad-hoc querying
|
||||
// of a table against non-key attributes; however, since this is a full table
|
||||
@@ -101,22 +101,22 @@ import (
|
||||
//
|
||||
// Modifying Data
|
||||
//
|
||||
// PutItem - Creates a new item, or replaces an existing item with a new
|
||||
// PutItem - Creates a new item, or replaces an existing item with a new
|
||||
// item (including all the attributes). By default, if an item in the table
|
||||
// already exists with the same primary key, the new item completely replaces
|
||||
// the existing item. You can use conditional operators to replace an item only
|
||||
// if its attribute values match certain conditions, or to insert a new item
|
||||
// only if that item doesn't already exist.
|
||||
//
|
||||
// UpdateItem - Modifies the attributes of an existing item. You can also
|
||||
// UpdateItem - Modifies the attributes of an existing item. You can also
|
||||
// use conditional operators to perform an update only if the item's attribute
|
||||
// values match certain conditions.
|
||||
//
|
||||
// DeleteItem - Deletes an item in a table by primary key. You can use conditional
|
||||
// DeleteItem - Deletes an item in a table by primary key. You can use conditional
|
||||
// operators to perform a delete an item only if the item's attribute values
|
||||
// match certain conditions.
|
||||
//
|
||||
// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across
|
||||
// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across
|
||||
// multiple tables in a single request. A failure of any request(s) in the batch
|
||||
// will not cause the entire BatchWriteItem operation to fail. Supports batches
|
||||
// of up to 25 items to put or delete, with a maximum total request size of
|
||||
|
||||
Reference in New Issue
Block a user