jx: github.com/jenkins-x/jx/pkg/workflow Index | Files

package workflow

import "github.com/jenkins-x/jx/pkg/workflow"


Package Files

constants.go workflows.go


const (
    DefaultWorkflowName = "default"

func CreateDefaultWorkflow Uses

func CreateDefaultWorkflow(jxClient versioned.Interface, ns string) (*v1.Workflow, error)

CreateDefaultWorkflow creates the default workflow if none is provided by just chaining the Auto environments together sequentially

func CreateWorkflow Uses

func CreateWorkflow(ns string, name string, steps ...v1.WorkflowStep) *v1.Workflow

CreateWorkflow creates a default Workflow instance

func CreateWorkflowPromoteStep Uses

func CreateWorkflowPromoteStep(envName string, preconditionSteps ...v1.WorkflowStep) v1.WorkflowStep

CreateWorkflowPromoteStep creates a default Workflow promote step

func GetWorkflow Uses

func GetWorkflow(name string, jxClient versioned.Interface, ns string) (*v1.Workflow, error)

GetWorkflow returns the workflow for the given name. If the name is blank it defaults to `DefaultWorkflowName`. If the workflow does not exist yet then its defaulted from the auto promotion workflows in order.

Package workflow imports 5 packages (graph). Updated 2020-07-09. Refresh now. Tools for package owners.