sourceprocesser

package
v0.48.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttachmentProcessor added in v0.48.0

func NewAttachmentProcessor(atc *config.Attachment) *attachmentProcessor

func NewSecretDecrypterProcessor added in v0.48.0

func NewSecretDecrypterProcessor(enc *config.SecretEncryption, dcr secretDecrypter) *secretDecrypterProcessor

Types

type SourceProcessor added in v0.48.0

type SourceProcessor interface {
	Process() error
}

func NewSourceProcessor added in v0.48.0

func NewSourceProcessor(appDir string, templateProcessors ...SourceTemplateProcessor) SourceProcessor

type SourceTemplateProcessor added in v0.48.0

type SourceTemplateProcessor interface {
	// BuildTemplateData returns the data that will be used to template target files
	BuildTemplateData(appDir string) (map[string]string, error)
	// TemplateSource performs templating prepared data to the source files
	TemplateSource(appDir string, data map[string](map[string]string)) error
	// TemplateKey returns the key that will be used to store the data in the template
	TemplateKey() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL