modulepackage
0.0.0-20210324124001-3b8baa9bdc2b
Repository: https://github.com/ceshihao/go-yum.git
Documentation: pkg.go.dev
# README
go-yum
# Functions
CloseLogFile cleans up any file handles associates with the log file.
CreatePrimaryDB initializes a new and empty primary_db SQLite database on disk.
Dprintf prints verbose output only if debug mode is enabled.
Errorf prints an error message to log or STDOUT.
Fatalf prints an error message to log or STDOUT and exits the program with a non-zero exit code.
FilterPackages returns a list of packages filtered according the repo's settings.
No description provided by the author
Logf prints output to a logfile with a category and timestamp.
No description provided by the author
No description provided by the author
NewRepo initializes a new Repo struct and returns a pointer to it.
OpenKeyRing returns the GPG keyring for the given gpgkey file.
OpenPrimaryDB opens a primary_db SQLite database from file and return a pointer to the resulting struct.
No description provided by the author
No description provided by the author
Printf prints output to STDOUT or the logfile.
ReadPrimaryMetadata loads a primary.xml file from the given io.Reader and returns a pointer to the resulting PrimaryMetadata struct.
ReadRepoMetadata loads a repomd.xml file from the given io.Reader and returns a pointer to the resulting RepoMetadata struct.
ValidateChecksum creates a checksum of the given io.Reader content and compares it the the given checksum value.
ValidateChecksum creates a checksum of the given file content and compares it the the given checksum value.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
ErrChecksumMismatch indicates that the checksum value of two items does not match.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
PackageEntry is a RPM package as defined in a yum repository database.
PackageEntryChecksum is the XML element of a package metadata file which describes the checksum required to validate a package.
RepoDatabaseLocation represents the URI, relative to a package repository, of a repository database.
No description provided by the author
PackageEntryChecksum is the XML element of a package metadata file which describes the checksum required to validate a package.
No description provided by the author
No description provided by the author
PrimaryDatabase is an SQLite database which contains package data for a yum package repository.
PrimaryMetadata represents the metadata XML file for a RPM/Yum repository.
No description provided by the author
No description provided by the author
Repo is a package repository defined in a Yumfile.
No description provided by the author
RepoDatabase represents an entry in a repository metadata file for an individual database file such as primary_db or filelists_db.
RepoDatabaseChecksum is the XML element of a repo metadata file which describes the checksum required to validate a repository database.
RepoDatabaseLocation represents the URI, relative to a package repository, of a repository database.
RepoMetadata represents the metadata XML file for a RPM/Yum repository.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
PackageEntries is a slice of PackageEntry structs.