INNER CODE UNIT · Go
main
platform-engineering-labs/formae · internal/workflow_tests/cmd/test-oidc-issuer/main.go:33
func main() {
dir := os.Args[1]
load := func() control {
var c control
b, e := os.ReadFile(filepath.Join(dir, "control.json"))
if e != nil {
panic(e)
}
if e = json.Unmarshal(b, &c); e != nil {
panic(e)
}
return c
}
key := func(name string) *rsa.PrivateKey {
b, e := os.ReadFile(filepath.Join(dir, name+".pem"))
if e != nil {
panic(e)
}