packagescompiler

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledPackageRecord

type CompiledPackageRecord struct {
	SHA1   string
	BlobID string
}

type ConcretePackagesCompiler

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

func NewConcretePackagesCompiler

func NewConcretePackagesCompiler(
	agentClient bpagentclient.Client,
	packagesRepo bppkgsrepo.PackagesRepository,
	compiledPackagesRepo bpcpkgsrepo.CompiledPackagesRepository,
	blobstore boshblob.Blobstore,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) ConcretePackagesCompiler

func (ConcretePackagesCompiler) ApplyPrecompiledPackages

func (pc ConcretePackagesCompiler) ApplyPrecompiledPackages(release bprel.Release) error

func (ConcretePackagesCompiler) Compile

func (pc ConcretePackagesCompiler) Compile(release bprel.Release) error

Compile populates blobstore with compiled packages for a given release packages. All packages are compiled regardless if they will be later used or not. Currently Compile does not account for stemcell differences.

func (ConcretePackagesCompiler) FindCompiledPackage

func (pc ConcretePackagesCompiler) FindCompiledPackage(pkg bprel.Package) (CompiledPackageRecord, error)

FindCompiledPackage returns previously compiled package for a given template. If such compiled package is not found, error is returned.

type ConcretePackagesCompilerFactory

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

func NewConcretePackagesCompilerFactory

func NewConcretePackagesCompilerFactory(
	packagesRepo bppkgsrepo.PackagesRepository,
	compiledPackagesRepo bpcpkgsrepo.CompiledPackagesRepository,
	blobstore boshblob.Blobstore,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) ConcretePackagesCompilerFactory

func (ConcretePackagesCompilerFactory) NewCompiler

type PackagesCompiler

type PackagesCompiler interface {
	Compile(bprel.Release) error
	ApplyPrecompiledPackages(bprel.Release) error
	FindCompiledPackage(bprel.Package) (CompiledPackageRecord, error)
}

PackagesCompiler takes each release package and compiles it. Compiled packages are used as:

(1) compile dependencies for other packages
(2) runtime dependencies for jobs

todo account for stemcells

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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