feat: add K2V_ENDPOINT env var
This commit is contained in:
parent
97bedfe1aa
commit
231423cd0b
3 changed files with 20 additions and 6 deletions
5
auth.go
5
auth.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue