garage-k2v-go/auth.go

13 lines
215 B
Go

package k2v
import "os"
const EnvVarKeyID = "K2V_KEY_ID"
const EnvVarKeySecret = "K2V_KEY_SECRET"
func KeyFromEnv() Key {
return Key{
ID: os.Getenv(EnvVarKeyID),
Secret: os.Getenv(EnvVarKeySecret),
}
}