Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Apr 25, 2024
1 parent fdd6748 commit 8515743
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion cmd/assess.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

var assessCmd = &cobra.Command{
Use: "assess",
Short: "Execute assessment queries agains data loaded in Neo4J",
Short: "Execute assessment queries against data loaded in Neo4J",
Run: func(cmd *cobra.Command, args []string) {
if cmd.Flags().Changed(flagVerbose) {
logger.SetVerboseLevel()
Expand Down
88 changes: 44 additions & 44 deletions connector/cloud_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,54 +24,54 @@ func SetActions() {
func (cc *CloudConnector) DumpAll(cloudprovider string, c chan map[string]interface{}) {
switch strings.ToLower(cloudprovider) {
case "aws":
// whoami := cc.AWSConfig.DumpWhoami()
// c <- map[string]interface{}{
// "Whoami": whoami,
// }
// credentialReport := cc.AWSConfig.DumpCredentialReport()
// c <- map[string]interface{}{
// "CredentialReport": credentialReport,
// }
// groups := cc.AWSConfig.DumpIAMGroups()
// c <- map[string]interface{}{
// "Groups": groups,
// }
// users := cc.AWSConfig.DumpIAMUsers()
// c <- map[string]interface{}{
// "Users": users,
// }
// roles := cc.AWSConfig.DumpIAMRoles()
// c <- map[string]interface{}{
// "Roles": roles,
// }
whoami := cc.AWSConfig.DumpWhoami()
c <- map[string]interface{}{
"Whoami": whoami,
}
credentialReport := cc.AWSConfig.DumpCredentialReport()
c <- map[string]interface{}{
"CredentialReport": credentialReport,
}
groups := cc.AWSConfig.DumpIAMGroups()
c <- map[string]interface{}{
"Groups": groups,
}
users := cc.AWSConfig.DumpIAMUsers()
c <- map[string]interface{}{
"Users": users,
}
roles := cc.AWSConfig.DumpIAMRoles()
c <- map[string]interface{}{
"Roles": roles,
}
buckets := cc.AWSConfig.DumpBuckets()
c <- map[string]interface{}{
"Buckets": buckets,
}
// ec2 := cc.AWSConfig.DumpEC2Instances()
// c <- map[string]interface{}{
// "EC2s": ec2,
// }
// vpc := cc.AWSConfig.DumpVpcs()
// c <- map[string]interface{}{
// "VPCs": vpc,
// }
// lambda := cc.AWSConfig.DumpLambdas()
// c <- map[string]interface{}{
// "Lambdas": lambda,
// }
// rds := cc.AWSConfig.DumpRDS()
// c <- map[string]interface{}{
// "RDS": rds,
// }
// dynamodb := cc.AWSConfig.DumpDynamoDBs()
// c <- map[string]interface{}{
// "DynamoDBs": dynamodb,
// }
// redshift := cc.AWSConfig.DumpRedshiftDBs()
// c <- map[string]interface{}{
// "RedshiftDBs": redshift,
// }
ec2 := cc.AWSConfig.DumpEC2Instances()
c <- map[string]interface{}{
"EC2s": ec2,
}
vpc := cc.AWSConfig.DumpVpcs()
c <- map[string]interface{}{
"VPCs": vpc,
}
lambda := cc.AWSConfig.DumpLambdas()
c <- map[string]interface{}{
"Lambdas": lambda,
}
rds := cc.AWSConfig.DumpRDS()
c <- map[string]interface{}{
"RDS": rds,
}
dynamodb := cc.AWSConfig.DumpDynamoDBs()
c <- map[string]interface{}{
"DynamoDBs": dynamodb,
}
redshift := cc.AWSConfig.DumpRedshiftDBs()
c <- map[string]interface{}{
"RedshiftDBs": redshift,
}
close(c)
default:
}
Expand Down

0 comments on commit 8515743

Please sign in to comment.