dynamodb

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

CreatePatch creates a *v1alpha1.DynamoTableParameters that has only the changed values between the target *v1alpha1.DynamoTableParameters and the current *dynamodb.TableDescription

func GenerateCreateTableInput

func GenerateCreateTableInput(name string, p *v1alpha1.DynamoTableParameters) *dynamodb.CreateTableInput

GenerateCreateTableInput from DynamoTaleSpec

func GenerateObservation

GenerateObservation is used to produce v1alpha1.DynamoTableObservation from dynamodb.TableDescription.

func GenerateUpdateTableInput

func GenerateUpdateTableInput(name string, p *v1alpha1.DynamoTableParameters) *dynamodb.UpdateTableInput

GenerateUpdateTableInput from DynamoTaleSpec

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function to test for ErrCodeTableNotFoundException error

func IsUpToDate

IsUpToDate checks whether there is a change in any of the modifiable fields.

func LateInitialize

LateInitialize fills the empty fields in *v1alpha1.DynamoTableParameters with the values seen in dynamodb.TableDescription.

Types

type Client

type Client interface {
	DescribeTableRequest(input *dynamodb.DescribeTableInput) dynamodb.DescribeTableRequest
	CreateTableRequest(input *dynamodb.CreateTableInput) dynamodb.CreateTableRequest
	DeleteTableRequest(input *dynamodb.DeleteTableInput) dynamodb.DeleteTableRequest
	UpdateTableRequest(input *dynamodb.UpdateTableInput) dynamodb.UpdateTableRequest
}

Client defines DyanmoDB client operations

func NewClient

func NewClient(ctx context.Context, credentials []byte, region string, auth awsclients.AuthMethod) (Client, error)

NewClient creates new DynamoDB Client with provided AWS Configurations/Credentials

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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