This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 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
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
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
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,31 @@ | ||
package stageziti | ||
|
||
import ( | ||
"github.com/openziti/fablab/kernel/lib/runlevel/2_kitting/devkit" | ||
"github.com/openziti/fablab/kernel/model" | ||
) | ||
|
||
func FetchZitiEdgeTunnel(version string) model.ConfigurationStage { | ||
return &ZitiEdgeTunnelFetchStage{ | ||
Version: version, | ||
} | ||
} | ||
|
||
type ZitiEdgeTunnelFetchStage struct { | ||
Version string | ||
OS string | ||
Arch string | ||
} | ||
|
||
func (self *ZitiEdgeTunnelFetchStage) Configure(run model.Run) error { | ||
return devkit.FetchBinaries(func(binDir string) error { | ||
if self.OS == "" { | ||
self.OS = "linux" | ||
} | ||
if self.Arch == "" { | ||
self.Arch = "amd64" | ||
} | ||
panic("not yet implemented") | ||
//return getziti.InstallZitiEdgeTunnel(self.Version, self.OS, self.Arch, binDir, false) | ||
}).Configure(run) | ||
} |