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" )
Click to show internal directories.
Click to hide internal directories.