repogen

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Overview

Package repogen regenerates deterministic APT, RPM/DNF, and APK repository metadata with the spike-selected native tools and publishes every SHA-256 and SHA-512 APT by-hash object advertised by the generated Release document.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator regenerates all native repository metadata from canonical package trees.

func New

func New(options Options) *Generator

New constructs a Generator with stable image defaults.

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, request pkgrepo.GenerateRequest) error

Generate implements pkgrepo.Generator.

type Options

type Options struct {
	// DockerPath overrides the docker executable. Empty resolves "docker" from PATH.
	DockerPath string
	// DebianImage overrides the Debian repository-tool image.
	DebianImage string
	// FedoraImage overrides the Fedora repository-tool image.
	FedoraImage string
	// AlpineImage overrides the Alpine repository-tool image.
	AlpineImage string
	// APKSigningKey is the absolute aggregate APK index private-key path.
	APKSigningKey string
	// Environ is the child process environment. Nil inherits the parent.
	Environ []string
	// Stderr receives live container diagnostics. Nil discards them.
	Stderr io.Writer
}

Options configures a Generator.

Directories

Path Synopsis
Package mocks provides generated repository metadata generation test doubles.
Package mocks provides generated repository metadata generation test doubles.

Jump to

Keyboard shortcuts

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