Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RubyBinary is the name of the ruby binary. Can be an absolute path. RubyBinary = "ruby" // RubyGemBinary is the name of the ruby gem binary. Can be an absolute path. RubyGemBinary = "gem" )
Functions ¶
func CheckBOSHTemplateGemAvailable ¶
func CheckBOSHTemplateGemAvailable() error
CheckBOSHTemplateGemAvailable can be used by callers to verify that the bosh template gem is correctly installed
func CheckRubyAvailable ¶
func CheckRubyAvailable() error
CheckRubyAvailable can be used by callers to verify that ruby is correctly installed
Types ¶
type ERBRenderer ¶
type ERBRenderer struct {
EvaluationContext *EvaluationContext
InstanceInfo *InstanceInfo
JobSpecFilePath string
}
ERBRenderer represents a BOSH Job erb template renderer
func NewERBRenderer ¶
func NewERBRenderer(evaluationContext *EvaluationContext, instanceInfo *InstanceInfo, jobSpecFilePath string) *ERBRenderer
NewERBRenderer creates a new ERBRenderer with an EvaluationContext
func (*ERBRenderer) Render ¶
func (e *ERBRenderer) Render(inputFilePath, outputFilePath string) (returnErr error)
Render renders an erb file using an EvaluationContext
type EvaluationContext ¶
type EvaluationContext struct {
Properties map[string]interface{} `yaml:"properties"`
}
EvaluationContext is the context passed to the erb renderer
type InstanceInfo ¶
type InstanceInfo struct {
Address string `yaml:"address"`
AZ string `yaml:"az"`
Bootstrap bool `yaml:"bootstrap"`
Deployment string `yaml:"deployment"`
ID string `yaml:"id"`
Index int `yaml:"index"`
IP string `yaml:"ip"`
Name string `yaml:"name"`
}
InstanceInfo represents instance group runtime information
Click to show internal directories.
Click to hide internal directories.