Skip to content

Commit

Permalink
first round of the multi-version environment proxy (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Jul 11, 2023
1 parent c468c7a commit 8756443
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
36 changes: 36 additions & 0 deletions environment/api.go
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)
}
11 changes: 11 additions & 0 deletions environment/env_core/model.go
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
}

0 comments on commit 8756443

Please sign in to comment.