Documentation
¶
Index ¶
- Constants
- func Fetch(logger io.Writer, cdnUrl string, dir string, fs billy.Filesystem, ...) error
- func FindDistro(cdn string) (string, bool)
- func NewProcessData(req *ProcessDataRequest) (*data.ProcessData, error)
- func ProcessRPM(pd *data.ProcessData) (*srpmprocpb.ProcessResponse, error)
- type LookasidePath
- type ProcessDataRequest
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 FindDistro ¶ added in v0.5.0
Given a "--cdn" entry like "centos", we can search through our struct list of distros, and return the proper lookaside URL If we can't find it, we return false and the calling function will error out
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 LookasidePath ¶ added in v0.5.0
func StaticLookasides ¶ added in v0.5.0
func StaticLookasides() []LookasidePath
List of distros and their lookaside patterns If we find one of these passed as --cdn (ex: "--cdn fedora"), then we override, and assign this URL to be our --cdn-url
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
TaglessMode bool
Cdn string
}
Click to show internal directories.
Click to hide internal directories.