Refactor static AWS functions

from a magic number in the code to a configurable list in configuration.yaml
This commit is contained in:
Maximilian Paß
2022-02-02 10:22:16 +01:00
parent f6d9a6ddbb
commit d603a8ebb0
5 changed files with 27 additions and 28 deletions

View File

@ -45,8 +45,9 @@ var (
Namespace: "default",
},
AWS: AWS{
Enabled: false,
Endpoint: "",
Enabled: false,
Endpoint: "",
Functions: "",
},
Logger: logger{
Level: "INFO",
@ -96,8 +97,9 @@ func (n *Nomad) URL() *url.URL {
// AWS configures the AWS Lambda usage.
type AWS struct {
Enabled bool
Endpoint string
Enabled bool
Endpoint string
Functions string
}
// TLS configures TLS on a connection.