Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rdwilliamson/aws
/ functions
Functions
88 in github.com/rdwilliamson/aws
⨍
Functions
88
◇
Types & classes
29
↓ 40 callers
Method
Add
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 callers
Method
Close
Close closes the the remaing chunks of data and then calculates the tree hash.
glacier/treehash.go:123
↓ 27 callers
Method
Sign
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 callers
Method
client
()
glacier/glacier.go:21
↓ 21 callers
Method
vault
vault returns the URL prefix of the named vault, without a trailing slash.
glacier/glacier.go:29
↓ 20 callers
Method
Write
Write writes all of p, storing every 1 MiB of data's hash.
glacier/treehash.go:90
↓ 14 callers
Method
Error
()
error.go:15
↓ 10 callers
Function
toHex
TODO method to log things such as x-amzn-RequestId toHex returns the lowercase hex encoding of x.
glacier/glacier.go:49
↓ 9 callers
Method
String
()
glacier/policy.go:102
↓ 8 callers
Method
add
add adds the key value pair. It appends to any existing values associated with key.
glacier/glacier.go:59
↓ 7 callers
Function
NewTreeHash
NewTreeHash returns an new, initialized tree hasher.
glacier/treehash.go:71
↓ 5 callers
Method
Hash
Hash returns the linear sha256 checksum of everything written.
glacier/treehash.go:143
↓ 5 callers
Method
TreeHash
TreeHash returns the root-level tree hash of everything written.
glacier/treehash.go:138
↓ 4 callers
Function
ToDataRetrievalPolicy
ToDataRetrievalPolicy tries to converts a string to a DataRetrievalPolicy.
glacier/policy.go:120
↓ 4 callers
Function
testUpload
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 callers
Function
NewSignature
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 callers
Method
Reset
Reset the tree hash's state allowing it to be reused.
glacier/treehash.go:81
↓ 3 callers
Method
encode
Encode encodes the values into “URL encoded” form ("?bar=baz&foo=quux") sorted by key.
glacier/glacier.go:65
↓ 3 callers
Method
generateSigningKey
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 callers
Function
toHex
Return a new copy of the input byte array that is hex encoded.
aws.go:97
↓ 3 callers
Function
treeHash
treeHash calculates the root-level treeHash given sequential leaf nodes.
glacier/treehash.go:37
↓ 3 callers
Function
uriEncodeString
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 callers
Method
CreateHash
CreateHash returns the root-level hex-encoded hash to send in the CompleteMultipart request.
glacier/treehash.go:27
↓ 2 callers
Method
GetDataRetrievalPolicy
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 callers
Method
SetRetrievalPolicy
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 callers
Function
charRequiresEncoding
Tests if a character requires encoding in a URI.
aws.go:39
↓ 2 callers
Method
policy
policy returns the URL prefix of the named policy, without a trailing slash.
glacier/glacier.go:34
↓ 2 callers
Function
testConnection
(t *testing.T)
glacier/glacier_test.go:10
↓ 1 callers
Method
AbortMultipart
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 callers
Method
CompleteMultipart
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 callers
Method
DeleteArchive
Deletes archive from vault. Returns the first error encountered.
glacier/archive.go:66
↓ 1 callers
Method
InitiateMultipart
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 callers
Function
KeysFromFile
Get secret and access ID keys (in that order) from a file.
aws.go:110
↓ 1 callers
Method
ListMultipartParts
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 callers
Function
MemoryPayload
Returns a payload that hashes the memory and then uses it as the requests body.
aws.go:442
↓ 1 callers
Function
NewConnection
NewConnection returns a Connection with an initialized signature based on the provided access credentials and region.
glacier/glacier.go:40
↓ 1 callers
Method
Payload
()
aws.go:433
↓ 1 callers
Method
TreeHashFromMultipartUpload
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 callers
Method
UploadMultipart
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 callers
Function
buildAWSSuite
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 callers
Function
getAWSSuiteFiles
Get a list of the files in the AWS test suite.
aws_test.go:32
↓ 1 callers
Function
stringRequiresEncoding
Tests if a character requires encoding in a URI.
aws.go:45
↓ 1 callers
Function
testVault
(t *testing.T)
glacier/glacier_test.go:32
Function
BenchmarkNewSignature
(b *testing.B)
aws_test.go:175
Function
BenchmarkSignatureSign
(b *testing.B)
aws_test.go:183
Function
BenchmarkToDataRetrievalPolicyFastPath
(b *testing.B)
glacier/policy_test.go:33
Function
BenchmarkToDataRetrievalPolicySlowPath
(b *testing.B)
glacier/policy_test.go:39
Function
BenchmarkTreeHash
(b *testing.B)
glacier/treehash_test.go:135
Function
BenchmarkTreeHashClose
(b *testing.B)
glacier/treehash_test.go:183
Function
BenchmarkTreeHashReset
(b *testing.B)
glacier/treehash_test.go:154
Method
CreateVault
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
Method
DeleteVault
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
Method
DeleteVaultNotifications
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
Method
DescribeJob
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
Method
DescribeVault
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
Method
GetInventoryJob
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
Method
GetRetrievalJob
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
Method
GetVaultNotifications
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
Function
HashedPayload
Returns a payload that just returns the precomputed hash. The requests body is untouched.
aws.go:485
Method
InitiateInventoryJob
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
Method
InitiateRetrievalJob
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
Function
KeysFromEnviroment
Get secret and access ID keys (in that order) from environment variables AWS_SECRET_KEY and AWS_ACCESS_KEY.
aws.go:105
Method
ListJobs
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
Method
ListMultipartUploads
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
Method
ListVaults
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
Function
ParseError
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
Method
Payload
()
aws.go:446
Method
Payload
()
aws.go:462
Method
Payload
()
aws.go:489
Method
Read
(p []byte)
glacier/multipart_test.go:22
Function
ReadSeekerPayload
Returns a payload that reads the ReadSeeker to hash it and then reads it again when sending the request.
aws.go:458
Method
SetVaultNotifications
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
Function
TestDataRetrievalPolicy
(t *testing.T)
glacier/policy_test.go:45
Function
TestGetInventoryJob
(t *testing.T)
glacier/jobs_test.go:8
Function
TestHugeParts
(t *testing.T)
glacier/multipart_test.go:41
Function
TestKeysFromFile
(t *testing.T)
aws_test.go:250
Function
TestListJobs
(t *testing.T)
glacier/jobs_test.go:18
Function
TestMediumParts
(t *testing.T)
glacier/multipart_test.go:37
Function
TestMultiTreeHasher
(t *testing.T)
glacier/treehash_test.go:21
Function
TestSignErrors
(t *testing.T)
aws_test.go:214
Function
TestSignature
(t *testing.T)
aws_test.go:114
Function
TestSmallFewParts
(t *testing.T)
glacier/multipart_test.go:29
Function
TestSmallManyParts
(t *testing.T)
glacier/multipart_test.go:33
Function
TestToDataRetrievalPolicy
(t *testing.T)
glacier/policy_test.go:8
Function
TestTreeHash
(t *testing.T)
glacier/treehash_test.go:57
Function
TestTreeHashCloseEmpty
(t *testing.T)
glacier/treehash_test.go:127
Method
UploadArchive
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
Function
init
()
aws.go:29