baseimg

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseImage

type BaseImage struct {
	// contains filtered or unexported fields
}

func New

func New(imgPath string, apkIndexPath string, arch types.Architecture, materizalizedApkIndexPath string) (*BaseImage, error)

New creates an instance of BaseImage base on provided parameters:

  • imgPath: path to the directory containing OCI layout of the image.
  • apkIndexPath: path to the directory containing per arch APKINDEX files representing installed file of the base image.
  • arch: architecture of the base image.
  • materializedApkIndexPath: path where the auxiliary APKINDEX of the base image will be written to in order to resolve packages.

func (*BaseImage) APKIndexPath

func (baseImg *BaseImage) APKIndexPath() string

func (*BaseImage) Image

func (baseImg *BaseImage) Image() v1.Image

func (*BaseImage) InstalledPackages

func (baseImg *BaseImage) InstalledPackages() []*apk.InstalledPackage

Jump to

Keyboard shortcuts

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