voidpackage

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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 voidpackage writes XBPS archives for Void Linux. The wire contract is documented at https://man.voidlinux.org/xbps-create.1 and exercised against the official XBPS tools; no package-manager implementation is embedded here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileName

func FileName(metadata Metadata) (string, error)

func Write

func Write(ctx context.Context, output io.Writer, options Options) error

Write uses supported gzip compression and bounded payload buffers. Hashes are checked again while writing so a changing input cannot publish a false manifest.

Types

type Entry

type Entry struct {
	Source, Destination, Type string // Type is file, config, dir or symlink.
	Mode                      os.FileMode
	Owner, Group              string
	MTime                     time.Time
}

type Metadata

type Metadata struct {
	Name, Version, Revision, Arch              string
	Description, Maintainer, Homepage, License string
	SourceVersion                              string
	Depends, Provides, Conflicts, Replaces     []string
}

type Options

type Options struct {
	Metadata
	Contents        []Entry
	MTime           time.Time
	Install, Remove []byte
}

Jump to

Keyboard shortcuts

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