nativeinstaller

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nativeinstaller serves qualified native distributions. It has no execution responsibilities; every installed daemon uses the common protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	SHA256 string `json:"sha256"`
	URL    string `json:"url,omitempty"`
}

type Catalog

type Catalog struct {
	Version         string              `json:"version"`
	ProtocolVersion string              `json:"protocol_version"`
	Artifacts       map[string]Artifact `json:"artifacts"`
	// contains filtered or unexported fields
}

func Load

func Load(directory, version string) (*Catalog, error)

Load checks the matched catalog without downloading execution payloads. Local offline archives are verified once; the directory stays immutable while serving. A directory without catalog.json holds no installer and returns nil.

func (*Catalog) Commands

func (c *Catalog) Commands(installerBase, authorization string) map[string]string

Commands installs this catalog's version from the installer base URL.

func (*Catalog) ServeHTTP

func (c *Catalog) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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