loader revisited

This commit is contained in:
Ilia Denisov
2026-03-16 19:52:02 +02:00
committed by GitHub
parent e6c6970947
commit 3f1776aa5f
30 changed files with 1581 additions and 527 deletions
+9 -2
View File
@@ -9,6 +9,11 @@ import (
"galaxy/model/report"
)
const (
// ArtifactKindExecutable identifies a downloadable standalone executable artifact.
ArtifactKindExecutable = "executable"
)
// Connector is a main interface to provide connectivity with app's server.
type Connector interface {
UIConnector
@@ -33,10 +38,12 @@ type UIConnector interface {
}
type VersionInfo struct {
OS string `json:"os"` // Operating System name (unix, darwin, windows, etc.)
OS string `json:"os"` // Operating System name (linux, darwin, windows, etc.)
Arch string `json:"arch"` // Target CPU architecture name (amd64, arm64, etc.)
Kind string `json:"kind"` // Artifact kind, currently [ArtifactKindExecutable].
Version string `json:"version"` // Semver format: X.Y.Z
URL string `json:"url"` // Artifact download URL for this version
Checksum SHA256Digest `json:"sha256"` // Base64 SHA-256 checksum for artifact binary data
Checksum SHA256Digest `json:"sha256"` // Hex SHA-256 checksum for artifact binary data
}
// SHA256Digest represents a SHA-256 digest in raw binary form.