Code re-organization
Some checks failed
Go Tests / build (1.22.x) (push) Failing after 1m27s

This commit is contained in:
2025-01-26 18:20:45 -05:00
parent b93d1c29b8
commit 85938a2def
21 changed files with 685 additions and 348 deletions

24
config/aws.go Normal file
View File

@@ -0,0 +1,24 @@
package config
import "github.com/bigkevmcd/go-configparser"
type awsConfig struct {
AwsKey string
AwsSecret string
AwsToken string
AwsRegion string
AwsBucket string
AwsRole string
}
func getAwsConfig(p *configparser.ConfigParser) *awsConfig {
ac := &awsConfig{}
ac.AwsKey, _ = p.Get("aws", "key")
ac.AwsSecret, _ = p.Get("aws", "secret")
ac.AwsToken, _ = p.Get("aws", "token")
ac.AwsRegion, _ = p.Get("aws", "region")
ac.AwsBucket, _ = p.Get("aws", "bucket")
ac.AwsRole, _ = p.Get("aws", "role")
return ac
}