builder

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Run(context.Context, *Config) (Dag, error)
}

func New

func New(_ context.Context, cfg *Config) Builder

type Config

type Config struct {
	ApiVersion string
	Kind       string
	MetaData   MetaData
	Spec       Spec
}

func DefaultConfig

func DefaultConfig() *Config

type Dag

type Dag struct {
	Vertex []Vertex
	Edge   []Edge
}

type Edge

type Edge struct {
	From string
	To   string
}

type MetaData added in v1.1.0

type MetaData struct {
	Name string
}

type Spec added in v1.1.0

type Spec struct {
	Tasks []Task
}

type Task

type Task struct {
	Name     string
	Commands []string
	Depends  []string
}

type Vertex

type Vertex struct {
	Name string
	Run  []string
}

Jump to

Keyboard shortcuts

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