Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor defines a template processor.
func New ¶
func New( ta action.TemplateActioner, tka action.TemplateKindActioner, ) *Processor
New creates a processor that uses templates to generate content.
func (*Processor) Process ¶
func (p *Processor) Process( delivery *resource.Delivery, message *resource.Message, deliveryKind *resource.DeliveryKind, ) (map[string]interface{}, error)
Process applies each of the relevant templates to the provided input. It returns a map that indicates the key-values that should be modified.
Click to show internal directories.
Click to hide internal directories.