diff options
Diffstat (limited to 'service/env/environment.go')
-rw-r--r-- | service/env/environment.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/env/environment.go b/service/env/environment.go new file mode 100644 index 00000000..8e89d2c8 --- /dev/null +++ b/service/env/environment.go @@ -0,0 +1,11 @@ +package env + +// Provider aggregates list of environment variables. This interface can be used in custom implementation to drive +// values from external sources. +type Environment interface { + // GetEnv must return list of env variables. + GetEnv() (map[string]string, error) + + // SetEnv sets or creates environment value. + SetEnv(key, value string) +} |