Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobEvaluationContext ¶
func NewJobEvaluationContext( job bmrel.Job, manifestProperties map[string]interface{}, deploymentName string, logger boshlog.Logger, ) bmerbrenderer.TemplateEvaluationContext
Types ¶
type JobRenderer ¶
type JobRenderer interface {
Render(string, string, bmrel.Job, map[string]interface{}, string) error
}
func NewJobRenderer ¶
func NewJobRenderer( erbRenderer bmerbrenderer.ERBRenderer, fs boshsys.FileSystem, logger boshlog.Logger, ) JobRenderer
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"` Properties map[string]interface{} `json:"properties"` }
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 []bmrel.Job, deployment bmdepl.Deployment) error
}
func NewTemplatesCompiler ¶
func NewTemplatesCompiler( jobRenderer JobRenderer, compressor boshcmd.Compressor, blobstore boshblob.Blobstore, templatesRepo TemplatesRepo, fs boshsys.FileSystem, logger boshlog.Logger, ) TemplatesCompiler
type TemplatesRepo ¶
type TemplatesRepo interface { Save(bmrel.Job, TemplateRecord) error Find(bmrel.Job) (TemplateRecord, bool, error) }
func NewTemplatesRepo ¶
func NewTemplatesRepo(index bmindex.Index) TemplatesRepo
Source Files ¶
Click to show internal directories.
Click to hide internal directories.