Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompiledPackageRecord ¶
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 ¶
func (f ConcretePackagesCompilerFactory) NewCompiler(agentClient bpagclient.Client) PackagesCompiler
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.