-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first round of the multi-version environment proxy (#369)
- Loading branch information
1 parent
c468c7a
commit 8756443
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package env_core | ||
|
||
type Environment struct { | ||
Token string | ||
ZitiIdentity string | ||
ApiEndpoint string | ||
} | ||
|
||
type Config struct { | ||
ApiEndpoint string | ||
} |