feat: add K2V_ENDPOINT env var

This commit is contained in:
Milas Bowman 2025-03-09 20:51:43 -04:00
parent 97bedfe1aa
commit 231423cd0b
Signed by: milas
SSH key fingerprint: SHA256:ek2D5l1HA34B3wbdErz0QOXm1E46CVvyf/nM4Fwfx/U
3 changed files with 20 additions and 6 deletions

View file

@ -4,6 +4,7 @@ import "os"
const EnvVarKeyID = "K2V_KEY_ID"
const EnvVarKeySecret = "K2V_KEY_SECRET"
const EnvVarEndpoint = "K2V_ENDPOINT"
func KeyFromEnv() Key {
return Key{
@ -11,3 +12,7 @@ func KeyFromEnv() Key {
Secret: os.Getenv(EnvVarKeySecret),
}
}
func EndpointFromEnv() string {
return os.Getenv(EnvVarEndpoint)
}