repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Disables the Amazon I...
128
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Disassociates a membe...
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
175
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Enables the Am...
169
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
117
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
118
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
132
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
144
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
230
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
229
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
224
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
227
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
230
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
245
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
231
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
225
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Lists all tags attach...
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
224
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "gith...
217
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Adds tags to a resour...
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Removes tags from a r...
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
139
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
132
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
144
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/...
129
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the Amazon In...
123
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "bytes" "context" "encoding/json" "fmt" "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" smithy "github.com/aws/smithy-go" smithyio "github.com/aws/smithy-go/io" "github...
16,173
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package inspector2 provides the API client, operations, and parameter types for // Inspector2. // // Amazon Inspector is a vulnerability discovery service that automates continuous // scanning for security vulnerabilities within your Amazon EC2 and Amazon ECR // e...
10
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "errors" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" internalendpoints "github.com/aws/aws-sdk-go-v2/service/inspector2/internal/endpoints" "github.com/aws/smithy-g...
201
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package inspector2 // goModuleVersion is the tagged release for this module const goModuleVersion = "1.15.0"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "bytes" "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/...
4,821
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package inspector2 import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) type validateOpAssociateMember struct { } func (*validateOpAssociateMember) ID() stri...
2,296
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "github.com/aws/aws-sdk-go-v2/aws" endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" "github.com/aws/smithy-go/logging" "regexp" ) // Options is the endpoint resolver configuration options type Options struct { // Logger...
364
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "testing" ) func TestRegexCompile(t *testing.T) { _ = defaultPartitions }
12
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types type AccountSortBy string // Enum values for AccountSortBy const ( AccountSortByCritical AccountSortBy = "CRITICAL" AccountSortByHigh AccountSortBy = "HIGH" AccountSortByAll AccountSortBy = "ALL" ) // Values returns all known values for A...
1,442
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // You do not have sufficient access to perform this action. type AccessDeniedException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *AccessDeniedExceptio...
234
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( smithydocument "github.com/aws/smithy-go/document" "time" ) // An Amazon Web Services account within your environment that Amazon Inspector // has been enabled for. type Account struct { // The ID of the Amazon Web Services account. // ...
2,709
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types_test import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func ExampleAggregationRequest_outputUsage() { var union types.AggregationRequest // type switches can be used to check the union value switch v := union.(type) { case...
125
aws-sdk-go-v2
aws
Go
package acceptencoding import ( "compress/gzip" "context" "fmt" "io" "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) const acceptEncodingHeaderKey = "Accept-Encoding" const contentEncodingHeaderKey = "Content-Encoding" // AddAcceptEncodi...
177
aws-sdk-go-v2
aws
Go
package acceptencoding import ( "bytes" "compress/gzip" "context" "encoding/hex" "io" "io/ioutil" "net/http" "testing" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) func TestAddAcceptEncodingGzip(t *testing.T) { cases := map[string]struct { Enable bool }{ ...
216
aws-sdk-go-v2
aws
Go
/* Package acceptencoding provides customizations associated with Accept Encoding Header. # Accept encoding gzip The Go HTTP client automatically supports accept-encoding and content-encoding gzip by default. This default behavior is not desired by the SDK, and prevents validating the response body's checksum. To pre...
23
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package acceptencoding // goModuleVersion is the tagged release for this module const goModuleVersion = "1.9.11"
7
aws-sdk-go-v2
aws
Go
package benchmark import ( "bytes" "compress/gzip" "context" "fmt" "io" "io/ioutil" "net/http" "os" "path/filepath" "strconv" "testing" "github.com/aws/aws-sdk-go-v2/internal/awstesting/unit" "github.com/aws/aws-sdk-go-v2/service/dynamodb" awsOld "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-...
254
aws-sdk-go-v2
aws
Go
// Package benchmark provides benchmarks for the v2 SDK's Amazon DynamoDB API // client. // // Includes benchmarks for the client's customizations, and compares the v2 SDK // against the v1 SDK's legacy performance. // // Example command to run the benchmark // // go test -bench "/default" -run NONE -v -benchtime=10s -...
11
aws-sdk-go-v2
aws
Go
// Package benchmark provides benchmark tests for the AWS Lex runtime service // generated API client. package benchmark
4
aws-sdk-go-v2
aws
Go
package benchmark import ( "bytes" "context" "io/ioutil" "net/http" "path/filepath" "testing" "github.com/aws/aws-sdk-go-v2/internal/awstesting/unit" smithyClient "github.com/aws/aws-sdk-go-v2/service/lexruntimeservice" v1Aws "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/corehandlers" v1Cr...
116
aws-sdk-go-v2
aws
Go
package benchmark import ( "bytes" "context" "io/ioutil" "net/http" "testing" "github.com/aws/aws-sdk-go-v2/internal/awstesting/unit" smithyClient "github.com/aws/aws-sdk-go-v2/service/lexruntimeservice" "github.com/aws/aws-sdk-go-v2/service/lexruntimeservice/types" v1Aws "github.com/aws/aws-sdk-go/aws" "gi...
178
aws-sdk-go-v2
aws
Go
package benchmark import ( "bytes" "flag" "fmt" "io" "os" "testing" smithyClient "github.com/aws/aws-sdk-go-v2/service/lexruntimeservice" "github.com/aws/smithy-go/middleware" ) var ( disableSmithySigning bool ) func init() { flag.BoolVar(&disableSmithySigning, "disable-smithy-signing", false, "Instruct...
54
aws-sdk-go-v2
aws
Go
package s3
2
aws-sdk-go-v2
aws
Go
package s3 import ( "context" "io" "io/ioutil" "net/http" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" smithyhttp "github.com/aws/smithy-go/transport/http" ) func init() { var s strings.Builder io.Copy(&s, io.LimitReader(byteReader('a'), 1024*1024*12)) ...
67
aws-sdk-go-v2
aws
Go
package schemas
2
aws-sdk-go-v2
aws
Go
package schemas import ( "bytes" "context" "io/ioutil" "net/http" "testing" "github.com/aws/aws-sdk-go-v2/service/schemas" "github.com/aws/smithy-go/ptr" smithyhttp "github.com/aws/smithy-go/transport/http" ) func init() { largeBytePayload = make([]byte, 1024*1024*12) } var largeBytePayload []byte func Be...
57
aws-sdk-go-v2
aws
Go
package checksum import ( "crypto/md5" "crypto/sha1" "crypto/sha256" "encoding/base64" "encoding/hex" "fmt" "hash" "hash/crc32" "io" "strings" "sync" ) // Algorithm represents the checksum algorithms supported type Algorithm string // Enumeration values for supported checksum Algorithms. const ( // Algor...
324
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "bytes" "crypto/sha1" "crypto/sha256" "encoding/base64" "fmt" "hash/crc32" "io" "io/ioutil" "strings" "testing" "testing/iotest" "github.com/google/go-cmp/cmp" ) func TestComputeChecksumReader(t *testing.T) { cases := map[string]struct { In...
471
aws-sdk-go-v2
aws
Go
package checksum import ( "bytes" "fmt" "io" "strconv" "strings" ) const ( crlf = "\r\n" // https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html defaultChunkLength = 1024 * 64 awsTrailerHeaderName = "x-amz-trailer" decodedContentLengthHeaderName = "x-amz-decoded-content-length" ...
390
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "bytes" "fmt" "io" "io/ioutil" "strings" "testing" "testing/iotest" "github.com/google/go-cmp/cmp" ) func TestAWSChunkedEncoding(t *testing.T) { cases := map[string]struct { reader *awsChunkedEncoding expectErr string ...
508
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package checksum // goModuleVersion is the tagged release for this module const goModuleVersion = "1.1.29"
7
aws-sdk-go-v2
aws
Go
package checksum import ( "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // InputMiddlewareOptions provides the options for the request // checksum middleware setup. type InputMiddlewareOptions struct { // GetAlgorithm is a function to get the checksum algorithm of the...
186
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "context" "testing" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" ) func TestAddInputMiddleware(t *testing.T) { cases := map[string]struct { options InputMiddlewa...
413
aws-sdk-go-v2
aws
Go
package checksum import ( "context" "crypto/sha256" "fmt" "hash" "io" "strconv" v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) const ( contentMD5Header = "Content-Md5" streamingUnsignedP...
480
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "bytes" "context" "fmt" "io" "io/ioutil" "net/http" "net/url" "strings" "testing" "testing/iotest" v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyhttp "github.com...
959
aws-sdk-go-v2
aws
Go
package checksum import ( "context" "github.com/aws/smithy-go/middleware" ) // setupChecksumContext is the initial middleware that looks up the input // used to configure checksum behavior. This middleware must be executed before // input validation step or any other checksum middleware. type setupInputContext str...
118
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "context" "testing" "github.com/aws/smithy-go/middleware" ) func TestSetupInput(t *testing.T) { type Params struct { Value string } cases := map[string]struct { inputParams interface{} getAlgorithm func(interface{}) (string, bool) expectVa...
144
aws-sdk-go-v2
aws
Go
package checksum import ( "context" "fmt" "strings" "github.com/aws/smithy-go" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // outputValidationAlgorithmsUsedKey is the metadata key for indexing the algorithms // that were used,...
132
aws-sdk-go-v2
aws
Go
//go:build go1.16 // +build go1.16 package checksum import ( "bytes" "context" "fmt" "io/ioutil" "net/http" "strings" "testing" "testing/iotest" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/google/go-cmp/cmp" ) ...
264
aws-sdk-go-v2
aws
Go
package endpointdiscovery import ( "sync" "sync/atomic" ) // EndpointCache is an LRU cache that holds a series of endpoints // based on some key. The data structure makes use of a read write // mutex to enable asynchronous use. type EndpointCache struct { endpoints sync.Map endpointLimit int64 // size is use...
99
aws-sdk-go-v2
aws
Go
package endpointdiscovery import ( "net/url" "testing" "time" ) func TestEndpointCache_Get_prune(t *testing.T) { c := NewEndpointCache(2) c.Add(Endpoint{ Key: "foo", Addresses: []WeightedAddress{ { URL: &url.URL{ Host: "foo.amazonaws.com", }, Expired: time.Now().Add(5 * time.Minute), }...
47
aws-sdk-go-v2
aws
Go
/* Package endpointdiscovery provides a feature implemented in the AWS SDK for Go V2 that allows client to fetch a valid endpoint to serve an API request. Discovered endpoints are stored in an internal thread-safe cache to reduce the number of calls made to fetch the endpoint. Endpoint discovery stores endpoint by ass...
34
aws-sdk-go-v2
aws
Go
package endpointdiscovery import ( "net/url" "time" ) // Endpoint represents an endpoint used in endpoint discovery. type Endpoint struct { Key string Addresses WeightedAddresses } // WeightedAddresses represents a list of WeightedAddress. type WeightedAddresses []WeightedAddress // WeightedAddress repres...
95
aws-sdk-go-v2
aws
Go
package endpointdiscovery import ( "net/url" "reflect" "strconv" "testing" "time" ) func Test_cloneURL(t *testing.T) { tests := []struct { value *url.URL wantClone *url.URL }{ { value: &url.URL{ Scheme: "https", Opaque: "foo", User: nil, Host: "amazonaws.com...
124
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package endpointdiscovery // goModuleVersion is the tagged release for this module const goModuleVersion = "1.7.28"
7
aws-sdk-go-v2
aws
Go
package endpointdiscovery import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" ) // DiscoverEndpointOptions are opti...
104
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package eventstreamtesting // goModuleVersion is the tagged release for this module const goModuleVersion = "1.0.65"
7
aws-sdk-go-v2
aws
Go
// Package eventstreamtesting implements helper utilities for event stream protocol testing. package eventstreamtesting import ( "bytes" "context" "crypto/tls" "fmt" "io" "net/http" "net/http/httptest" "reflect" "strings" "sync" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk...
284
aws-sdk-go-v2
aws
Go
package integrationtest import ( "context" "crypto/rand" "fmt" "github.com/aws/smithy-go/middleware" "io" "log" "os" "strings" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" ) // LoadConfigWithDefaultRegion loads the default configuration for the SDK, and // falls back to a defaul...
56
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package integrationtest // goModuleVersion is the tagged release for this module const goModuleVersion = "tip"
7
aws-sdk-go-v2
aws
Go
package integrationtest import "github.com/aws/smithy-go/middleware" // RemoveOperationInputValidationMiddleware removes the validation middleware // from the stack. func RemoveOperationInputValidationMiddleware(stack *middleware.Stack) error { stack.Initialize.Remove("OperationInputValidation") return nil }
11
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package acm import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/acm" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListCertificates(...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package apigateway import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/apigateway" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_Ge...
67
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package applicationautoscaling import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/applicationautoscaling" "github.com/aws/aws-sdk-go-v2/service/applicationautoscaling/types" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) f...
35
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package applicationdiscoveryservice import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeAgents(t *testing.T) { ctx, cance...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package appstream import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/appstream" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeStacks(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.B...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package athena import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/athena" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListNamedQueries(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Backg...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package autoscaling import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/autoscaling" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_...
67
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package batch import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/batch" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeComputeEnvironments(t *testing.T) { ctx, cancelFn := context.WithTimeout(cont...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudformation import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudformation" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInt...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudfront import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudfront" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_Li...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudhsmv2 import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudhsmv2" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_De...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudsearch import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudsearch" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudtrail import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudtrail" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_De...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cloudwatch import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cloudwatch" "github.com/aws/aws-sdk-go-v2/service/cloudwatch/types" "github.com/aws/aws-sdk-go-v2/service/internal/integrationt...
69
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package codebuild import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/codebuild" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListBuilds(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Backg...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package codecommit import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/codecommit" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_Lis...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package codedeploy import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/codedeploy" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_Lis...
64