Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFromFs ¶
func CopyFromFs(from billy.Filesystem, to billy.Filesystem, path string) error
func IgnoredContains ¶
func IgnoredContains(a []*IgnoredSource, b string) bool
func StrContains ¶
Types ¶
type FsCreatorFunc ¶ added in v0.2.0
type FsCreatorFunc func(branch string) (billy.Filesystem, error)
type ImportMode ¶
type ImportMode interface {
RetrieveSource(pd *ProcessData) (*ModeData, error)
WriteSource(pd *ProcessData, md *ModeData) error
PostProcess(md *ModeData) error
ImportName(pd *ProcessData, md *ModeData) string
}
type ProcessData ¶
type ProcessData struct {
RpmLocation string
UpstreamPrefix string
Version int
GitCommitterName string
GitCommitterEmail string
Mode int
ModulePrefix string
ImportBranchPrefix string
BranchPrefix string
SingleTag string
Authenticator transport.AuthMethod
Importer ImportMode
BlobStorage blob.Storage
NoDupMode bool
ModuleMode bool
TmpFsMode string
NoStorageDownload bool
NoStorageUpload bool
ManualCommits []string
ModuleFallbackStream string
BranchSuffix string
StrictBranchMode bool
FsCreator FsCreatorFunc
CdnUrl string
Log *log.Logger
PackageVersion string
PackageRelease string
}
func (*ProcessData) CompareHash ¶ added in v0.3.0
func (pd *ProcessData) CompareHash(content []byte, checksum string) hash.Hash
CompareHash checks if content and checksum matches returns the hash type if success else nil
Click to show internal directories.
Click to hide internal directories.