apt

package
v0.0.0-...-171f6cf Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackages

func GetPackages(location string, logger bard.Logger) ([]string, error)

func InstallAptPackages

func InstallAptPackages(layer libcnb.Layer, packageList []string, logger bard.Logger, buildOnly bool) error

Types

type Layer

type Layer struct {
	Packages         []string
	LayerName        string
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
}

func CreateLayerContributor

func CreateLayerContributor(packages []string, name string, logger bard.Logger, cache bool) *Layer

func (Layer) Contribute

func (apt Layer) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Layer) Name

func (apt Layer) Name() string

type PackageInfo

type PackageInfo struct {
	Name     string
	Version  string
	Location string
}

func GetPackageInfo

func GetPackageInfo(packageName string, aptCacheDirectory string, logger bard.Logger) (PackageInfo, error)

Jump to

Keyboard shortcuts

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