job

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatedArtifactPath

func DatedArtifactPath(rootDir, filename string, ts time.Time) string

func DownloadContextFile

func DownloadContextFile(ctx *config.Context, sourcePath, localPath string) error

func EnsureDirOnContext

func EnsureDirOnContext(ctx *config.Context, dir string) error

func EnsurePathAbsentOnContext

func EnsurePathAbsentOnContext(ctx *config.Context, path string) error

func MakeTempWorkDir

func MakeTempWorkDir(pattern string) (string, func(), error)

func PathExistsOnContext

func PathExistsOnContext(ctx *config.Context, path string) (bool, error)

func RemoveContextHostPath

func RemoveContextHostPath(runCtx context.Context, ctx *config.Context, path string)

func ResolveContextPair

func ResolveContextPair(sourceName, targetName string) (*config.Context, *config.Context, error)

func ResolveRecentArtifact

func ResolveRecentArtifact(ctx *config.Context, rootDir, filename string, fresh bool, now time.Time, produce func(path string) error) (string, error)

func StageArtifactBetweenContexts

func StageArtifactBetweenContexts(runCtx context.Context, sourceCtx, targetCtx *config.Context, sourcePath, localWorkDir, targetSuffix, prefix string) (string, func(), error)

func SyncArtifactName

func SyncArtifactName(prefix, suffix string) string

Types

type Spec

type Spec struct {
	Name        string `yaml:"name"`
	Plugin      string `yaml:"plugin,omitempty"`
	Description string `yaml:"description,omitempty"`
}

func Find

func Find(specs []Spec, name string) (Spec, bool)

Jump to

Keyboard shortcuts

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