data

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 15 Imported by: 0

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

func StrContains(a []string, b string) bool

Types

type FsCreatorFunc added in v0.2.0

type FsCreatorFunc func(branch string) (billy.Filesystem, error)

type IgnoredSource

type IgnoredSource struct {
	Name         string
	HashFunction hash.Hash
	Expired      bool
}

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 ModeData

type ModeData struct {
	Name            string
	Repo            *git.Repository
	Worktree        *git.Worktree
	FileWrites      map[string][]byte
	TagBranch       string
	PushBranch      string
	Branches        []string
	SourcesToIgnore []*IgnoredSource
	BlobCache       map[string][]byte
}

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
	TaglessMode          bool
	Cdn                  string
	ModuleBranchNames    bool
}

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

Jump to

Keyboard shortcuts

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