runner

package
v1.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LIVELOG = 5000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
	Dag    dag.DAG
	Data   Proto
}

func DefaultConfig

func DefaultConfig() *Config

type Metadata

type Metadata struct {
	Name string `json:"name"`
}

type Output added in v1.12.0

type Output struct {
	Pos     int64  `json:"pos"`
	Time    int64  `json:"time"`
	Message string `json:"message"`
}

type Proto

type Proto struct {
	ApiVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       Spec     `json:"spec"`
}

type Result

type Result struct {
	Output Output `json:"output"`
	Error  string `json:"error"`
}

type Runner

type Runner interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context) error
	Tail(ctx context.Context) livelog.Livelog
}

func New

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

type Spec

type Spec struct {
	Tasks []Task `json:"tasks"`
}

type Task

type Task struct {
	Name     string   `json:"name"`
	Commands []string `json:"commands"`
	Depends  []string `json:"depends"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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