task

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: 11 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var ClientContext = contextx.New[Client]()
View Source
var Factory = cueflow.NewTaskFactory("piper.octohelm.tech")
View Source
var SecretStore = &Store[string, Secret]{}
View Source
var WorkDirStore = &record.Map[string, wd.WorkDir]{}

Functions

This section is empty.

Types

type Checkpoint

type Checkpoint struct {
	// no need the ok
	Task `json:"-"`
}

func (Checkpoint) AsCheckpoint

func (Checkpoint) AsCheckpoint() bool

func (Checkpoint) CacheDisabled

func (Checkpoint) CacheDisabled() bool

func (Checkpoint) Do

func (Checkpoint) Do(ctx context.Context) error

func (Checkpoint) RuntimeDoc

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

type Client

type Client interface {
	SourceDir(ctx context.Context) (wd.WorkDir, error)
	CacheDir(ctx context.Context, tpe string) (wd.WorkDir, error)
}

type Group

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

func (Group) CacheDisabled

func (Group) CacheDisabled() bool

func (Group) RuntimeDoc

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

func (*Group) T

func (v *Group) T() cueflow.Task

func (*Group) UnmarshalTask

func (v *Group) UnmarshalTask(t cueflow.Task) error

type Secret

type Secret struct {
	Key   string
	Value string
}

func (Secret) RuntimeDoc

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

func (Secret) String

func (s Secret) String() string

type SetupTask

type SetupTask struct {
	Task
}

func (SetupTask) RuntimeDoc

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

func (SetupTask) Setup

func (SetupTask) Setup() bool

type Store

type Store[K comparable, V fmt.Stringer] struct {
	// contains filtered or unexported fields
}

func (*Store[K, V]) Get

func (s *Store[K, V]) Get(k K) (V, bool)

func (*Store[K, V]) Set

func (s *Store[K, V]) Set(v V) string

type Task

type Task struct {
	// task hook to make task could run after some others
	Dep any `json:"$dep,omitempty"`
	// task result
	Ok *bool `json:"-" output:"$ok,omitempty"`

	cueflow.TaskImpl
}

func (*Task) Done

func (t *Task) Done(err error)

func (Task) RuntimeDoc

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

func (*Task) Success

func (t *Task) Success() bool

Directories

Path Synopsis
Package archive GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package archive GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package container GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package container GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package file GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package file GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package exec GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package exec GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package file GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package file GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package http GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package http GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package wd GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package wd GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Jump to

Keyboard shortcuts

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