spool

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSpoolURL = "https://github.com/Muxcore-Media/spool"

DefaultSpoolURL is the official MuxCore spool.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagDefinition

type TagDefinition struct {
	Name        string      `json:"name"`
	Description string      `json:"description"`
	Version     string      `json:"version"`
	Modules     []TagModule `json:"modules"`
}

TagDefinition is a curated module preset fetched from a spool.

func FetchTag

func FetchTag(spoolURL, tagName string) (*TagDefinition, error)

FetchTag fetches a tag definition from a spool URL. spoolURL is the base URL (e.g., "https://github.com/Muxcore-Media/spool"). tagName is the tag to fetch (e.g., "default"). Security: rejects non-HTTPS URLs, blocks private/reserved IPs, caps response at 1MB.

type TagModule

type TagModule struct {
	Repo     string `json:"repo"`
	Version  string `json:"version"`
	Required bool   `json:"required"`
	// Checksum is the expected SHA256 hex digest of the built binary.
	// When non-empty, the module manager verifies the built binary
	// against this checksum before execution (SLSA L3 provenance check).
	// Empty means no verification (backward compatible with old spool tags).
	Checksum string `json:"checksum,omitempty"`
}

TagModule is a single module entry in a tag definition.

Jump to

Keyboard shortcuts

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