Documentation
¶
Index ¶
Constants ¶
View Source
const ( RpmPrefixCentOS = "https://git.centos.org/rpms" ModulePrefixCentOS = "https://git.centos.org/modules" RpmPrefixRocky = "https://git.rockylinux.org/staging/rpms" ModulePrefixRocky = "https://git.rockylinux.org/staging/modules" UpstreamPrefixRocky = "https://git.rockylinux.org/staging" )
Variables ¶
This section is empty.
Functions ¶
func NewProcessData ¶ added in v0.2.0
func NewProcessData(req *ProcessDataRequest) (*data.ProcessData, error)
func ProcessRPM ¶
func ProcessRPM(pd *data.ProcessData) (*srpmprocpb.ProcessResponse, error)
ProcessRPM checks the RPM specs and discards any remote files This functions also sorts files into directories .spec files goes into -> SPECS metadata files goes to root source files goes into -> SOURCES all files that are remote goes into .gitignore all ignored files' hash goes into .{Name}.metadata
Types ¶
type ProcessDataRequest ¶ added in v0.2.0
type ProcessDataRequest struct {
// Required
Version int
StorageAddr string
Package string
// Optional
ModuleMode bool
TmpFsMode string
ModulePrefix string
RpmPrefix string
SshKeyLocation string
SshUser string
HttpUsername string
HttpPassword string
ManualCommits string
UpstreamPrefix string
GitCommitterName string
GitCommitterEmail string
ImportBranchPrefix string
BranchPrefix string
FsCreator data.FsCreatorFunc
NoDupMode bool
BranchSuffix string
StrictBranchMode bool
ModuleFallbackStream string
NoStorageUpload bool
NoStorageDownload bool
SingleTag string
CdnUrl string
LogWriter io.Writer
PackageVersion string
PackageRelease string
}
Click to show internal directories.
Click to hide internal directories.