()
| 26 | } |
| 27 | |
| 28 | func SetAuthKeyFromEnv() error { |
| 29 | authkey = os.Getenv(WaveAuthKeyEnv) |
| 30 | if authkey == "" { |
| 31 | return fmt.Errorf("no auth key found in environment variables") |
| 32 | } |
| 33 | os.Unsetenv(WaveAuthKeyEnv) |
| 34 | return nil |
| 35 | } |
| 36 | |
| 37 | func GetAuthKey() string { |
| 38 | return authkey |
no outgoing calls
no test coverage detected