Help us shape the future of Go! Take the 2026 Go Developer Survey

restorecmd

package
v0.33.12 Latest Latest
Warning

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

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

Documentation

Overview

Package restorecmd implements the `d8 snapshot restore` command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

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

NewCommand builds the `d8 snapshot restore` cobra command.

func Run

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

Run validates flags, builds the kube clients, and executes the restore. It derives a signal-cancellable context from cmd.Context() so that Ctrl-C (SIGINT) and SIGTERM cleanly stop the restore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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