update

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultReleaseManifestURL     = "https://github.com/Ani-HQ/thirdshift/releases/latest/download/release-manifest.json"
	DefaultReleasePublicKeyBase64 = noderuntime.DefaultRuntimePublicKeyBase64
)

Variables

This section is empty.

Functions

func LoadManifestBytes

func LoadManifestBytes(path string) (noderuntime.ReleaseManifest, error)

func VerifyDownloadedArtifact

func VerifyDownloadedArtifact(manifest noderuntime.ReleaseManifest, platformKey, artifactPath string, publicKey ed25519.PublicKey) error

Types

type Manager

type Manager struct {
	InstallDir    string
	CurrentBinary string
	PublicKey     ed25519.PublicKey
	PlatformKey   string
	HTTPClient    *http.Client
}

func (Manager) Update

func (m Manager) Update(ctx context.Context, manifestLocation string) (Result, error)

type Result

type Result struct {
	Version        string `json:"version"`
	BuildID        string `json:"build_id"`
	InstalledPath  string `json:"installed_path"`
	PreviousPath   string `json:"previous_path"`
	ArtifactSHA256 string `json:"artifact_sha256"`
}

Jump to

Keyboard shortcuts

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