compiler

package
v2.0.0-...-6fac617 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package compiler is the backend compiler package for Kubeflow Pipelines v2.

KFP pipeline DSL in python are first compiled by KFP SDK (the frontend compiler) to pipeline spec in JSON format. KFP SDK / frontend compiler is not part of this package. Then, the backend compiler (this package) compiles pipeline spec into argo workflow spec, so that it can be run.

Index

Constants

View Source
const (
	RootComponentName = "root"
)

Variables

This section is empty.

Functions

func Accept

func Accept(job *pipelinespec.PipelineJob, v Visitor) error

Accept a pipeline spec and a visitor, iterate through components and call corresponding visitor methods for each component.

Iteration rules: * Components are visited in "bottom-up" order -- leaf container components are visited first, then DAG components. When a DAG component is visited, it's guaranteed that all the components used in it have already been visited. * Each component is visited exactly once.

Types

type Visitor

Visitor interface is called when each component is visited. The specific method called depends on the component's type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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