Documentation
¶
Index ¶
- Constants
- func GetPackageInfo(file string) (string, string, error)
- func GetUniqueLatestUpdates(updates unversioned.UpdatePackages, cmp VersionComparer, ignoreErrors bool) (unversioned.UpdatePackages, error)
- func ValidateOSPackageNames(updates unversioned.UpdatePackages) error
- type PackageInfoReader
- type PackageManager
- type UpdateMap
- type UpdatePackageInfo
- type VersionComparer
Constants ¶
View Source
const ( DPKGStatusNone dpkgStatusType = iota DPKGStatusFile DPKGStatusDirectory DPKGStatusMixed DPKGStatusInvalid // must always be the last listed )
View Source
const ( RPMDBNone rpmDBType = iota RPMDBBerkley RPMDBNative RPMDBSqlLite RPMDBManifests RPMDBMixed RPMDBInvalid // must be the last in the list RPMDBSize = RPMDBInvalid )
Variables ¶
This section is empty.
Functions ¶
func GetUniqueLatestUpdates ¶
func GetUniqueLatestUpdates(updates unversioned.UpdatePackages, cmp VersionComparer, ignoreErrors bool) (unversioned.UpdatePackages, error)
func ValidateOSPackageNames ¶ added in v0.14.0
func ValidateOSPackageNames(updates unversioned.UpdatePackages) error
ValidateOSPackageNames validates that all package names in the update list are safe for interpolation into shell commands. Returns an error if any name is invalid.
Types ¶
type PackageInfoReader ¶
type PackageManager ¶
type PackageManager interface {
InstallUpdates(context.Context, *unversioned.UpdateManifest, bool) (*llb.State, []string, error)
GetPackageType() string
}
func GetPackageManager ¶
type UpdateMap ¶
type UpdateMap map[string]*UpdatePackageInfo
func GetValidatedUpdatesMap ¶
func GetValidatedUpdatesMap(updates unversioned.UpdatePackages, cmp VersionComparer, reader PackageInfoReader, stagingPath string) (UpdateMap, error)
type UpdatePackageInfo ¶
Click to show internal directories.
Click to hide internal directories.