-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- refactor code to remove harcoded values
- create constants file for packages
- Loading branch information
1 parent
bc6c1b4
commit a3cfae0
Showing
11 changed files
with
143 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package cmd | ||
|
||
const ( | ||
localstackEndpoint string = "http://localhost:4566" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package config | ||
|
||
const ( | ||
localstackEndpoint string = "http://localhost:4566" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package internal | ||
|
||
// ContextKey represents context key. | ||
type ContextKey string | ||
|
||
// A collection of context keys. | ||
const ( | ||
KeyFactory ContextKey = "factory" | ||
KeyApp ContextKey = "app" | ||
KeyActiveProfile ContextKey = "active-profile" | ||
KeyActiveRegion ContextKey = "active-region" | ||
KeySession ContextKey = "session" | ||
BucketName ContextKey = "bucket_name" | ||
ObjectName ContextKey = "object_name" | ||
FolderName ContextKey = "folder_name" | ||
KeyAliases ContextKey = "aliases" | ||
UserName ContextKey = "user_name" | ||
GroupName ContextKey = "group_name" | ||
RoleName ContextKey = "role_name" | ||
VpcId ContextKey = "vpc_id" | ||
LowercaseY string = "y" | ||
UppercaseY string = "Y" | ||
LowercaseYes string = "yes" | ||
UppercaseYes string = "YES" | ||
LowercaseN string = "n" | ||
UppercaseN string = "N" | ||
LowercaseNo string = "no" | ||
UppercaseNo string = "NO" | ||
LowercaseEc2 string = "ec2" | ||
UppercaseEc2 string = "Ec2" | ||
LowercaseS3 string = "s3" | ||
UppercaseS3 string = "S3" | ||
LowercaseEBS string = "ebs" | ||
UppercaseEBS string = "EBS" | ||
LowercaseSg string = "sg" | ||
UppercaseSg string = "SG" | ||
LowercaseIamUser string = "iam:u" | ||
UppercaseIamUser string = "IAM:U" | ||
LowercaseIam string = "iam" | ||
UppercaseIam string = "IAM" | ||
LowercaseIamGroup string = "iam:g" | ||
UppercaseIamGroup string = "IAM:g" | ||
LowercaseIamRole string = "iam:r" | ||
UppercaseIamRole string = "IAM:R" | ||
LowercaseEc2Snapshot string = "ec2:S" | ||
UppercaseEc2Snapshot string = "Ec2:S" | ||
LowercaseEc2Image string = "ec2:i" | ||
UppercaseEc2Image string = "Ec2:I" | ||
LowercaseSQS string = "sqs" | ||
UppercaseSQS string = "SQS" | ||
LowercaseVPC string = "vpc" | ||
UppercaseVPC string = "VPC" | ||
LowercaseSubnet string = "subnet" | ||
UppercaseSubnet string = "SUBNET" | ||
LowercaseLamda string = "lambda" | ||
UppercaseLamda string = "LAMBDA" | ||
Help string = "help" | ||
LowercaseH string = "h" | ||
QuestionMark string = "?" | ||
Quit string = "quit" | ||
LowercaseQ string = "q" | ||
UppercaseQ string = "Q" | ||
QFactorial string = "q!" | ||
Aliases string = "aliases" | ||
Alias string = "alias" | ||
LowercaseA string = "a" | ||
Object string = "OBJ" | ||
UserPolicy string = "User Policy" | ||
UserGroupPolicy string = "User Group Policy" | ||
RolePolicy string = "Role Policy" | ||
GroupUsers string = "Group Users" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters