Documentation ¶
Overview ¶
Package rpmpack packs files to rpm files. It is designed to be simple to use and deploy, not requiring any filesystem access to create rpm files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWriteAfterClose is returned when a user calls Write() on a closed rpm. ErrWriteAfterClose = errors.New("rpm write after close") // ErrWrongFileOrder is returned when files are not sorted by name. ErrWrongFileOrder = errors.New("wrong file addition order") )
Functions ¶
This section is empty.
Types ¶
type RPM ¶
type RPM struct { RPMMetaData // contains filtered or unexported fields }
RPM holds the state of a particular rpm file. Please use NewRPM to instantiate it.
func FromTar ¶
func FromTar(inp io.Reader, md RPMMetaData) (*RPM, error)
FromTar reads a tar file and creates an rpm stuct.
type RPMMetaData ¶
RPMMetaData contains meta info about the whole package.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
rpmsample
rpmsample creates an rpm file with some known files, which can be used to test rpmpack's output against other rpm implementations.
|
rpmsample creates an rpm file with some known files, which can be used to test rpmpack's output against other rpm implementations. |
Click to show internal directories.
Click to hide internal directories.