couler

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret added in v0.4.1

func GetSecret() (string, string, error)

GetSecret returns the workflow secret name, value.

func GetStepEnvs added in v0.4.1

func GetStepEnvs(session *pb.Session) (map[string]string, error)

GetStepEnvs returns a map of envs used for couler workflow.

func MockSQLProgramIR

func MockSQLProgramIR() []ir.SQLFlowStmt

MockSQLProgramIR mock a SQLFLow program which contains multiple statements

func ParseKatibSQL

func ParseKatibSQL(t *ir.TrainStmt) (*sqlStatement, error)

ParseKatibSQL generates Couler Katib step

func VerifyResources added in v0.4.1

func VerifyResources(resources string) error

VerifyResources verifies the SQLFLOW_WORKFLOW_RESOURCES env to be valid.

Types

type Codegen

type Codegen struct{}

Codegen generates Couler program

func (*Codegen) GenCode

func (cg *Codegen) GenCode(programIR []ir.SQLFlowStmt, session *pb.Session) (string, error)

GenCode generates a Couler program

func (*Codegen) GenYAML

func (cg *Codegen) GenYAML(coulerProgram string) (string, error)

GenYAML translate the Couler program into Argo YAML

type Filler

type Filler struct {
	DataSource       string
	SQLStatements    []*sqlStatement
	SQLFlowSubmitter string
	SQLFlowOSSDir    string
	StepEnvs         map[string]string
	WorkflowTTL      int
	SecretName       string
	SecretData       string
	Resources        string
}

Filler is used to fill the template

func GenFiller

func GenFiller(programIR []ir.SQLFlowStmt, session *pb.Session) (*Filler, error)

GenFiller generates Filler to fill the template

Jump to

Keyboard shortcuts

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