srpmproc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 38 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, fs billy.Filesystem, storage blob.Storage) error

func FindDistro added in v0.5.0

func FindDistro(cdn string) (string, bool)

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

type LookasidePath struct {
	Distro string
	Url    string
}

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
	PackageGitName 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

	ModuleBranchNames bool
}

Jump to

Keyboard shortcuts

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