first round of the multi-version environment proxy (#369)

This commit is contained in:
Michael Quigley 2023-07-11 15:47:13 -04:00
parent c468c7ace9
commit 875644398f
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 47 additions and 0 deletions

36
environment/api.go Normal file
View File

@ -0,0 +1,36 @@
package environment
import (
"github.com/openziti/zrok/environment/env_v0_3"
)
type Root interface {
}
func Load() (Root, error) {
return nil, nil
}
func IsEnabled() (bool, error) {
return env_v0_3.IsEnabled()
}
func DeleteEnvironment() error {
return env_v0_3.DeleteEnvironment()
}
func HasConfig() (bool, error) {
return env_v0_3.HasConfig()
}
func ZitiIdentityFile(name string) (string, error) {
return env_v0_3.ZitiIdentityFile(name)
}
func SaveZitiIdentity(name, data string) error {
return env_v0_3.SaveZitiIdentity(name, data)
}
func DeleteZitiIdentity(name string) error {
return env_v0_3.DeleteZitiIdentity(name)
}

View File

@ -0,0 +1,11 @@
package env_core
type Environment struct {
Token string
ZitiIdentity string
ApiEndpoint string
}
type Config struct {
ApiEndpoint string
}