generators

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStaticManifestsPath

func GetStaticManifestsPath(c core.Component) string

GetStaticManifestsPath returns the path where a static components YAML manifest files are located, defaulting `path` unless `method: http` in which case `<path>/components/<name>` is used.

Types

type HelmGenerator

type HelmGenerator struct{}

HelmGenerator provides 'helm generate' generator functionality to Fabrikate

func (*HelmGenerator) Generate

func (hg *HelmGenerator) Generate(component *core.Component) (manifest string, err error)

Generate returns the helm templated manifests specified by this component.

func (*HelmGenerator) Install

func (hg *HelmGenerator) Install(c *core.Component) (err error)

Install installs the helm chart specified by the passed component and performs any helm lifecycle events needed.

type StaticGenerator

type StaticGenerator struct{}

StaticGenerator uses a static directory of resource manifests to create a rolled up multi-part manifest.

func (*StaticGenerator) Generate

func (sg *StaticGenerator) Generate(component *core.Component) (manifest string, err error)

Generate iterates a static directory of resource manifests and creates a multi-part manifest.

func (*StaticGenerator) Install

func (sg *StaticGenerator) Install(c *core.Component) (err error)

Install for StaticGenerator gives the ability to point to a single yaml manifest over `method: http`; This is a noop for any all other methods.

Jump to

Keyboard shortcuts

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