builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 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(*Config) (Dag, error)
}

func New

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

type Config

type Config struct {
	Kind string
	Type string
	Name string
	Task []Task
}

func DefaultConfig

func DefaultConfig() *Config

type Dag

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

type Edge

type Edge struct {
	From string
	To   string
}

type Task

type Task struct {
	Name    string
	Command []string
	Depend  []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