srpmproc

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 36 Imported by: 0

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 Fetch added in v0.2.1

func Fetch(logger io.Writer, cdnUrl string, dir string, storage blob.Storage) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL