Documentation ¶
Overview ¶
Package cueflow GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- func CueLogValue(v any) slog.LogValuer
- func CueValue(v Value) cue.Value
- func IterSteps(value cue.Value) (func(yield func(idx int, item cue.Value) bool), error)
- func RegisterTask(r TaskImplRegister, task FlowTask)
- func SortedIter[V any](ctx context.Context, m map[string]V) <-chan *Element[V]
- func WriteFile(ctx context.Context, fs filesystem.FileSystem, filename string, data []byte) error
- type CacheDisabler
- type CanSkip
- type Checkpoint
- type CueValueWrapper
- type Element
- type FlowControl
- type FlowControlImpl
- type FlowTask
- type OutputValuer
- type ProcessReader
- type ProcessWriter
- type Progress
- type ResultValuer
- type Runner
- func (r *Runner) FillPath(p cue.Path, v any) error
- func (r *Runner) LookupPath(p cue.Path) Value
- func (r *Runner) LookupResult(p cue.Path) (any, bool)
- func (r *Runner) Module() *module.Module
- func (r *Runner) Processed(p cue.Path) bool
- func (r *Runner) Run(ctx context.Context, action []string) error
- func (r *Runner) RunTasks(ctx context.Context, optFns ...TaskOptionFunc) error
- func (r *Runner) Value() Value
- type Scope
- type StepRunner
- type Successor
- type Task
- type TaskFactory
- type TaskFeedback
- type TaskImpl
- type TaskImplRegister
- type TaskOptionFunc
- type TaskRunner
- type TaskRunnerFactory
- type TaskRunnerResolver
- type TaskSetup
- type TaskUnmarshaler
- type Value
- type WithScopeName
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DepPath = cue.ParsePath("$dep") OkPath = cue.ParsePath("$ok") ControlPath = cue.ParsePath("$$control.name") )
View Source
var TaskPath = internal.TaskPath
View Source
var TaskPathContext = contextx.New[string](contextx.WithDefaultsFunc(func() string {
return ""
}))
View Source
var TaskRunnerFactoryContext = contextx.New[TaskRunnerResolver]()
Functions ¶
func CueLogValue ¶
func RegisterTask ¶
func RegisterTask(r TaskImplRegister, task FlowTask)
func WriteFile ¶
func WriteFile(ctx context.Context, fs filesystem.FileSystem, filename string, data []byte) error
Types ¶
type CacheDisabler ¶
type CacheDisabler interface {
CacheDisabled() bool
}
type Checkpoint ¶
type Checkpoint interface {
AsCheckpoint() bool
}
type CueValueWrapper ¶
type FlowControl ¶
type FlowControl interface { FlowTask // contains filtered or unexported methods }
type FlowControlImpl ¶
type FlowControlImpl struct{}
type OutputValuer ¶
type ProcessReader ¶
func NewProcessReader ¶
func NewProcessReader(r io.Reader, total int64) ProcessReader
type ProcessWriter ¶
func NewProcessWriter ¶
func NewProcessWriter(total int64) ProcessWriter
type ResultValuer ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
type StepRunner ¶
type Task ¶
type TaskFactory ¶
type TaskFactory interface { TaskRunnerResolver TaskImplRegister Sources(ctx context.Context) (filesystem.FileSystem, error) }
func NewTaskFactory ¶
func NewTaskFactory(domain string) TaskFactory
type TaskFeedback ¶
type TaskFeedback interface {
Done(err error)
}
type TaskImplRegister ¶
type TaskImplRegister interface {
Register(t any)
}
type TaskOptionFunc ¶
type TaskOptionFunc = internal.OptionFunc
func WithPrefix ¶
func WithPrefix(path cue.Path) TaskOptionFunc
type TaskRunner ¶
type TaskRunnerFactory ¶
type TaskRunnerFactory interface {
New(task Task) (TaskRunner, error)
}
type TaskRunnerResolver ¶
type TaskRunnerResolver interface {
ResolveTaskRunner(task Task) (TaskRunner, error)
}
type TaskSetup ¶
type TaskSetup interface {
Setup() bool
}
TaskSetup which task will run before all others tasks
type TaskUnmarshaler ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package cueify GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package cueify GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Package internal GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package internal GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Click to show internal directories.
Click to hide internal directories.