Documentation
¶
Index ¶
- func ConfirmDatabaseReplacement(targetContext, databaseName, inputPath string, yolo bool) (bool, error)
- func DatedArtifactPath(rootDir, filename string, ts time.Time) string
- func DownloadContextFile(ctx *config.Context, sourcePath, localPath string) error
- func DownloadContextFileContext(runCtx context.Context, ctx *config.Context, sourcePath, localPath string) error
- func EnsureDirOnContext(ctx *config.Context, dir string) error
- func EnsurePathAbsentOnContext(ctx *config.Context, path string) error
- func MakeTempWorkDir(pattern string) (string, func(), error)
- func PathExistsOnContext(ctx *config.Context, path string) (bool, error)
- func RemoveContextHostPath(runCtx context.Context, ctx *config.Context, path string)
- func ResolveContextPair(sourceName, targetName string) (*config.Context, *config.Context, error)
- func ResolveRecentArtifact(ctx *config.Context, rootDir, filename string, fresh bool, now time.Time, ...) (string, error)
- func StageArtifactBetweenContexts(runCtx context.Context, sourceCtx, targetCtx *config.Context, ...) (string, func(), error)
- func SyncArtifactName(prefix, suffix string) string
- func UploadContextFile(runCtx context.Context, ctx *config.Context, localPath, destinationPath string) error
- type Spec
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 DownloadContextFile ¶
func DownloadContextFileContext ¶ added in v1.9.0
func DownloadContextFileContext(runCtx context.Context, ctx *config.Context, sourcePath, localPath string) error
DownloadContextFileContext copies a context-host file to a private local file and actively closes remote transports when the operation is canceled.
func MakeTempWorkDir ¶
func RemoveContextHostPath ¶
func ResolveContextPair ¶
func ResolveRecentArtifact ¶
func SyncArtifactName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.