packager

package
v3.0.0-alpha.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package packager provides a simplified interface for creating Linux packages using nfpm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePackageFromConfig

func CreatePackageFromConfig(pkgType PackageType, configPath string, output string) error

CreatePackageFromConfig loads a configuration file and creates a package

func CreatePackageFromConfigWriter

func CreatePackageFromConfigWriter(pkgType PackageType, configPath string, output io.Writer) error

CreatePackageFromConfigWriter loads a configuration file and writes the package to the provided writer

Types

type PackageType

type PackageType string

PackageType represents supported package formats

const (
	// DEB is for Debian/Ubuntu packages
	DEB PackageType = "deb"
	// RPM is for RedHat/CentOS packages
	RPM PackageType = "rpm"
	// APK is for Alpine Linux packages
	APK PackageType = "apk"
	// IPK is for OpenWrt packages
	IPK PackageType = "ipk"
	// ARCH is for Arch Linux packages
	ARCH PackageType = "archlinux"
)

Jump to

Keyboard shortcuts

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