package
0.9.7
Repository: https://github.com/datadog/aptly.git
Documentation: pkg.go.dev

# Functions

BuildGraph generates graph contents from aptly object database.
CollectChangesFiles walks filesystem collecting all .changes files.
CollectPackageFiles walks filesystem collecting all candidates for package files.
CompareVersions compares two package versions.
GetContentsFromDeb returns list of files installed by .deb package.
GetControlFileFromDeb reads control file from deb package.
GetControlFileFromDsc reads control file from dsc package.
ImportPackageFiles imports files into local repository.
NewChanges moves .changes file into temporary directory and creates Changes structure.
NewCollectionFactory creates new factory.
NewContentsIndex creates empty ContentsIndex.
NewControlFileReader creates ControlFileReader, it wraps with buffering.
NewLocalRepo creates new instance of Debian local repository.
NewLocalRepoCollection loads LocalRepos from DB and makes up collection.
NewPackageCollection creates new PackageCollection and binds it to database.
NewPackageFromControlFile creates Package from parsed Debian control file.
NewPackageList creates empty package list without duplicate package.
NewPackageListFromRefList loads packages list from PackageRefList.
No description provided by the author
NewPackageRefList creates empty PackageRefList.
NewPackageRefListFromPackageList creates PackageRefList from PackageList.
NewPublishedRepo creates new published repository storage is PublishedStorage name prefix specifies publishing prefix distribution and architectures are user-defined properties components & sources are lists of component to source mapping (*Snapshot or *LocalRepo).
NewPublishedRepoCollection loads PublishedRepos from DB and makes up collection.
NewRemoteRepo creates new instance of Debian remote repository with specified params.
NewRemoteRepoCollection loads RemoteRepos from DB and makes up collection.
NewSnapshotCollection loads Snapshots from DB and makes up collection.
NewSnapshotFromLocalRepo creates snapshot from current state of local repository.
NewSnapshotFromPackageList creates snapshot from PackageList.
NewSnapshotFromRefList creates snapshot from PackageRefList.
NewSnapshotFromRepository creates snapshot from current state of repository.
NewSourcePackageFromControlFile creates Package from parsed Debian control file for source package.
NewUdebPackageFromControlFile creates .udeb Package from parsed Debian control file.
NewUploadersFromFile loads Uploaders structue from .json file.
ParseDependency parses dependency in format "pkg (>= 1.35) [arch]" into parts.
ParseDependencyVariants parses dependencies in format "pkg (>= 1.35) | other-package".
ParsePPA converts ppa URL like ppa:user/ppa-name to full HTTP url.
ParsePrefix splits [storage:]prefix into components.

# Constants

DepFollowAllVariants follows all variants if depends on "a | b".
DepFollowBuild pulls build dependencies.
DepFollowRecommends pulls from recommends.
DepFollowSource pulls source packages when required.
DepFollowSuggests pulls from suggests.
RemoteRepo statuses.
RemoteRepo statuses.
Snapshot sorting methods.
Snapshot sorting methods.
Version relations.
Version relations.
Version relations.
Version relations.
Version relations.
Version relations.
Version relations.
Version relations.

# Variables

Parsing errors.

# Structs

AndQuery is L , R.
Changes is a result of .changes file parsing.
CollectionFactory is a single place to generate all desired collections.
ContentsIndex calculates mapping from files to packages, with sorting and aggregation.
ControlFileReader implements reading of control files stanza by stanza.
Dependency is a parsed version of Debian dependency to package.
DependencyQuery is generic Debian-dependency like query.
FieldQuery is generic request against field.
LocalRepo is a collection of packages created locally.
LocalRepoCollection does listing, updating/adding/deleting of LocalRepos.
NotQuery is ! Q.
OrQuery is L | R.
Package is single instance of Debian package.
PackageCollection does management of packages in DB.
PackageConflictError means that package can't be added to the list due to error.
PackageDependencies are various parsed dependencies.
PackageDiff is a difference between two packages in a list.
PackageDownloadTask is a element of download queue for the package.
PackageFile is a single file entry in package.
PackageList is list of unique (by key) packages It could be seen as repo snapshot, repo contents, result of filtering, merge, etc.
PackageRefList is a list of keys of packages, this is basis for snapshot and similar stuff Refs are sorted in lexicographical order.
PkgQuery is search request against specific package.
PublishedRepo is a published for http/ftp representation of snapshot as Debian repository.
PublishedRepoCollection does listing, updating/adding/deleting of PublishedRepos.
RemoteRepo represents remote (fetchable) Debian repository.
RemoteRepoCollection does listing, updating/adding/deleting of RemoteRepos.
Snapshot is immutable state of repository: list of packages.
SnapshotCollection does listing, updating/adding/deleting of Snapshots.
Uploaders is configuration of restrictions for .changes file importing.
UploadersRule is single rule of format: what packages can group or key upload.

# Interfaces

PackageCatalog is abstraction on top of PackageCollection and PackageList.
PackageLike is something like Package :) To be refined later.
PackageQuery is interface of predicate on Package.

# Type aliases

PackageDiffs is a list of PackageDiff records.
PackageFiles is collection of package files.
Stanza or paragraph of Debian control file.