job

package
v0.13.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmDatabaseReplacement added in v0.13.4

func ConfirmDatabaseReplacement(targetContext, databaseName, inputPath string, yolo bool) (bool, error)

ConfirmDatabaseReplacement prompts the user to confirm a destructive database import. It returns true when the user confirms, false when they decline, and an error if reading input fails.

yolo skips the prompt and returns true immediately, intended for non-interactive pipelines where the caller has already passed a --yolo flag.

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