mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
first round of the multi-version environment proxy (#369)
This commit is contained in:
parent
c468c7ace9
commit
875644398f
36
environment/api.go
Normal file
36
environment/api.go
Normal 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)
|
||||
}
|
11
environment/env_core/model.go
Normal file
11
environment/env_core/model.go
Normal file
@ -0,0 +1,11 @@
|
||||
package env_core
|
||||
|
||||
type Environment struct {
|
||||
Token string
|
||||
ZitiIdentity string
|
||||
ApiEndpoint string
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
ApiEndpoint string
|
||||
}
|
Loading…
Reference in New Issue
Block a user