tekton

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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 EnvVarMap added in v0.3.0

type EnvVarMap map[string]string

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(logger *log.Logger, namespace string) (*WorkflowBackend, error)

NewWorkflowBackend initializes Tekton backend

func (*WorkflowBackend) CreateWorkflow

func (w *WorkflowBackend) CreateWorkflow(ctx context.Context, workflow *domain.Workflow) error

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

func (*WorkflowBackend) CreateWorkflowListener added in v0.0.2

func (w *WorkflowBackend) CreateWorkflowListener(ctx context.Context, workflowName string, timeout time.Duration) (*domain.WorkflowListener, error)

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

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 the specified workflow and codeset

func (*WorkflowBackend) DeleteWorkflow added in v0.1.0

func (w *WorkflowBackend) DeleteWorkflow(ctx context.Context, name string) error

DeleteWorkflow deletes a tekton pipeline with the specified name

func (*WorkflowBackend) DeleteWorkflowListener added in v0.1.0

func (w *WorkflowBackend) DeleteWorkflowListener(ctx context.Context, name string) error

DeleteWorkflowListener deletes all tekton resources associated to the specified listener name

func (*WorkflowBackend) GetWorkflowListener added in v0.0.2

func (w *WorkflowBackend) GetWorkflowListener(ctx context.Context, workflowName string) (wl *domain.WorkflowListener, err error)

GetWorkflowListener returns the listener for a given workflow

func (*WorkflowBackend) GetWorkflowRuns added in v0.2.1

func (w *WorkflowBackend) GetWorkflowRuns(ctx context.Context, wf *domain.Workflow, filter *domain.WorkflowRunFilter) ([]*domain.WorkflowRun, error)

GetWorkflowRuns 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