Skip to content

awsutils: new package for aws-specific utilities#14

Merged
arl merged 2 commits intomasterfrom
add-awsutils-pkg
Jul 28, 2020
Merged

awsutils: new package for aws-specific utilities#14
arl merged 2 commits intomasterfrom
add-awsutils-pkg

Conversation

@arl
Copy link
Copy Markdown
Collaborator

@arl arl commented Jul 27, 2020

❓ What

Describe what this pull request does.

Introduce awsutils package, at the moment it contains:

  • awsDefaultBackoff becomes awsutils.DefaultBackoff
  • regions map becomes awsutils.IsValidRegion(region string) func

make the necessary changes to the other package that were using those values.

🔨 How to test

  1. List all steps necessary;
  2. To test this pull request.

✅ Checklists

This section contains a list of checklists for common uses, please delete the checklists that are useless for your current use case (or add another checklist if your use case isn't covered yet).

  • Is there unit/integration test coverage for all new and/or changed functionality added in this PR?
  • Have the changes in this PR been functionally tested?
  • Has make gofmt-write been run on the code?
  • Has make govet been run on the code? Has the code been fixed accordingly to the output?
  • Have the changes been added to the CHANGELOG.md file?
  • Have the steps in CONTRIBUTING.md been followed to update a Go module?

Copy link
Copy Markdown
Contributor

@tommyblue tommyblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just 2 minor comments

Comment thread CHANGELOG.md Outdated
Comment thread awsutils/regions.go Outdated
"sa-east-1": {},
}

// IsValidRegion reports whether a region is a valid aws region string.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// IsValidRegion reports whether a region is a valid aws region string.
// IsValidRegion reports whether a region is a valid AWS region identifier.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@arl arl force-pushed the add-awsutils-pkg branch from 266608c to 780b87a Compare July 28, 2020 13:15
arl added 2 commits July 28, 2020 15:16
 - `awsDefaultBackoff` becomes `awsutils.DefaultBackoff`
 - `regions` map becomes `awsutils.IsValidRegion(region string)` func
@arl arl merged commit 47aeb4e into master Jul 28, 2020
@arl arl deleted the add-awsutils-pkg branch July 28, 2020 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants