Documentation ¶
Index ¶
Constants ¶
View Source
const TemplatePath = "TEMPLATE_PATH"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
Context contain the template context used during conversion. Holds template variables and data.
type Engine ¶
type Engine interface {
Run(name string, resource []byte, newVersion string, variables map[string]string) ([]byte, error)
}
Engine is a interface that describes a way to prepare the Deployment for cloning.
func NewDefaultEngine ¶
func NewDefaultEngine() Engine
NewDefaultEngine returns a new Engine with a predefined templates.
func NewDefaultPatchEngine ¶ added in v0.0.4
NewDefaultPatchEngine returns a new Engine with a predefined templates.
func NewPatchEngine ¶ added in v0.0.4
NewPatchEngine constructs a new Engine with the given templates.
type JSON ¶
type JSON map[string]interface{}
JSON is a parsed json structure with helper functions to access the data based on json paths.
Click to show internal directories.
Click to hide internal directories.