Documentation
¶
Index ¶
- func CompareHash(content []byte, checksum string) hash.Hash
- func CopyFromFs(from billy.Filesystem, to billy.Filesystem, path string)
- func IgnoredContains(a []*IgnoredSource, b string) bool
- func StrContains(a []string, b string) bool
- type FsCreatorFunc
- type IgnoredSource
- type ImportMode
- type ModeData
- type ProcessData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHash ¶
check if content and checksum matches returns the hash type if success else nil
func CopyFromFs ¶
func CopyFromFs(from billy.Filesystem, to billy.Filesystem, path string)
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
SshKeyLocation string
SshUser string
Version int
GitCommitterName string
GitCommitterEmail string
Mode int
ModulePrefix string
ImportBranchPrefix string
BranchPrefix string
SingleTag string
Authenticator *ssh.PublicKeys
Importer ImportMode
BlobStorage blob.Storage
NoDupMode bool
ModuleMode bool
TmpFsMode string
NoStorageDownload bool
NoStorageUpload bool
ManualCommits []string
ModuleFallbackStream string
AllowStreamBranches bool
FsCreator FsCreatorFunc
}
Click to show internal directories.
Click to hide internal directories.