clisnapshot

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package clisnapshot provides access for our CLI commands to create and restore snapshots

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSnapshot

func ReadSnapshot(ctx context.Context, client pb.WaypointClient, r io.Reader, exit bool) error

ReadSnapshot stages a snapshot for restore from the provided reader, and sends an exit signal to the server if 'exit' is true. Cancelling the context will prematurely cancel the snapshot restore. This may result in a partial restore from the reader being staged.

func WriteSnapshot

func WriteSnapshot(ctx context.Context, client pb.WaypointClient, w io.Writer) error

WriteSnapshot requests a snapshot from the client and writes it to the provided writer. Cancelling the context will prematurely cancel the snapshot. This may result in partial writes to the writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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