-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated high-level environment framework (#369)
- Loading branch information
1 parent
8756443
commit 3dd90fd
Showing
2 changed files
with
30 additions
and
22 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 |
---|---|---|
@@ -1,36 +1,39 @@ | ||
package environment | ||
|
||
import ( | ||
"github.com/openziti/zrok/environment/env_v0_3" | ||
"github.com/openziti/zrok/environment/env_core" | ||
"github.com/openziti/zrok/rest_client_zrok" | ||
) | ||
|
||
type Root interface { | ||
} | ||
|
||
func Load() (Root, error) { | ||
Metadata() *env_core.Metadata | ||
IsLatest() bool | ||
HasConfig() (bool, error) | ||
Config() *env_core.Config | ||
SetConfig(cfg *env_core.Config) error | ||
Client() (*rest_client_zrok.Zrok, error) | ||
ApiEndpoint() (string, string) | ||
Environment() *env_core.Environment | ||
DeleteEnvironment() error | ||
IsEnabled() (bool, error) | ||
ZitiIdentityFile(name string) (string, error) | ||
SaveZitiIdentity(name, data string) error | ||
DeleteZitiIdentity(name string) error | ||
Obliterate() error | ||
} | ||
|
||
func ListRoots() ([]*env_core.Metadata, 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 LoadRoot() (Root, error) { | ||
return nil, nil | ||
} | ||
|
||
func SaveZitiIdentity(name, data string) error { | ||
return env_v0_3.SaveZitiIdentity(name, data) | ||
func LoadRootVersion(m *env_core.Metadata) (Root, error) { | ||
return nil, nil | ||
} | ||
|
||
func DeleteZitiIdentity(name string) error { | ||
return env_v0_3.DeleteZitiIdentity(name) | ||
func UpdateRoot(r Root) (Root, error) { | ||
return nil, nil | ||
} |
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