MCPcopy Create free account

hub / github.com/rdwilliamson/aws / functions

Functions88 in github.com/rdwilliamson/aws

↓ 40 callersMethodAdd
Add appends the hex-encoded hash to the treehash as a new node Add must be called sequentially on parts.
glacier/treehash.go:19
↓ 35 callersMethodClose
Close closes the the remaing chunks of data and then calculates the tree hash.
glacier/treehash.go:123
↓ 27 callersMethodSign
Sign uses signature s to sign the HTTP request. It sets the Authorization header and sets / overwrites the Date header for now. If the signature was c
aws.go:189
↓ 23 callersMethodclient
()
glacier/glacier.go:21
↓ 21 callersMethodvault
vault returns the URL prefix of the named vault, without a trailing slash.
glacier/glacier.go:29
↓ 20 callersMethodWrite
Write writes all of p, storing every 1 MiB of data's hash.
glacier/treehash.go:90
↓ 14 callersMethodError
()
error.go:15
↓ 10 callersFunctiontoHex
TODO method to log things such as x-amzn-RequestId toHex returns the lowercase hex encoding of x.
glacier/glacier.go:49
↓ 9 callersMethodString
()
glacier/policy.go:102
↓ 8 callersMethodadd
add adds the key value pair. It appends to any existing values associated with key.
glacier/glacier.go:59
↓ 7 callersFunctionNewTreeHash
NewTreeHash returns an new, initialized tree hasher.
glacier/treehash.go:71
↓ 5 callersMethodHash
Hash returns the linear sha256 checksum of everything written.
glacier/treehash.go:143
↓ 5 callersMethodTreeHash
TreeHash returns the root-level tree hash of everything written.
glacier/treehash.go:138
↓ 4 callersFunctionToDataRetrievalPolicy
ToDataRetrievalPolicy tries to converts a string to a DataRetrievalPolicy.
glacier/policy.go:120
↓ 4 callersFunctiontestUpload
testUpload only runs if AWS credentials and Glacier parameters are set. It uploads nParts+1 parts; nParts of size partSize, and a final one of size (3
glacier/multipart_test.go:49
↓ 3 callersFunctionNewSignature
NewSignature creates a new signature from the secret key, access key, region, and service with the date set to UTC now.
aws.go:135
↓ 3 callersMethodReset
Reset the tree hash's state allowing it to be reused.
glacier/treehash.go:81
↓ 3 callersMethodencode
Encode encodes the values into “URL encoded” form ("?bar=baz&foo=quux") sorted by key.
glacier/glacier.go:65
↓ 3 callersMethodgenerateSigningKey
AWS signature Version 4 requires that you sign your message using a key that is derived from your secret access key rather than using the secret acces
aws.go:155
↓ 3 callersFunctiontoHex
Return a new copy of the input byte array that is hex encoded.
aws.go:97
↓ 3 callersFunctiontreeHash
treeHash calculates the root-level treeHash given sequential leaf nodes.
glacier/treehash.go:37
↓ 3 callersFunctionuriEncodeString
URI encode a string. Characters that are not in `unreserved` are replaced with their hex encoding preceded by a '%' character. Note: * Based on http
aws.go:60
↓ 2 callersMethodCreateHash
CreateHash returns the root-level hex-encoded hash to send in the CompleteMultipart request.
glacier/treehash.go:27
↓ 2 callersMethodGetDataRetrievalPolicy
This operation returns the current data retrieval policy and bytes per hour (if applicable). There is one policy per region for an AWS account. For
glacier/policy.go:142
↓ 2 callersMethodSetRetrievalPolicy
This operation sets and then enacts a data retrieval policy. You can set one policy per region for an AWS account. The policy is enacted within a few
glacier/policy.go:188
↓ 2 callersFunctioncharRequiresEncoding
Tests if a character requires encoding in a URI.
aws.go:39
↓ 2 callersMethodpolicy
policy returns the URL prefix of the named policy, without a trailing slash.
glacier/glacier.go:34
↓ 2 callersFunctiontestConnection
(t *testing.T)
glacier/glacier_test.go:10
↓ 1 callersMethodAbortMultipart
This multipart upload operation aborts a multipart upload identified by the upload ID. After the Abort Multipart Upload request succeeds, you cannot
glacier/multipart.go:254
↓ 1 callersMethodCompleteMultipart
You call this multipart upload operation to inform Amazon Glacier that all the archive parts have been uploaded and Amazon Glacier can now assemble th
glacier/multipart.go:216
↓ 1 callersMethodDeleteArchive
Deletes archive from vault. Returns the first error encountered.
glacier/archive.go:66
↓ 1 callersMethodInitiateMultipart
This operation initiates a multipart upload. Amazon Glacier creates a multipart upload resource and returns its ID in the response. You use this Uploa
glacier/multipart.go:70
↓ 1 callersFunctionKeysFromFile
Get secret and access ID keys (in that order) from a file.
aws.go:110
↓ 1 callersMethodListMultipartParts
This multipart upload operation lists the parts of an archive that have been uploaded in a specific multipart upload identified by an upload ID. You
glacier/multipart.go:300
↓ 1 callersFunctionMemoryPayload
Returns a payload that hashes the memory and then uses it as the requests body.
aws.go:442
↓ 1 callersFunctionNewConnection
NewConnection returns a Connection with an initialized signature based on the provided access credentials and region.
glacier/glacier.go:40
↓ 1 callersMethodPayload
()
aws.go:433
↓ 1 callersMethodTreeHashFromMultipartUpload
TreeHashFromMultipartUpload lists the underlying parts and returns a hex-formatted treehash of the entire archive, for use in sending along with a Com
glacier/multipart.go:463
↓ 1 callersMethodUploadMultipart
This multipart upload operation uploads a part of an archive.You can upload archive parts in any order because in your Upload Part request you specify
glacier/multipart.go:133
↓ 1 callersFunctionbuildAWSSuite
Build a slice of awsTestCase structs based on the "gold standards" distributed by Amazon and located in the aws4_testsuite directory.
aws_test.go:62
↓ 1 callersFunctiongetAWSSuiteFiles
Get a list of the files in the AWS test suite.
aws_test.go:32
↓ 1 callersFunctionstringRequiresEncoding
Tests if a character requires encoding in a URI.
aws.go:45
↓ 1 callersFunctiontestVault
(t *testing.T)
glacier/glacier_test.go:32
FunctionBenchmarkNewSignature
(b *testing.B)
aws_test.go:175
FunctionBenchmarkSignatureSign
(b *testing.B)
aws_test.go:183
FunctionBenchmarkToDataRetrievalPolicyFastPath
(b *testing.B)
glacier/policy_test.go:33
FunctionBenchmarkToDataRetrievalPolicySlowPath
(b *testing.B)
glacier/policy_test.go:39
FunctionBenchmarkTreeHash
(b *testing.B)
glacier/treehash_test.go:135
FunctionBenchmarkTreeHashClose
(b *testing.B)
glacier/treehash_test.go:183
FunctionBenchmarkTreeHashReset
(b *testing.B)
glacier/treehash_test.go:154
MethodCreateVault
This operation creates a new vault with the specified name. The name of the vault must be unique within a region for an AWS account.You can create up
glacier/vault.go:60
MethodDeleteVault
This operation deletes a vault. Amazon Glacier will delete a vault only if there are no archives in the vault as per the last inventory and there have
glacier/vault.go:94
MethodDeleteVaultNotifications
This operation deletes the notification configuration set for a vault. The operation is eventually consistent—that is, it might take some time for Ama
glacier/vault.go:360
MethodDescribeJob
This operation returns information about a job you previously initiated, see Job type. Returns the job and the first error, if any, encountered.
glacier/jobs.go:191
MethodDescribeVault
This operation returns information about a vault, including the vault Amazon Resource Name (ARN), the date the vault was created, the number of archiv
glacier/vault.go:129
MethodGetInventoryJob
Amazon Glacier updates a vault inventory approximately once a day, starting on the day you first upload an archive to the vault. When you initiate a j
glacier/jobs.go:329
MethodGetRetrievalJob
You can download all the job output or download a portion of the output by specifying a byte range. In the case of an archive retrieval job, depending
glacier/jobs.go:289
MethodGetVaultNotifications
This operation retrieves the notification-configuration subresource set on the vault. If notification configuration for a vault is not set, the operat
glacier/vault.go:318
FunctionHashedPayload
Returns a payload that just returns the precomputed hash. The requests body is untouched.
aws.go:485
MethodInitiateInventoryJob
Initiate an vault inventory job with the vault name. You can also provide an optional job description when you initiate these jobs. If you specify a t
glacier/jobs.go:157
MethodInitiateRetrievalJob
Initiate an archive retrieval job with both the vault name where the archive resides and the archive ID you wish to download. You can also provide an
glacier/jobs.go:121
FunctionKeysFromEnviroment
Get secret and access ID keys (in that order) from environment variables AWS_SECRET_KEY and AWS_ACCESS_KEY.
aws.go:105
MethodListJobs
This operation lists jobs for a vault including jobs that are in-progress and jobs that have recently finished. To retrieve an archive or retrieve a
glacier/jobs.go:424
MethodListMultipartUploads
This multipart upload operation lists in-progress multipart uploads for the specified vault. An in-progress multipart upload is a multipart upload tha
glacier/multipart.go:387
MethodListVaults
This operation lists all vaults owned by the calling user’s account. The list returned in the response is ASCII-sorted by vault name. By default, thi
glacier/vault.go:192
FunctionParseError
Attempts to parse an AWS error out of a http response, it is still the caller's responsibility to close the body. See http://docs.aws.amazon.com/amazo
error.go:23
MethodPayload
()
aws.go:446
MethodPayload
()
aws.go:462
MethodPayload
()
aws.go:489
MethodRead
(p []byte)
glacier/multipart_test.go:22
FunctionReadSeekerPayload
Returns a payload that reads the ReadSeeker to hash it and then reads it again when sending the request.
aws.go:458
MethodSetVaultNotifications
Retrieving an archive and a vault inventory are asynchronous operations in Amazon Glacier for which you must first initiate a job and wait for the job
glacier/vault.go:283
FunctionTestDataRetrievalPolicy
(t *testing.T)
glacier/policy_test.go:45
FunctionTestGetInventoryJob
(t *testing.T)
glacier/jobs_test.go:8
FunctionTestHugeParts
(t *testing.T)
glacier/multipart_test.go:41
FunctionTestKeysFromFile
(t *testing.T)
aws_test.go:250
FunctionTestListJobs
(t *testing.T)
glacier/jobs_test.go:18
FunctionTestMediumParts
(t *testing.T)
glacier/multipart_test.go:37
FunctionTestMultiTreeHasher
(t *testing.T)
glacier/treehash_test.go:21
FunctionTestSignErrors
(t *testing.T)
aws_test.go:214
FunctionTestSignature
(t *testing.T)
aws_test.go:114
FunctionTestSmallFewParts
(t *testing.T)
glacier/multipart_test.go:29
FunctionTestSmallManyParts
(t *testing.T)
glacier/multipart_test.go:33
FunctionTestToDataRetrievalPolicy
(t *testing.T)
glacier/policy_test.go:8
FunctionTestTreeHash
(t *testing.T)
glacier/treehash_test.go:57
FunctionTestTreeHashCloseEmpty
(t *testing.T)
glacier/treehash_test.go:127
MethodUploadArchive
Upload archive to vault with optional description. The entire archive will be read in order to create its tree hash before uploading. Returns the arc
glacier/archive.go:16
Functioninit
()
aws.go:29