Skip to content

Commit bb796a8

Browse files
committed
Rename gen/ package directory to service/ for consistency
1 parent 40fee40 commit bb796a8

File tree

53 files changed

+50
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+50
-50
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ install-gen:
44
go install ./cmd/...
55

66
generate: install-gen
7-
go generate ./gen
8-
go install ./gen/...
7+
go generate ./service
8+
go install ./service/...

README.md

+2-2

cmd/aws-gen-gocli/aws-gen-gocli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Command aws-gen-gocli parses a JSON description of an AWS API and generates a
22
// Go file containing a client for the API.
33
//
4-
// aws-gen-gocli EC2 apis/ec2/2014-10-01.api.json gen/ec2/ec2.go
4+
// aws-gen-gocli EC2 apis/ec2/2014-10-01.api.json service/ec2/ec2.go
55
package main
66

77
import (

cmd/aws-gen-goendpoints/aws-gen-goendpoints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Command aws-gen-goendpoints parses a JSON description of the AWS endpoint
22
// discovery logic and generates a Go file which returns an endpoint.
33
//
4-
// aws-gen-goendpoints apis/_endpoints.json gen/endpoints/endpoints.go
4+
// aws-gen-goendpoints apis/_endpoints.json service/endpoints/endpoints.go
55
package main
66

77
import (

internal/route53_serialization_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/awslabs/aws-sdk-go/aws"
8-
"github.com/awslabs/aws-sdk-go/gen/route53"
8+
"github.com/awslabs/aws-sdk-go/service/route53"
99
)
1010

1111
func TestRoute53RequestSerialization(t *testing.T) {

internal/unmarshal_xml_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77

88
"github.com/awslabs/aws-sdk-go/aws"
9-
"github.com/awslabs/aws-sdk-go/gen/iam"
10-
"github.com/awslabs/aws-sdk-go/gen/sqs"
9+
"github.com/awslabs/aws-sdk-go/service/iam"
10+
"github.com/awslabs/aws-sdk-go/service/sqs"
1111
)
1212

1313
func Test_SQSUnmarshalXML(t *testing.T) {

gen/autoscaling/autoscaling.go renamed to service/autoscaling/autoscaling.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/cloudformation/cloudformation.go renamed to service/cloudformation/cloudformation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/cloudfront/cloudfront.go renamed to service/cloudfront/cloudfront.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/cloudsearch/cloudsearch.go renamed to service/cloudsearch/cloudsearch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/cloudsearchdomain/cloudsearchdomain.go renamed to service/cloudsearchdomain/cloudsearchdomain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/cloudtrail/cloudtrail.go renamed to service/cloudtrail/cloudtrail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// CloudTrail is a client for AWS CloudTrail.

gen/cloudwatch/cloudwatch.go renamed to service/cloudwatch/cloudwatch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/codedeploy/codedeploy.go renamed to service/codedeploy/codedeploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// CodeDeploy is a client for AWS CodeDeploy.

gen/cognito/identity/identity.go renamed to service/cognito/identity/identity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// CognitoIdentity is a client for Amazon Cognito Identity.

gen/cognito/sync/sync.go renamed to service/cognito/sync/sync.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/config/config.go renamed to service/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// Config is a client for AWS Config.

gen/datapipeline/datapipeline.go renamed to service/datapipeline/datapipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// DataPipeline is a client for AWS Data Pipeline.

gen/directconnect/directconnect.go renamed to service/directconnect/directconnect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// DirectConnect is a client for AWS Direct Connect.
File renamed without changes.

gen/dynamodb/integration_test.go renamed to service/dynamodb/integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/awslabs/aws-sdk-go/aws"
12-
"github.com/awslabs/aws-sdk-go/gen/dynamodb"
12+
"github.com/awslabs/aws-sdk-go/service/dynamodb"
1313
)
1414

1515
var dynamoDBClient *dynamodb.DynamoDB
File renamed without changes.

gen/ec2/ec2.go renamed to service/ec2/ec2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// EC2 is a client for Amazon Elastic Compute Cloud.

gen/elasticache/elasticache.go renamed to service/elasticache/elasticache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/elasticbeanstalk/elasticbeanstalk.go renamed to service/elasticbeanstalk/elasticbeanstalk.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/elastictranscoder/elastictranscoder.go renamed to service/elastictranscoder/elastictranscoder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/elb/elb.go renamed to service/elb/elb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/emr/emr.go renamed to service/emr/emr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// EMR is a client for Amazon Elastic MapReduce.
File renamed without changes.

gen/gen.go renamed to service/gen.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Package gen contains automatically generated AWS clients.
2-
package gen
1+
// Package service contains automatically generated AWS clients.
2+
package service
33

44
//go:generate ../../../../../bin/aws-gen-goendpoints ../apis/_endpoints.json endpoints/endpoints.go
55
//go:generate ../../../../../bin/aws-gen-gocli AutoScaling ../apis/autoscaling/2011-01-01.normal.json autoscaling/autoscaling.go

gen/iam/iam.go renamed to service/iam/iam.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/importexport/importexport.go renamed to service/importexport/importexport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/kinesis/kinesis.go renamed to service/kinesis/kinesis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// Kinesis is a client for Amazon Kinesis.

gen/kms/kms.go renamed to service/kms/kms.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// KMS is a client for AWS Key Management Service.
File renamed without changes.
File renamed without changes.

gen/logs/logs.go renamed to service/logs/logs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// Logs is a client for Amazon CloudWatch Logs.

gen/opsworks/opsworks.go renamed to service/opsworks/opsworks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// OpsWorks is a client for AWS OpsWorks.

gen/rds/rds.go renamed to service/rds/rds.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/redshift/redshift.go renamed to service/redshift/redshift.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/route53/route53.go renamed to service/route53/route53.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/route53domains/route53domains.go renamed to service/route53domains/route53domains.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// Route53Domains is a client for Amazon Route 53 Domains.
File renamed without changes.
File renamed without changes.

gen/sdb/sdb.go renamed to service/sdb/sdb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/ses/ses.go renamed to service/ses/ses.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/sns/sns.go renamed to service/sns/sns.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/sqs/integration_test.go renamed to service/sqs/integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/sqs"
11+
"github.com/awslabs/aws-sdk-go/service/sqs"
1212
)
1313

1414
var sqsClient *sqs.SQS

gen/sqs/sqs.go renamed to service/sqs/sqs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
import (

gen/storagegateway/storagegateway.go renamed to service/storagegateway/storagegateway.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/awslabs/aws-sdk-go/aws"
11-
"github.com/awslabs/aws-sdk-go/gen/endpoints"
11+
"github.com/awslabs/aws-sdk-go/service/endpoints"
1212
)
1313

1414
// StorageGateway is a client for AWS Storage Gateway.

0 commit comments

Comments
 (0)