tekton

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LabelCodesetName is the label key for the codeset name
	LabelCodesetName = "fuseml/codeset-name"
	// LabelCodesetProject is the label key for the codeset project
	LabelCodesetProject = "fuseml/codeset-project"
	// LabelCodesetVersion is the label key for the codeset version
	LabelCodesetVersion = "fuseml/codeset-version"
	// LabelWorkflowRef is the label key for the reference of the workflow
	LabelWorkflowRef = "fuseml/workflow-ref"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

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

EnvVar describes environment variable and its value that needs to be passed to tekton task

type WorkflowBackend

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

WorkflowBackend implements the FuseML WorkflowBackend interface for tekton

func NewWorkflowBackend

func NewWorkflowBackend(namespace string) (*WorkflowBackend, error)

NewWorkflowBackend initializes Tekton backend

func (*WorkflowBackend) CreateListener

func (w *WorkflowBackend) CreateListener(ctx context.Context, logger *log.Logger, workflowName string, wait bool) (string, error)

CreateListener creates tekton resources required to have a listener ready for triggering the pipeline

func (*WorkflowBackend) CreateWorkflow

func (w *WorkflowBackend) CreateWorkflow(ctx context.Context, logger *log.Logger, workflow *workflow.Workflow) error

CreateWorkflow receives a FuseML workflow and creates a Tekton pipeline from it

func (*WorkflowBackend) CreateWorkflowRun

func (w *WorkflowBackend) CreateWorkflowRun(ctx context.Context, workflowName string, codeset domain.Codeset) error

CreateWorkflowRun creates a PipelineRun with its default values for received workflow and codeset

func (*WorkflowBackend) ListWorkflowRuns

func (w *WorkflowBackend) ListWorkflowRuns(ctx context.Context, wf workflow.Workflow, filters domain.WorkflowRunFilter) ([]*workflow.WorkflowRun, error)

ListWorkflowRuns returns a list of WorkflowRun for the given Workflow

type WorkflowBackendErr

type WorkflowBackendErr string

WorkflowBackendErr are expected errors returned from the WorkflowBackend

func (WorkflowBackendErr) Error

func (e WorkflowBackendErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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