pipeline

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(out io.Writer, objects []*unstructured.Unstructured, format string) error

Fprint prints objects to a writer in a format (yaml or json).

Types

type Opt

type Opt func(p *Pipeline)

Opt is an option for configuring Pipeline.

func OverrideManager

func OverrideManager(c component.Manager) Opt

OverrideManager overrides the component manager interface for a pipeline.

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

Pipeline is the ks build pipeline.

func New

func New(ksApp app.App, envName string, opts ...Opt) *Pipeline

New creates an instance of Pipeline.

func (*Pipeline) Components

func (p *Pipeline) Components(filter []string) ([]component.Component, error)

Components returns the components that belong to this pipeline.

func (*Pipeline) EnvParameters

func (p *Pipeline) EnvParameters(moduleName string, inherited bool) (string, error)

EnvParameters creates parameters for a namespace given an environment.

func (*Pipeline) Modules

func (p *Pipeline) Modules() ([]component.Module, error)

Modules returns the modules that belong to this pipeline.

func (*Pipeline) Objects

func (p *Pipeline) Objects(filter []string) ([]*unstructured.Unstructured, error)

Objects converts components into Kubernetes objects.

func (*Pipeline) YAML

func (p *Pipeline) YAML(filter []string) (io.Reader, error)

YAML converts components into YAML.

Jump to

Keyboard shortcuts

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