apk

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package apk provides functionality for building Alpine Linux APK packages.

Package apk provides Alpine Linux package building functionality and constants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apk

type Apk struct {
	*common.BaseBuilder
}

Apk represents the APK package builder. It embeds the common.BaseBuilder to inherit shared functionality.

func NewBuilder

func NewBuilder(pkgBuild *pkgbuild.PKGBUILD) *Apk

NewBuilder creates a new APK package builder.

func (*Apk) BuildPackage

func (a *Apk) BuildPackage(artifactsPath string, targetArch string) (string, error)

BuildPackage creates an APK package in pure Go without external dependencies. The package is created as a gzip-compressed tar archive containing the package files and metadata (.PKGINFO and optional .install script). Returns the path to the created APK file.

func (*Apk) PrepareFakeroot

func (a *Apk) PrepareFakeroot(artifactsPath string, targetArch string) error

PrepareFakeroot sets up the APK package metadata. It generates the .PKGINFO file and optional install scripts for lifecycle hooks.

Jump to

Keyboard shortcuts

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