generators

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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