types

package
v0.0.0-...-7caaa2a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewProviderFunc

type NewProviderFunc func(
	repo RepositoryI,
	pkg_name string,
	pkg_info *basictypes.PackageInfo,
	sys basictypes.SystemI,
	tarballs_output_dir string,
	log *logger.Logger,
) (ProviderI, error)

type ProviderI

type ProviderI interface {
	ProviderDescription() string

	ArgCount() int

	CanListArg(i int) bool
	ListArg(i int) ([]string, error)

	Tarballs() ([]string, error)
	TarballNames() ([]string, error)

	PerformUpdate() error
}

type RepositoryI

type RepositoryI interface {
	GetRepositoryPath() string
	GetCachesDir() string
	GetPackagePath(name string) string
	GetPackageSRSPath(name string) string
	GetPackageTarballsPath(name string) string
	GetPackageCachePath(name string) string
	GetDedicatedCachePath(name string) string
	GetTarballDoneFilePath(package_name string, as_filename string) string
	GetTarballFilePath(package_name, as_filename string) string

	PerformPackageSourcesUpdate(name string) error
	PerformPackageTarballsUpdate(name string) error
	PerformPackagePatchesUpdate(name string) error
	GetPackageASPsPath(name string) string

	PerformDownload(package_name string, as_filename string, uri string) error
	PrepareTarballCleanupListing(package_name string, files_to_keep []string) ([]string, error)

	DeleteTarballFile(package_name string, filename string) error
	DeleteTarballFiles(package_name string, filename []string) error

	ListLocalTarballFiles(package_name string) ([]string, error)
	ListLocalTarballs(package_name string, done_only bool) ([]string, error)

	DeleteASPFile(package_name string, filename string) error
	DeleteASPFiles(package_name string, filename []string) error

	ListLocalASPFiles(package_name string) ([]string, error)
	ListLocalASPs(package_name string) ([]string, error)

	CopyTarballToDir(package_name string, tarball string, outdir string) error
	CopyPatchesToDir(package_name string, outdir string) error
	CopyASPToDir(package_name string, asp string, outdir string) error
}

Jump to

Keyboard shortcuts

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