flatpak

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 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 flatpak writes self-contained Flatpak bundles in Go. The format is an OSTree static delta from an empty base with inline parts and Flatpak metadata; neither GLib nor the Linux packaging tools run during a build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(b Bundle, entries []Entry) ([]byte, error)

Write makes a complete offline bundle. Payload entries must include files/ and export/ as applicable; metadata is added by this function. It rejects ambiguous entry paths, absolute links and lexical link escapes, and leaves inputs untouched.

Types

type Bundle

type Bundle struct {
	ID, Arch, Branch string
	Metadata         string
	Timestamp        uint64
}

Bundle identifies an application and its runtime. Metadata is the Flatpak keyfile stored both in the commit and in the bundle's metadata header.

type Entry

type Entry struct {
	Name string
	Data []byte
	Mode uint32
	Link string
	Dir  bool
}

Entry is a regular file, directory or symbolic link relative to the commit root. Mode holds Unix permission bits; ownership is always root.

Jump to

Keyboard shortcuts

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