githubrelease

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package githubrelease resolves explicitly requested newer-compatible bundles from published GitHub Release assets. It trusts HTTPS to the configured API endpoint; the archive descriptor digest detects altered artifact content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	Client              *http.Client
	BaseURL             string
	AssetName           string
	DescriptorAssetName string
	MaxPages            int
	MaxMetadataBytes    int64
	MaxAssetBytes       int64
}

Source implements skillsync.ReleaseSource against the GitHub Releases API.

func (Source) NewerCompatible

func (s Source) NewerCompatible(ctx context.Context, matched skillsync.Source, current string) (skillsync.BundleDescriptor, fs.FS, error)

NewerCompatible returns ErrNoNewerCompatible when the matched bundle remains the newest compatible stable choice; callers then retain their embed.

Jump to

Keyboard shortcuts

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