loader revisited
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user