Help us shape the future of Go! Take the 2026 Go Developer Survey

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

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