forked from toolshed/abra
refactor: drop old/upstream TODOs
This commit is contained in:
@ -74,7 +74,6 @@ func ReadSecretEnvVars(appEnv config.AppEnv) map[string]string {
|
||||
return secretEnvVars
|
||||
}
|
||||
|
||||
// TODO: should probably go in the config/app package?
|
||||
func ParseSecretEnvVarName(secretEnvVar string) string {
|
||||
withoutPrefix := strings.TrimPrefix(secretEnvVar, "SECRET_")
|
||||
withoutSuffix := strings.TrimSuffix(withoutPrefix, "_VERSION")
|
||||
@ -83,7 +82,6 @@ func ParseSecretEnvVarName(secretEnvVar string) string {
|
||||
return name
|
||||
}
|
||||
|
||||
// TODO: should probably go in the config/app package?
|
||||
func ParseGeneratedSecretName(secret string, appEnv config.App) string {
|
||||
name := fmt.Sprintf("%s_", appEnv.StackName())
|
||||
withoutAppName := strings.TrimPrefix(secret, name)
|
||||
@ -93,7 +91,6 @@ func ParseGeneratedSecretName(secret string, appEnv config.App) string {
|
||||
return parsed
|
||||
}
|
||||
|
||||
// TODO: should probably go in the config/app package?
|
||||
func ParseSecretEnvVarValue(secret string) (secretValue, error) {
|
||||
values := strings.Split(secret, "#")
|
||||
if len(values) == 0 {
|
||||
|
Reference in New Issue
Block a user