Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBaseDir = "/var/lib/elchi/envoys" ArchiveURL = "https://archive.elchi.io/index.json" DefaultArch = "linux-amd64" DownloadTimeout = 300 // 5 minutes )
Constants
Variables ¶
This section is empty.
Functions ¶
func NewPermissionManager ¶
func NewPermissionManager() *common.PermissionManager
Types ¶
type ArchiveResponse ¶
type ArchiveResponse struct {
Releases []common.ArchiveRelease `json:"releases"`
}
ArchiveResponse represents the full response from archive API
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader() *Downloader
func (*Downloader) DownloadBinary ¶
DownloadBinary downloads a binary for the given version and architecture
func (*Downloader) GetAvailableVersions ¶
func (d *Downloader) GetAvailableVersions(ctx context.Context) (*ArchiveResponse, error)
GetAvailableVersions fetches available versions from archive API
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) GetDownloadedVersions ¶
GetDownloadedVersions returns list of locally downloaded versions
func (*Manager) ProcessEnvoyVersionCommand ¶
func (m *Manager) ProcessEnvoyVersionCommand(ctx context.Context, request *client.RequestEnvoyVersion) *client.ResponseEnvoyVersion
ProcessEnvoyVersionCommand handles the envoy version command
Click to show internal directories.
Click to hide internal directories.