mirror of
https://github.com/goreleaser/nfpm
synced 2024-05-27 21:26:16 +02:00
32 lines
1.3 KiB
Go
32 lines
1.3 KiB
Go
// Package nfpm provides ways to package programs in some linux packaging
|
|
// formats.
|
|
package nfpm
|
|
|
|
import "io"
|
|
|
|
// Packager represents any packager implementation
|
|
type Packager interface {
|
|
Package(info Info, w io.Writer) error
|
|
}
|
|
|
|
// Info contains information about the package
|
|
type Info struct {
|
|
Name string `yaml:"name,omitempty"`
|
|
Arch string `yaml:"arch,omitempty"`
|
|
Platform string `yaml:"platform,omitempty"`
|
|
Version string `yaml:"version,omitempty"`
|
|
Section string `yaml:"section,omitempty"`
|
|
Priority string `yaml:"priority,omitempty"`
|
|
Replaces []string `yaml:"replaces,omitempty"`
|
|
Provides []string `yaml:"provides,omitempty"`
|
|
Depends []string `yaml:"depends,omitempty"`
|
|
Conflicts []string `yaml:"conflicts,omitempty"`
|
|
Maintainer string `yaml:"maintainer,omitempty"`
|
|
Description string `yaml:"description,omitempty"`
|
|
Vendor string `yaml:"vendor,omitempty"`
|
|
Homepage string `yaml:"homepage,omitempty"`
|
|
License string `yaml:"license,omitempty"`
|
|
Files map[string]string `yaml:"files,omitempty"`
|
|
ConfigFiles map[string]string `yaml:"config_files,omitempty"`
|
|
}
|