envoy

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 12 Imported by: 0

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

func (d *Downloader) DownloadBinary(ctx context.Context, version string, destPath string) error

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

func (m *Manager) GetDownloadedVersions() ([]string, error)

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

func (*Manager) SetVersion

func (m *Manager) SetVersion(ctx context.Context, version string, forceDownload bool) (string, error)

SetVersion downloads and installs a specific version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL