wip
This commit is contained in:
@@ -2,11 +2,45 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
|
||||
"queryorchestration/internal/rbac" // Replace with your actual module name
|
||||
)
|
||||
|
||||
//type DummyServiceConfig struct {
|
||||
// service.BaseConfig
|
||||
//}
|
||||
|
||||
func PrintEnvironmentVariables() {
|
||||
// Get all environment variables
|
||||
envVars := os.Environ()
|
||||
|
||||
// Sort them for consistent output
|
||||
sort.Strings(envVars)
|
||||
|
||||
// Print each variable in "key = value" format
|
||||
for _, env := range envVars {
|
||||
// Find the first equals sign to split the string
|
||||
for i := 0; i < len(env); i++ {
|
||||
if env[i] == '=' {
|
||||
key := env[:i]
|
||||
value := env[i+1:]
|
||||
fmt.Printf("%s = %s\n", key, value)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
PrintEnvironmentVariables()
|
||||
//cfg := &DummyServiceConfig{}
|
||||
//errGettingConfig := serviceconfig.InitializeConfig(cfg)
|
||||
//if errGettingConfig != nil {
|
||||
// log.Fatal(errGettingConfig)
|
||||
//}
|
||||
// use the config here for the key provider parameters
|
||||
// Example with local key provider for testing
|
||||
localProvider := rbac.NewLocalKeyProvider("private_key.pem", "public_key.pem")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user