resolver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResolverImageBuilder

type BaseResolverImageBuilder interface {
	Build() (string, error)
}

type ImageImporter

type ImageImporter interface {
	Import(tarball, ref string) error
}

type Podman

type Podman interface {
	Build(context, name string) error
	Create(img string) (string, error)
	Copy(id, src, dest string) error
}

type Resolver

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

func New

func New(workDir string, podman Podman, baseImageBuilder BaseResolverImageBuilder, overrideMountsPath, arch string) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(packages *image.Packages, localRPMConfig *image.LocalRPMConfig, outputDir string) (rpmDirPath string, pkgList []string, err error)

Resolve resolves all dependencies for the provided pacakges and rpms. It then outputs the set of resolved rpms to a directory (located in the provdied 'outputDir') from which an RPM repository can be created.

Returns the full path to the created directory, the package/rpm names for which dependency resolution has been done, or an error if one has occurred.

Parameters: - packages - pacakge configuration

- localRPMConfig - configuration for locally provided RPMs

- outputDir - directory in which the resolver will create a directory containing the resolved rpms.

type TarballImageBuilder

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

func NewTarballBuilder

func NewTarballBuilder(workDir, imgPath, imgType, arch string, importer ImageImporter) *TarballImageBuilder

func (*TarballImageBuilder) Build

func (t *TarballImageBuilder) Build() (string, error)

Jump to

Keyboard shortcuts

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