Documentation ¶
Index ¶
- type ConcreteTemplatesCompiler
- func (tc ConcreteTemplatesCompiler) Compile(job bpdep.Job, instance bpdep.Instance) error
- func (tc ConcreteTemplatesCompiler) FindPackages(template bpdep.Template) ([]bprel.Package, error)
- func (tc ConcreteTemplatesCompiler) FindRenderedArchive(job bpdep.Job, instance bpdep.Instance) (RenderedArchiveRecord, error)
- func (tc ConcreteTemplatesCompiler) Precompile(release bprel.Release) error
- type RenderedArchiveRecord
- type RenderedArchivesCompiler
- type TemplatesCompiler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcreteTemplatesCompiler ¶
type ConcreteTemplatesCompiler struct {
// contains filtered or unexported fields
}
func NewConcreteTemplatesCompiler ¶
func NewConcreteTemplatesCompiler( renderedArchivesCompiler RenderedArchivesCompiler, jobReaderFactory bpreljob.ReaderFactory, jobsRepo bpjobsrepo.JobsRepository, tplToJobRepo bpjobsrepo.TemplateToJobRepository, runPkgsRepo bpjobsrepo.RuntimePackagesRepository, templatesRepo bptplsrepo.TemplatesRepository, blobstore boshblob.Blobstore, logger boshlog.Logger, ) ConcreteTemplatesCompiler
func (ConcreteTemplatesCompiler) Compile ¶
Compile populates blobstore with rendered jobs for a given deployment instance.
func (ConcreteTemplatesCompiler) FindPackages ¶
FindPackages returns list of packages required to run job template. List of packages is usually specified in release job metadata.
func (ConcreteTemplatesCompiler) FindRenderedArchive ¶
func (tc ConcreteTemplatesCompiler) FindRenderedArchive(job bpdep.Job, instance bpdep.Instance) (RenderedArchiveRecord, error)
FindRenderedArchive returns previously compiled template for a given instance. If such compiled template is not found, error is returned.
func (ConcreteTemplatesCompiler) Precompile ¶
func (tc ConcreteTemplatesCompiler) Precompile(release bprel.Release) error
Precompile prepares release jobs to be later combined with instance properties
type RenderedArchiveRecord ¶
type RenderedArchivesCompiler ¶
type RenderedArchivesCompiler struct {
// contains filtered or unexported fields
}
func NewRenderedArchivesCompiler ¶
func NewRenderedArchivesCompiler( fs boshsys.FileSystem, runner boshsys.CmdRunner, compressor bptar.Compressor, logger boshlog.Logger, ) RenderedArchivesCompiler
func (RenderedArchivesCompiler) CleanUp ¶
func (rac RenderedArchivesCompiler) CleanUp(path string) error
CleanUp deletes previously produced rendered templates archive.
func (RenderedArchivesCompiler) Compile ¶
func (rac RenderedArchivesCompiler) Compile(relJobs []bpreljob.Job, instance bpdep.Instance) (string, error)
Compile takes release jobs and instance and produces rendered templates archive. Rendered templates archive contains rendered job templates that can be unpacked by a GoAgent to populate a VM.