hash

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchGetItemInputSHA256 added in v0.2.5

func BatchGetItemInputSHA256(input *ddb.BatchGetItemInput) [32]byte

BatchGetItemInputSHA256 creates a SHA256 string from a BatchGetItemInput

func BatchGetItemInputSHA256String added in v0.2.5

func BatchGetItemInputSHA256String(input *ddb.BatchGetItemInput) string

BatchGetItemInputSHA256String creates a SHA256 string from a BatchGetItemInput

func BatchGetItemInputString added in v0.2.5

func BatchGetItemInputString(input *ddb.BatchGetItemInput) string

BatchGetItemInputString creates a string from a BatchGetItemInput

func GetItemInputSHA256 added in v0.2.5

func GetItemInputSHA256(input *ddb.GetItemInput) [32]byte

GetItemInputSHA256 creates a SHA256 string from a GetItemInput

func GetItemInputSHA256String added in v0.2.5

func GetItemInputSHA256String(input *ddb.GetItemInput) string

GetItemInputSHA256String creates a SHA256 string from a GetItemInput

func GetItemInputString added in v0.2.5

func GetItemInputString(input *ddb.GetItemInput) string

GetItemInputString creates a string from a GetItemInput

func MustFprintf

func MustFprintf(w io.Writer, format string, a ...interface{})

MustFprintf panics if MustFprintf returns an error

func QueryInputSHA256 added in v0.2.5

func QueryInputSHA256(input *ddb.QueryInput) [32]byte

QueryInputSHA256 creates a SHA256 string from a QueryInput

func QueryInputSHA256String added in v0.2.5

func QueryInputSHA256String(input *ddb.QueryInput) string

QueryInputSHA256String creates a SHA256 string from a QueryInput

func QueryInputString added in v0.2.5

func QueryInputString(input *ddb.QueryInput) string

QueryInputString creates a string from a QueryInput

func ScanInputSHA256 added in v0.2.5

func ScanInputSHA256(input *ddb.ScanInput) [32]byte

ScanInputSHA256 creates a SHA256 string from a ScanInput

func ScanInputSHA256String added in v0.2.5

func ScanInputSHA256String(input *ddb.ScanInput) string

ScanInputSHA256String creates a SHA256 string from a ScanInput

func ScanInputString added in v0.2.5

func ScanInputString(input *ddb.ScanInput) string

ScanInputString creates a string from a ScanInput

Types

type Buffer

type Buffer struct {
	*bytes.Buffer
}

Buffer is a bytes Buffer used to create hashes for dynamodb inputs

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) MustWrite

func (b *Buffer) MustWrite(bt []byte) *Buffer

MustWrite panics if buffer cannot be written to

func (*Buffer) MustWriteString

func (b *Buffer) MustWriteString(s string) *Buffer

MustWriteString panics if buffer cannot be written to

func (*Buffer) SHA256

func (b *Buffer) SHA256() [32]byte

SHA256 creates a SHA256 hash for this buffer

func (*Buffer) SHA256String

func (b *Buffer) SHA256String() string

SHA256String creates a SHA256 hash string for this buffer

func (*Buffer) WriteAttributeValue

func (b *Buffer) WriteAttributeValue(av types.AttributeValue) *Buffer

WriteAttributeValue converts an attribute value to a simple hash string that will be the same for the same values of a given attribute value

func (*Buffer) WriteAttributeValueMap

func (b *Buffer) WriteAttributeValueMap(avm map[string]types.AttributeValue) *Buffer

WriteAttributeValueMap writes the attribute value map to the Buffer

func (*Buffer) WriteAttributeValueSlice

func (b *Buffer) WriteAttributeValueSlice(avs []types.AttributeValue) *Buffer

WriteAttributeValueSlice writes a slice of dynamodb.AttributeValue to the BUffer

func (*Buffer) WriteBatchGetItemInput

func (b *Buffer) WriteBatchGetItemInput(in *ddb.BatchGetItemInput) *Buffer

WriteBatchGetItemInput writes a dynamodb.BatchGetItemInput to the Buffer

func (*Buffer) WriteBytesSlice

func (b *Buffer) WriteBytesSlice(bs [][]byte) *Buffer

WriteBytesSlice writes a []string to the Buffer

func (*Buffer) WriteCondition

func (b *Buffer) WriteCondition(c types.Condition) *Buffer

WriteCondition writes a dynamodb.Condition condition to the Buffer

func (*Buffer) WriteConditionMap

func (b *Buffer) WriteConditionMap(cnds map[string]types.Condition) *Buffer

