Versions in this module Expand all Collapse all v0 v0.6.0 Feb 15, 2024 Changes in this version type RPM + func (r *RPM) AddVerifyScript(s string) v0.5.0 Jul 10, 2023 Changes in this version + const SenseAny + const SenseEqual + const SenseGreater + const SenseLess + const SenseRPMLIB + var ErrWriteAfterClose = errors.New("rpm write after close") + var ErrWrongFileOrder = errors.New("wrong file addition order") + type FileType int32 + const ConfigFile + const DoNotUseFile + const DocFile + const ExcludeFile + const GenericFile + const GhostFile + const LicenceFile + const MissingOkFile + const NoReplaceFile + const ReadmeFile + const SpecFile + type IndexEntry struct + func EntryBytes(value []byte) IndexEntry + func EntryInt16(value []int16) IndexEntry + func EntryInt32(value []int32) IndexEntry + func EntryString(value string) IndexEntry + func EntryStringSlice(value []string) IndexEntry + func EntryUint16(value []uint16) IndexEntry + func EntryUint32(value []uint32) IndexEntry + type RPM struct + func FromTar(inp io.Reader, md RPMMetaData) (*RPM, error) + func NewRPM(m RPMMetaData) (*RPM, error) + func (r *RPM) AddCustomSig(tag int, e IndexEntry) + func (r *RPM) AddCustomTag(tag int, e IndexEntry) + func (r *RPM) AddFile(f RPMFile) + func (r *RPM) AddPostin(s string) + func (r *RPM) AddPosttrans(s string) + func (r *RPM) AddPostun(s string) + func (r *RPM) AddPrein(s string) + func (r *RPM) AddPretrans(s string) + func (r *RPM) AddPreun(s string) + func (r *RPM) AllowListDirs(allowList map[string]bool) + func (r *RPM) FullVersion() string + func (r *RPM) SetPGPSigner(f func([]byte) ([]byte, error)) + func (r *RPM) Write(w io.Writer) error + type RPMFile struct + Body []byte + Group string + MTime uint32 + Mode uint + Name string + Owner string + Type FileType + type RPMMetaData struct + Arch string + BuildHost string + BuildTime time.Time + Compressor string + Conflicts Relations + Description string + Epoch uint32 + Group string + Licence string + Name string + OS string + Obsoletes Relations + Packager string + Prefixes []string + Provides Relations + Recommends Relations + Release string + Requires Relations + Suggests Relations + Summary string + URL string + Vendor string + Version string + type Relation struct + Name string + Sense rpmSense + Version string + func NewRelation(related string) (*Relation, error) + func (r *Relation) Equal(o *Relation) bool + func (r *Relation) String() string + type Relations []*Relation + func (r *Relations) AddToIndex(h *index, nameTag, versionTag, flagsTag int) error + func (r *Relations) Set(value string) error + func (r *Relations) String() string