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
//go:build integration // +build integration package codepipeline import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/codepipeline" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package codestar import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/codestar" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListProjects(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Backg...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package cognitoidentityprovider import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-g...
67
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package configservice import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/configservice" "github.com/aws/aws-sdk-go-v2/service/configservice/types" "github.com/aws/aws-sdk-go-v2/service/internal/in...
67
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package costandusagereportservice import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/costandusagereportservice" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeReportDefinitions(t *testing.T) { ctx...
32
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package databasemigrationservice import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/databasemigrationservice" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package devicefarm import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/devicefarm" "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 directconnect import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/directconnect" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package directoryservice import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/directoryservice" "github.com/aws/aws-sdk-go-v2/service/directoryservice/types" "github.com/aws/aws-sdk-go-v2/service/in...
68
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package docdb import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/docdb" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeDBEn...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package dynamodb import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/dynamodb" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListTa...
67
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package ec2 import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeRegions(t *testing.T) { ctx, cancelFn := co...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package ecr import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/ecr" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeReposito...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package ecs import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/ecs" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListClusters(t *...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package efs import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/efs" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeFileSyst...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elasticache import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/elasticache" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elasticbeanstalk import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func Tes...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elasticloadbalancing import ( "context" "errors" "testing" "time" elb "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeLoadBa...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elasticsearchservice import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/elasticsearchservice" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) ...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elastictranscoder import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/elastictranscoder" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func T...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package elasticloadbalancingv2 import ( "context" "errors" "testing" "time" elbv2 "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_Describe...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package emr import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/emr" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListClusters(t *...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package eventbridge import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/eventbridge" "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 firehose import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/firehose" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListDel...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package gamelift import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/gamelift" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListBu...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package glacier import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/glacier" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListVaul...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package glue import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/glue" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_GetCatalogImportStatus(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Back...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package health import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/health" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_DescribeEntityAggregates(t *testing.T) { ctx, cancelFn := context.WithTimeout(contex...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package iam import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/iam" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListUsers(t *tes...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package inspector import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/inspector" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_List...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package iot import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/iot" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListPolicies(t *...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package kinesis import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/kinesis" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListStre...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package kms import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/kms" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/smithy-go" ) func TestInteg_00_ListAliases(t *t...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package lambda import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/lambda" "github.com/aws/smithy-go" ) func TestInteg_00_ListFunctio...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package lightsail import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/lightsail" ) func TestInteg_00_GetActiveNames(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Ba...
48
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package marketplacecommerceanalytics import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics" "github.com/aws...
53
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package neptune import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/neptune" "github.com/aws/smithy-go" ) func TestInteg_00_DescribeD...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package opsworks import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/opsworks" "github.com/aws/smithy-go" ) func TestInteg_00_Describ...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package pinpointemail import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/pinpointemail" "github.com/aws/smithy-go" ) func TestInteg_...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package polly import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/polly" ) func TestInteg_00_DescribeVoices(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package rds import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/rds" "github.com/aws/smithy-go" ) func TestInteg_00_DescribeDBEngineV...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package redshift import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/redshift" "github.com/aws/smithy-go" ) func TestInteg_00_Describ...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package rekognition import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/rekognition" ) func TestInteg_00_ListCollections(t *testing.T) { ctx, cancelFn := context.WithTimeout(conte...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package route53 import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/route53" "github.com/aws/smithy-go" ) func TestInteg_00_ListHoste...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package route53domains import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/route53domains" "github.com/aws/smithy-go" ) func TestInte...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package route53resolver import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/route53resolver" "github.com/aws/smithy-go" ) func TestIn...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "strings" "testing" ) func TestInteg_WriteToObject(t *testing.T) { cases := map[string]writeToObjectTestData{ "seekable body": {Body: strings.NewReader("hello world"), ExpectBody: []byte("hello world")}, "empty string body": {Body: strings.N...
28
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "bytes" "context" "fmt" "io/ioutil" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" s3types "github.com/aws/aws-sdk-go-v2/service/s3/types" "git...
492
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "strings" "testing" ) func TestInteg_AccessPoint_WriteToObject(t *testing.T) { cases := map[string]writeToObjectTestData{ "seekable body": {Body: strings.NewReader("hello world"), ExpectBody: []byte("hello world")}, } for name, c := range cases ...
21
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "context" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/s3" ) func TestInteg_XSIType(t *testing.T) { key := integrationtest.UniqueID() ctx, cancelFn := context.WithTimeou...
52
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "bytes" "context" "fmt" "io" "io/ioutil" "net/http" "strconv" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/a...
299
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "bytes" "context" "crypto/tls" "flag" "fmt" "io" "io/ioutil" "net/http" "os" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/arn" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "g...
403
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3 import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/s3" ) func TestInteg_00_ListBuckets(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*tim...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3control import ( "context" "errors" "testing" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3control" "github.com/aws/aws-sdk-go-v2/service/s3control/types" ) func TestInteg_PublicAccessBlock(t *testing.T) { ctx := context.Bac...
29
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3control import ( "context" "crypto/tls" "flag" "fmt" "net/http" "os" "testing" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/s3control" "github.com/aws/aws-sdk-...
134
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package s3shared import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/aws/aws-sdk-go-v2/service/s3control" ) // BucketPrefix is...
149
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package secretsmanager import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/secretsmanager" "github.com/aws/smithy-go" ) func TestInte...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package servicecatalog import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/servicecatalog" ) func TestInteg_00_ListAcceptedPortfolioShares(t *testing.T) { ctx, cancelFn := context...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package ses import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/ses" "github.com/aws/smithy-go" ) func TestInteg_00_ListIdentities(t ...
64
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package sfn import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/sfn" ) func TestInteg_00_ListActivities(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), ...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package shield import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/shield" ) func TestInteg_00_ListAttacks(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package snowball import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/snowball" ) func TestInteg_00_DescribeAddresses(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.B...
31
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package sns import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/sns" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListTopics(t *te...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package sqs import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/sqs" "github.com/aws/smithy-go" ) func TestInteg_00_ListQueues(t *tes...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package ssm import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/ssm" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_ListDocuments(t ...
65
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package sts import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/sts" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_GetCallerIdentit...
70
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package support import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/support" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" ) func TestInteg_00_Describe...
69
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package timestreamwrite import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" tw "github.com/aws/aws-sdk-go-v2/service/timestreamwrite" "testing" "time" ) func TestInteg_00_ListDatabases(t *testing.T) {...
35
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package transcribestreaming import ( "bytes" "context" "encoding/base64" "flag" "fmt" "io" "os" "strings" "sync" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2...
200
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package waf import ( "context" "testing" "time" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/waf" ) func TestInteg_00_ListRules(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*tim...
33
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package wafregional import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/wafregional" "github.com/aws/smithy-go" ) func TestInteg_00_L...
69
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package wafv2 import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/wafv2" "github.com/aws/aws-sdk-go-v2/service/wafv2/types" "github.com/aws/smithy-go" "github.com/aws/aws-sdk-go-v2/service/interna...
66
aws-sdk-go-v2
aws
Go
//go:build integration // +build integration package workspaces import ( "context" "errors" "testing" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/workspaces" "github.com/aws/smithy-go" ) func TestInteg_00_Des...
60
aws-sdk-go-v2
aws
Go
package presignedurl import ( "context" "github.com/aws/smithy-go/middleware" ) // WithIsPresigning adds the isPresigning sentinel value to a context to signal // that the middleware stack is using the presign flow. // // Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues // to clear ...
49
aws-sdk-go-v2
aws
Go
// Package presignedurl provides the customizations for API clients to fill in // presigned URLs into input parameters. package presignedurl
4
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package presignedurl // goModuleVersion is the tagged release for this module const goModuleVersion = "1.9.28"
7
aws-sdk-go-v2
aws
Go
package presignedurl import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" ) // URLPresigner provides the interface to presign the input parameters in to a // presigned URL. type URLPresigner in...
111
aws-sdk-go-v2
aws
Go
package presignedurl import ( "context" "net/http" "strings" "testing" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" 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" "github.com/google/go-cmp/cmp" ) func...
152
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" "fmt" "github.com/aws/smithy-go/middleware" "github.com/aws/aws-sdk-go-v2/aws/arn" ) // ARNLookup is the initial middleware that looks up if an arn is provided. // This middleware is responsible for fetching ARN from a arnable field, and registering the ARN on // middleware c...
74
aws-sdk-go-v2
aws
Go
package s3shared import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/internal/s3shared/arn" ) // TODO: fix these error statements to be relevant to v2 sdk const ( invalidARNErrorErrCode = "InvalidARNError" configurationErrorErrCode = "ConfigurationError" ) // InvalidARNError denotes the error for Invalid A...
184
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package s3shared // goModuleVersion is the tagged release for this module const goModuleVersion = "1.14.3"
7
aws-sdk-go-v2
aws
Go
package s3shared import ( "github.com/aws/smithy-go/middleware" ) // hostID is used to retrieve host id from response metadata type hostID struct { } // SetHostIDMetadata sets the provided host id over middleware metadata func SetHostIDMetadata(metadata *middleware.Metadata, id string) { metadata.Set(hostID{}, id)...
30
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" "github.com/aws/smithy-go/middleware" ) // clonedInputKey used to denote if request input was cloned. type clonedInputKey struct{} // SetClonedInputKey sets a key on context to denote input was cloned previously. // // Scoped to stack values. Use github.com/aws/smithy-go/middle...
29
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) const metadataRetrieverID = "S3MetadataRetriever" // AddMetadataRetrieverMiddleware adds request id, host id retriever midd...
53
aws-sdk-go-v2
aws
Go
package s3shared import ( "fmt" "strings" awsarn "github.com/aws/aws-sdk-go-v2/aws/arn" "github.com/aws/aws-sdk-go-v2/service/internal/s3shared/arn" ) // ResourceRequest represents an ARN resource and api request metadata type ResourceRequest struct { Resource arn.Resource // RequestRegion is the region config...
78
aws-sdk-go-v2
aws
Go
package s3shared import ( "errors" "fmt" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" ) // ResponseError provides the HTTP centric error type wrapping the underlying error // with the HTTP response value and the deserialized RequestID. type ResponseError struct { *awshttp.ResponseError // HostID a...
34
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // AddResponseErrorMiddleware adds response error wrapper middlew...
61
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" "fmt" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) const s3100ContinueID = "S3100Continue" const default100ContinueThresholdBytes int64 = 1024 * 1024 * 2 // Add100Continue add middleware, which adds {Expect: 100-continue} header ...
55
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" "github.com/aws/aws-sdk-go-v2/internal/awstesting" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "testing" ) // unit test for service/internal/s3shared/s3100continue.go func TestAdd100ContinueHttpHeader(t *testing.T) { const Header...
97
aws-sdk-go-v2
aws
Go
package s3shared import ( "context" "fmt" "strings" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" awsmiddle "github.com/aws/aws-sdk-go-v2/aws/middleware" ) // EnableDualstack represents middleware struct for enabling dualstack support // // Deprecated: See Endpoin...
79
aws-sdk-go-v2
aws
Go
package s3shared import ( "encoding/xml" "fmt" "io" "net/http" "strings" ) // ErrorComponents represents the error response fields // that will be deserialized from an xml error response body type ErrorComponents struct { Code string `xml:"Code"` Message string `xml:"Message"` RequestID string `xml:"Re...
90
aws-sdk-go-v2
aws
Go
package s3shared import ( "strings" "testing" ) func TestGetResponseErrorCode(t *testing.T) { const xmlErrorResponse = `<Error> <Type>Sender</Type> <Code>InvalidGreeting</Code> <Message>Hi</Message> <HostId>bar-id</HostId> <RequestId>foo-id</RequestId> </Error>` const wrappedXMLErrorResponse ...
103
aws-sdk-go-v2
aws
Go
package arn import ( "strings" "github.com/aws/aws-sdk-go-v2/aws/arn" ) // AccessPointARN provides representation type AccessPointARN struct { arn.ARN AccessPointName string } // GetARN returns the base ARN for the Access Point resource func (a AccessPointARN) GetARN() arn.ARN { return a.ARN } // ParseAccessP...
54
aws-sdk-go-v2
aws
Go
package arn import ( "reflect" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws/arn" ) func TestParseAccessPointResource(t *testing.T) { cases := map[string]struct { ARN arn.ARN ExpectErr string ExpectARN AccessPointARN }{ "account-id not set": { ARN: arn.ARN{ Partition: "aws", Se...
119
aws-sdk-go-v2
aws
Go
package arn import ( "fmt" "strings" "github.com/aws/aws-sdk-go-v2/aws/arn" ) var supportedServiceARN = []string{ "s3", "s3-outposts", "s3-object-lambda", } func isSupportedServiceARN(service string) bool { for _, name := range supportedServiceARN { if name == service { return true } } return false ...
86
aws-sdk-go-v2
aws
Go
package arn import ( "reflect" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws/arn" ) func TestParseResource(t *testing.T) { cases := map[string]struct { Input string MappedResources map[string]func(arn.ARN, []string) (Resource, error) Expect Resource ExpectErr string }{ ...
171
aws-sdk-go-v2
aws
Go
package arn import ( "strings" "github.com/aws/aws-sdk-go-v2/aws/arn" ) // OutpostARN interface that should be satisfied by outpost ARNs type OutpostARN interface { Resource GetOutpostID() string } // ParseOutpostARNResource will parse a provided ARNs resource using the appropriate ARN format // and return a sp...
129
aws-sdk-go-v2
aws
Go
package arn import ( "reflect" "strings" "testing" "github.com/aws/aws-sdk-go-v2/aws/arn" ) func TestParseOutpostAccessPointARNResource(t *testing.T) { cases := map[string]struct { ARN arn.ARN ExpectErr string ExpectARN OutpostAccessPointARN }{ "region not set": { ARN: arn.ARN{ Partition: ...
292
aws-sdk-go-v2
aws
Go
package arn // S3ObjectLambdaARN represents an ARN for the s3-object-lambda service type S3ObjectLambdaARN interface { Resource isS3ObjectLambdasARN() } // S3ObjectLambdaAccessPointARN is an S3ObjectLambdaARN for the Access Point resource type type S3ObjectLambdaAccessPointARN struct { AccessPointARN } func (s S...
16
aws-sdk-go-v2
aws
Go
package config import "context" // UseARNRegionProvider is an interface for retrieving external configuration value for UseARNRegion type UseARNRegionProvider interface { GetS3UseARNRegion(ctx context.Context) (value bool, found bool, err error) } // ResolveUseARNRegion extracts the first instance of a UseARNRegion...
23