Documentation ¶
Index ¶
- func NewJobEvaluationContext(releaseJob bireljob.Job, jobProperties biproperty.Map, ...) bierbrenderer.TemplateEvaluationContext
- type JobListRenderer
- type JobRenderer
- type RenderedJob
- type RenderedJobList
- type RenderedJobListArchive
- type RenderedJobListCompressor
- type RootContext
- type TemplateRecord
- type TemplatesCompiler
- type TemplatesRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobEvaluationContext ¶
func NewJobEvaluationContext( releaseJob bireljob.Job, jobProperties biproperty.Map, globalProperties biproperty.Map, deploymentName string, logger boshlog.Logger, ) bierbrenderer.TemplateEvaluationContext
Types ¶
type JobListRenderer ¶
type JobListRenderer interface { Render( releaseJobs []bireljob.Job, jobProperties biproperty.Map, globalProperties biproperty.Map, deploymentName string, ) (RenderedJobList, error) }
func NewJobListRenderer ¶
func NewJobListRenderer( jobRenderer JobRenderer, logger boshlog.Logger, ) JobListRenderer
type JobRenderer ¶
type JobRenderer interface {
Render(releaseJob bireljob.Job, jobProperties, globalProperties biproperty.Map, deploymentName string) (RenderedJob, error)
}
func NewJobRenderer ¶
func NewJobRenderer( erbRenderer bierbrenderer.ERBRenderer, fs boshsys.FileSystem, logger boshlog.Logger, ) JobRenderer
type RenderedJob ¶
type RenderedJob interface { Job() bireljob.Job Path() string // dir of multiple rendered files Delete() error DeleteSilently() }
func NewRenderedJob ¶
func NewRenderedJob( job bireljob.Job, path string, fs boshsys.FileSystem, logger boshlog.Logger, ) RenderedJob
type RenderedJobList ¶
type RenderedJobList interface { Add(RenderedJob) All() []RenderedJob Delete() error DeleteSilently() }
func NewRenderedJobList ¶
func NewRenderedJobList() RenderedJobList
type RenderedJobListArchive ¶
type RenderedJobListArchive interface { List() RenderedJobList Path() string Fingerprint() string SHA1() string Delete() error DeleteSilently() }
func NewRenderedJobListArchive ¶
func NewRenderedJobListArchive( list RenderedJobList, path string, fingerprint string, sha1 string, fs boshsys.FileSystem, logger boshlog.Logger, ) RenderedJobListArchive
type RenderedJobListCompressor ¶
type RenderedJobListCompressor interface {
Compress(RenderedJobList) (RenderedJobListArchive, error)
}
func NewRenderedJobListCompressor ¶
func NewRenderedJobListCompressor( fs boshsys.FileSystem, compressor boshcmd.Compressor, sha1Calculator bicrypto.SHA1Calculator, logger boshlog.Logger, ) RenderedJobListCompressor
type RootContext ¶
type RootContext struct { Index int `json:"index"` JobContext jobContext `json:"job"` Deployment string `json:"deployment"` // Usually is accessed with <%= spec.networks.default.ip %> NetworkContexts map[string]networkContext `json:"networks"` //TODO: this should be a map[string]interface{} GlobalProperties biproperty.Map `json:"global_properties"` // values from manifest's top-level properties ClusterProperties biproperty.Map `json:"cluster_properties"` // values from manifest's jobs[].properties DefaultProperties biproperty.Map `json:"default_properties"` // values from release's job's spec }
RootContext is exposed as an open struct in ERB templates. It must stay same to provide backwards compatible API.
type TemplateRecord ¶
type TemplatesCompiler ¶
type TemplatesCompiler interface {
Compile(jobs []bireljob.Job, deploymentName string, deploymentProperties biproperty.Map, stage biui.Stage) error
}
func NewTemplatesCompiler ¶
func NewTemplatesCompiler( jobListRenderer JobListRenderer, compressor boshcmd.Compressor, blobstore boshblob.Blobstore, templatesRepo TemplatesRepo, fs boshsys.FileSystem, logger boshlog.Logger, ) TemplatesCompiler
type TemplatesRepo ¶
type TemplatesRepo interface { Save(bireljob.Job, TemplateRecord) error Find(bireljob.Job) (TemplateRecord, bool, error) }
func NewTemplatesRepo ¶
func NewTemplatesRepo(index biindex.Index) TemplatesRepo
Source Files ¶
Click to show internal directories.
Click to hide internal directories.