WriteConditionMap inserts encoded bytes for a dynamodb.Condition to the Buffer

func (*Buffer) WriteConsistentRead

func (b *Buffer) WriteConsistentRead(v *bool) *Buffer

func (*Buffer) WriteExclusiveStartKey

func (b *Buffer) WriteExclusiveStartKey(v map[string]types.AttributeValue) *Buffer

func (*Buffer) WriteExpressionAttributeNames

func (b *Buffer) WriteExpressionAttributeNames(v map[string]string) *Buffer

func (*Buffer) WriteExpressionAttributeValues

func (b *Buffer) WriteExpressionAttributeValues(v map[string]types.AttributeValue) *Buffer

func (*Buffer) WriteFilterExpression

func (b *Buffer) WriteFilterExpression(v *string) *Buffer

func (*Buffer) WriteGetItemInput

func (b *Buffer) WriteGetItemInput(in *ddb.GetItemInput) *Buffer

WriteGetItemInput writes a dynamodb.GetItemInput to the Buffer

func (*Buffer) WriteIndexName

func (b *Buffer) WriteIndexName(v *string) *Buffer

func (*Buffer) WriteKeyConditionExpression

func (b *Buffer) WriteKeyConditionExpression(v *string) *Buffer

func (*Buffer) WriteKeyConditions

func (b *Buffer) WriteKeyConditions(v map[string]types.Condition) *Buffer

func (*Buffer) WriteKeysAndAttributes

func (b *Buffer) WriteKeysAndAttributes(ka types.KeysAndAttributes) *Buffer

WriteKeysAndAttributes writes the dynamodb.KeysAndAttributes value to the Buffer

func (*Buffer) WriteLimit

func (b *Buffer) WriteLimit(v *int32) *Buffer

func (*Buffer) WriteMapOfKeysAndAttributes

func (b *Buffer) WriteMapOfKeysAndAttributes(km map[string]types.KeysAndAttributes) *Buffer

WriteMapOfKeysAndAttributes writes a map of dynamodb.KeysAndAttributes value to the Buffer

func (*Buffer) WriteMapOfStringPtrs

func (b *Buffer) WriteMapOfStringPtrs(ms map[string]*string) *Buffer

WriteMapOfStringPtrs writes a map[string]*string to the Buffer

func (*Buffer) WriteMapOfStrings

func (b *Buffer) WriteMapOfStrings(ms map[string]string) *Buffer

WriteMapOfStrings writes a map[string]*string to the Buffer

func (*Buffer) WriteProjectionExpression

func (b *Buffer) WriteProjectionExpression(v *string) *Buffer

func (*Buffer) WriteQueryInput

func (b *Buffer) WriteQueryInput(in *ddb.QueryInput) *Buffer

WriteQueryInput writes a dynamodb.QueryInput to the Buffer

func (*Buffer) WriteRequestItems

func (b *Buffer) WriteRequestItems(v map[string]types.KeysAndAttributes) *Buffer

func (*Buffer) WriteReturnConsumedCapacity

func (b *Buffer) WriteReturnConsumedCapacity(v types.ReturnConsumedCapacity) *Buffer

func (*Buffer) WriteScanIndexForward

func (b *Buffer) WriteScanIndexForward(v *bool) *Buffer

func (*Buffer) WriteScanInput

func (b *Buffer) WriteScanInput(in *ddb.ScanInput) *Buffer

WriteScanInput writes a dynamodb.ScanInput to the Buffer

func (*Buffer) WriteSelect

func (b *Buffer) WriteSelect(v types.Select) *Buffer

func (*Buffer) WriteSliceOfAttributeValueMaps

func (b *Buffer) WriteSliceOfAttributeValueMaps(avs []map[string]types.AttributeValue) *Buffer

WriteSliceOfAttributeValueMaps writes a []map[string]*dynamodb.AttributeValue to the Buffer

func (*Buffer) WriteSliceOfStringPtrs

func (b *Buffer) WriteSliceOfStringPtrs(ss []*string) *Buffer

WriteSliceOfStringPtrs writes a []*string to the Buffer

func (*Buffer) WriteStringPtr

func (b *Buffer) WriteStringPtr(str *string) *Buffer

func (*Buffer) WriteStringSlice

func (b *Buffer) WriteStringSlice(ss []string) *Buffer

WriteStringSlice writes a []string to the Buffer

func (*Buffer) WriteTableName

func (b *Buffer) WriteTableName(v *string)

Jump to

Keyboard shortcuts

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