download

package
v0.33.13 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package download implements the `d8 snapshot download` command.

Index

Constants

This section is empty.

Variables

View Source
var ErrOutputDirLocked = errors.New("output directory is locked by another d8 snapshot download run")

ErrOutputDirLocked is returned by acquireOutputLock when another process already holds the advisory lock on the output directory.

Functions

func NewCommand

func NewCommand(log *slog.Logger) *cobra.Command

NewCommand builds the `d8 snapshot download` cobra command.

func Run

func Run(ctx context.Context, log *slog.Logger, cmd *cobra.Command, args []string) error

Run validates flags, builds the pipeline config, and executes the download. It derives a signal-cancellable context from the Cobra execution context so that Ctrl-C (SIGINT) and SIGTERM cleanly stop the download.

Types

This section is empty.

Jump to

Keyboard shortcuts

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