core

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backward added in v0.4.3

func Backward(stages map[string]*schema.Stage, input util.Values, force bool)

Backward deletes each stage in reverse order

func Connect added in v0.4.3

func Connect(wf *schema.Workflow, k8s *kube.K8s, tiller *helm.Tiller, v util.Values) error

Connect links all of our stages to their required resources and pre-renders their input

func Create added in v0.4.3

func Create(stg *schema.Stage, logger *log.Entry, key string, global util.Values, force bool) error

Create installs / upgrades resource

func Destroy added in v0.4.3

func Destroy(stg *schema.Stage, logger *log.Entry, key string, global util.Values, force bool) error

Destroy removes resource

func Forward added in v0.4.3

func Forward(stages map[string]*schema.Stage, input util.Values, force bool) error

Forward processes each stage in the pipeline

func Lint added in v0.4.3

func Lint(wf *schema.Workflow, in util.Values) (err error)

Lint all the stages in our pipeline

func RenderWith added in v0.4.2

func RenderWith(k8s *kube.K8s) template.FuncMap

RenderWith returns the supported templating functions

func Shell added in v0.4.3

func Shell(command string, values []string) ([]byte, error)

Shell runs any given command

func Until added in v0.4.3

func Until(stages map[string]*schema.Stage, input util.Values, force bool, target string)

Until creates single resource and dependencies

Types

type Depends

type Depends map[string]*Node

Depends implements a mapped waitgroup for dependencies

func NewDepends added in v0.4.3

func NewDepends(stages map[string]*schema.Stage, reverse bool) *Depends

NewDepends generates a dependency map

func (Depends) Complete

func (d Depends) Complete(stages ...string)

Complete given waitgroups

func (Depends) IsCyclic added in v0.3.5

func (d Depends) IsCyclic() bool

IsCyclic returns true if there is a cycle in the graph

func (Depends) Wait

func (d Depends) Wait(stages ...string)

Wait on given waitgroups

type Node added in v0.3.5

type Node struct {
	Lock  *sync.WaitGroup
	Edges []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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