internal

package
v0.0.0-...-9004d47 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package internal GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var TaskPath = cue.ParsePath("$$task.name")

Functions

func FormatAsJSONPath

func FormatAsJSONPath(p cue.Path) string

func PlatformScoped

func PlatformScoped(p cue.Path) (*wd.Platform, bool)

Types

type Controller

type Controller struct {
	Prefix *cue.Path
	// contains filtered or unexported fields
}

func New

func New(v cue.Value, optionFuncs ...OptionFunc) *Controller

func (*Controller) Run

func (x *Controller) Run(ctx context.Context) error

func (Controller) RuntimeDoc

func (v Controller) RuntimeDoc(names ...string) ([]string, bool)

func (*Controller) Tasks

func (c *Controller) Tasks() []Node

type Group

type Group struct {
	// contains filtered or unexported fields
}

func WithContext

func WithContext(ctx context.Context) (*Group, context.Context)

func (*Group) Go

func (g *Group) Go(f func() error)

func (*Group) Wait

func (g *Group) Wait() error

type Node

type Node interface {
	fmt.Stringer

	Path() cue.Path
	Deps() []Node
}

type OptionFunc

type OptionFunc func(c *Controller)

func WithRunTask

func WithRunTask(runTask func(ctx context.Context, n Node) error) OptionFunc

func WithShouldRunFunc

func WithShouldRunFunc(shouldRun func(value cue.Value) bool) OptionFunc

func (OptionFunc) RuntimeDoc

func (OptionFunc) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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